• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to Detect JavaScript in a PDF

Community Beginner ,
Feb 24, 2023 Feb 24, 2023

Copy link to clipboard

Copied

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.

TOPICS
How to , JavaScript

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Feb 24, 2023 Feb 24, 2023

To check if file has any scripts, you can go to 'Prepare form' tool and click on 'More' and 'All JavaScripts'.

Votes

Translate

Translate
New Here , Feb 14, 2024 Feb 14, 2024

I have had a pdf or two that was blocked by my antivirus for having a script, can you explain what this mean exactly and what the implications are? 

Votes

Translate

Translate
Community Expert ,
Feb 24, 2023 Feb 24, 2023

Copy link to clipboard

Copied

To check if file has any scripts, you can go to 'Prepare form' tool and click on 'More' and 'All JavaScripts'.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 25, 2023 Feb 25, 2023

Copy link to clipboard

Copied

This is not totally accurate. If you use a built-in Format option like Date or Number (which relies on JS to work), that will not show up in this window.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

LATEST

I have had a pdf or two that was blocked by my antivirus for having a script, can you explain what this mean exactly and what the implications are? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines