Live data from Hacker News

Linux Running in a PDF

linux.doompdf.dev

41–50 of 116 posts

Re: Linux Running in a PDF

#43
post #21

Earlier quoted context omitted.

It says in the document itself that it only works in Chromium-based browsers.

What kind of pdf feature works in chrome but not evince?

The kinds of features that benefit Google and not necessarily the general public.

Re: Linux Running in a PDF

#45

Does anyone know if running PDFs through the following filter (as in [0]) prevent malicious actors? gs \ -dNOPAUSE \ -sDEVICE=pdfwrite \ -sOUTPUTFILE=clean.pdf \ -dBATCH \ dirty.pdf [0]: https://tex.stackexchange.com/a/481609/29430

It can make things worse: Ghostscript is not particularly safe to run on untrusted/potentially malicious input. It has a giant attack surface and no proper mitigations, unlike the PDF reader in your browser.

At a minimum, you'd have to sandbox it using something like gVisor.

Re: Linux Running in a PDF

#46

    1. Linux Running in a PDF (doompdf.dev)
    114 points by theden 4 hours ago | flag | hide | 37 comments

    2. Ingesting PDFs and why Gemini 2.0 changes everything (sergey.fyi)
    978 points by serjester 17 hours ago | flag | hide | 323 comments
As people start bolting various kinds of PDF parsers and evaluators to LLMs, there's got to be some interesting hack potential.

Re: Linux Running in a PDF

#47
Finally! I've been making the joke "put Linux.js in a PDF so I can run Linux, inside a PDF, inside a browser, inside Linux, inside a PDF, inside a browser, inside Linux" for far too long...

Re: Linux Running in a PDF

#48
post #21

Doesn't work in Evince or Firefox FWIW.

It says in the document itself that it only works in Chromium-based browsers.

It does, but the headline doesn't. I don't know if it's a nickpick too far, but it should be "X in a PDF in Chromium", as the hack seems as much about Chromium as it is about PDFs.

Re: Linux Running in a PDF

#50
post #3

I would really appreciate if someone could put a decent PDF reader, like Sumatra, into a PDF so I could have a portable and good PDF reader on locked down computers.

PDF, the true universal app platform. Please don't tell Microsoft.
Post reply on HN