How to Detect JavaScript in a PDF
Is there any way to determine if a PDF contains JavaScript?
This may sound weird, but I want to conclusively prove or disprove this case and I'm wondering if there are any methods beyond what I've tried.
This is what I've tried:
- Looked for any controls on the document. There are none.
- Checked the document actions. None of them contain any code.
- Opened the file in NotePad++. I did not notice anything that would differentiate between a file with JavaScript or without.
- Examined the file using itext-rups-5.5.9. This tool confirmed the file didn't have any fields or controls, but I couldn't figure out where it would tell me about document level stuff.
Anyone have any other ideas? Many thanks.
