Navigation
Search
|
Run Linux inside a PDF file via a RISC-V emulator
Monday February 3, 2025. 11:49 AM , from OS News
You might expect PDF files to only be comprised of static documents, but surprisingly, the PDF file format supports Javascript with its own separate standard library. Modern browsers (Chromium, Firefox) implement this as part of their PDF engines. However, the APIs that are available in the browser are much more limited.
The full specfication for the JS in PDFs was only ever implemented by Adobe Acrobat, and it contains some ridiculous things like the ability to do 3D rendering, make HTTP requests, and detect every monitor connected to the user’s system. However, on Chromium and other browsers, only a tiny subset of this API was ever implemented, due to obvious security concerns. With this, we can do whatever computation we want, just with some very limited IO. ↫ LinuxPDF GitHub page I’m both impressed and concerned.
https://www.osnews.com/story/141668/run-linux-inside-a-pdf-file-via-a-risc-v-emulator/
Related News |
25 sources
Current Date
Feb, Mon 3 - 16:38 CET
|