Hacker News new | ask | show | jobs
by betatim 2101 days ago
Yes. Because the PDF standard specifies a mechanism that lets you "attach" files to a PDF :)
1 comments

I worked for PDFTron on their WebViewer product earlier this year, and primarily spent time implementing this feature in JS. Understanding the spec on this was tricky, because standard PDF viewers need to be able to uncompress the stuff you jam in there. It kind of blew my mind that you can literally jam any arbitrary file into a PDF.