Hacker News new | ask | show | jobs
by DanielDent 2673 days ago
PDFs that work in Chrome's PDF renderer:

A calculator:

https://pspdfkit.com/images/blog/2018/how-to-program-a-calcu...

A game of breakout:

https://github.com/osnr/horrifying-pdf-experiments/raw/maste...

The PDF specification is hundreds of pages.

4 comments

Oh wow - I wonder if this was added to Chrome's PDF engine after I looked into it.

Very cool, but a bit concerning at the same time. I have vivid memories of Flash exploitations and all the malware that came with it. I know we've moved on since then, but I still don't see any reason to allow dynamic content in a page layout format.

I wonder if running PouchDB would count... since it's an offline / online database.

I'm wondering if having a PDF that would have data that could self-update if there's an internet connection.

Anyone wanna collaborate on something like this?

I wonder if having a PDF like this that showed you how your stocks of choice are doing would be interesting.

Would would be the advantage of this over a website/PWA?

That it's more portable? It's more document-like/printable?

Self-contained, no need for internet unless you want it to update, is forward-compatible with future PDF readers.
On Firefox calculator opens up, but I can't interact with the elements.

The second one is an empty page. I suppose it needs to do some initialization first in order to show the page.

This is amazing.