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

Remove JavaScript

New Here ,
Jun 15, 2016 Jun 15, 2016

Hi

I need to ensure that there is no JavaScript code in my PDF documents. Some of the documents come from the Internet while others are created using the Adobe PDF printer of Acrobat X. I'll have to process several documents a week.

I've read in this post Re: remove script about a Preflight fixup. However, I could not find it in Acrobat X Pro. What is the best way to remove possible JavaScript code?

Many thanks!

TOPICS
Acrobat SDK and JavaScript , Windows
8.7K
Translate
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 1 Correct answer

LEGEND , Jun 15, 2016 Jun 15, 2016

In the Preflight search box, enter "Javascript" and you should be shown a list like the following (which is from Acrobat 9):

removeJSFixup.png

The one you want is the last one.

Translate
LEGEND ,
Jun 15, 2016 Jun 15, 2016

In the Preflight search box, enter "Javascript" and you should be shown a list like the following (which is from Acrobat 9):

removeJSFixup.png

The one you want is the last one.

Translate
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 ,
Jun 15, 2016 Jun 15, 2016

Great! That's exactly what I was looking for.

Thanks a lot!

Translate
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 ,
Jun 15, 2016 Jun 15, 2016

I just saw, that the recommended fixup only removes JavaScripts that are not connected to actions. So I created a new profile that contains the check "Document contains JavaScript" (manually translated, don't know the exact label in the English version) and the following fixups: "Discard all JavaScript actions" and "Discard all JavaScripts".

Is it correct, that this way ALL JavaScripts are removed?

Translate
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
LEGEND ,
Jun 15, 2016 Jun 15, 2016

Yes, you should run both to remove all JavaScript.

Translate
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 ,
Jun 15, 2016 Jun 15, 2016

Thanks for confirmation!

Translate
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 ,
Jun 16, 2016 Jun 16, 2016
LATEST

Hi.

You can use the PDF Optimizer too.

It can remove JavaScripts, actions, comments, destinations, etc., etc.

PDF Acrobatic, InDesigner & Photoshoptographer
Translate
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