4 ms·
Using JavaScript, it's easy to create a standards-compliant PDF with inconsistent behavior in popular viewers. For example, https://jasomill.at/HelloGoodbye.
by jasomill 3y ago
Using JavaScript, it's easy to create a standards-compliant PDF with inconsistent behavior in popular viewers. For example,
https://jasomill.at/HelloGoodbye.pdf
contains JavaScript that, per the spec, should display a pop-up alert ("Hello Acrobat <version>") when it is opened and another ("Goodbye Acrobat <version>") when it is closed.
Actual behavior is inconsistent. On my Mac:
Acrobat: both alerts display
Preview, Safari: neither alert displays
Chrome, Edge, Firefox: only open alert displays