Wow, I had no idea PDFs could be this dynamic. Doesn't work in Mac OS preview or quicklook but works great in chrome.
The Canadian passport application PDF has Javascript that updates a QR code in the top-right corner of the first page whenever you change or fill in a field. https://www.canada.ca/content/dam/ircc/migration/ircc/englis... Seems like a pretty genius way of avoiding transcription errors. When I dropped my passport application off yesterday the passport officer marked up a few things on the PDF and then scanned it in, s…
Show HN: Tetris in a PDF
71–80 of 238 posts
Re: Show HN: Tetris in a PDF
#72This is horrifying, PDFs should not be able to execute code.
Re: Show HN: Tetris in a PDF
#73Not just web browsers, Acrobat (and probably other PDF readers) have supported executing Javascript in PDFs for decades.
Re: Show HN: Tetris in a PDF
#74Re: Show HN: Tetris in a PDF
#75You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
Re: Show HN: Tetris in a PDF
#76So it's possible to port C compiler to PDF. Compiler is already done https://github.com/Mati365/ts-c-compiler . We can run DOS in PDF basically..
Re: Show HN: Tetris in a PDF
#77Back in school pdfs would circulate that had a bunch of flash games on them. I have no idea how or who made them, but they let us play dolphin olympics on lab computers with no internet connection.
Re: Show HN: Tetris in a PDF
#78Back in school pdfs would circulate that had a bunch of flash games on them. I have no idea how or who made them, but they let us play dolphin olympics on lab computers with no internet connection.
I'm not sure, but I think it may have been that Adobe Viewer (or whatever it was) could run Flash?
However, modern version of Acrobat Reader do not support that anymore. https://helpx.adobe.com/acrobat/kb/flash-format-support-in-p...:
“Flash Player end-of-life (EOL) impacts playback and authoring of rich media having Flash content (.flv and .swf) in PDFs:
• Playback of Flash media (.flv and .swf) content in existing PDFs will not be supported.”
Re: Show HN: Tetris in a PDF
#79You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
(Yes this is a joke)
Re: Show HN: Tetris in a PDF
#80It doesn't work in the Adobe Chrome PDF viewer, or in Preview.