How do you view the JavaScript embedded in a PDF?

javascript, pdf

Solution

Download iText RUPS: https://github.com/itext/rups/releases

Open the PDF using RUPS and you'll be able to look at all the PDF objects. iText RUPS isn't a PDF viewer, it's a PDF syntax browser.

Problem

I have a PDF, which I think has JavaScript embedded in it. Is it possible to see what that JavaScript is? And if so, how would I see it? It's probably possible to hack something together with iText, but I would prefer something faster.

Original source

Related problems