Activate / Deactiv desired setting on Open (PDF)

New Here ,
Nov 12, 2020

Copy link to clipboard

Copied

Hi all,

I have an PDF document with some functionality. But this just works if the marked (photo) setting is deactivated. Is there a way to deactivate this setting if I ( or anyone else) opens the PDF document?

 

activate_deactive_settings_on_open_PDF.png

 

 

Thank you for your help

TOPICS
Edit and convert PDFs, How to, PDF forms

Views

80

Likes

Translate

Translate

Report

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

1 Correct Answer

Most Valuable Participant , Nov 19, 2020
try67 Most Valuable Participant , Nov 19, 2020
Open the file in Acrobat and then go to Tools - JavaScript - Document JavaScripts and create a new item (let's call it "scripts").Delete the code that is created by default (the function definition) and replace it with the following: if (app.runtimeHighlight) { if (app.alert("This document is best viewed with Fields Highlighting turned off. Do you wish to do that now?\n\nNOTE: This will also affect all other files you open. If you wish to enable it later you can do so via Edit - Preferences - F...

Likes

Translate

Translate
Jump to answer Jump to answer
Most Valuable Participant ,
Nov 12, 2020

Copy link to clipboard

Copied

Yes, it's possible to embed a script in the file that will disable the fields highlighting, but you must have Acrobat to be able to do it. Also, it will affect all other files opened by the end-user, so you should at least inform them of this change before doing it.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Nov 18, 2020

Copy link to clipboard

Copied

Hi Try67,

 

thanks for your answer.

Unfortunately I am not really someone who can program and know where to "save" it.

Do you know how the code has to be and where I have to save it?

That would help me a lot.

 

Sorry for the stupid questions, but I really have no idea what to do.

 

Thank you in advance.

 

Peter

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

Open the file in Acrobat and then go to Tools - JavaScript - Document JavaScripts and create a new item (let's call it "scripts").
Delete the code that is created by default (the function definition) and replace it with the following:

if (app.runtimeHighlight) {
	if (app.alert("This document is best viewed with Fields Highlighting turned off. Do you wish to do that now?\n\nNOTE: This will also affect all other files you open. If you wish to enable it later you can do so via Edit - Preferences - Forms.",2,2)==4) {
		app.runtimeHighlight = false;
	}
}

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
peter5FAB AUTHOR LATEST
New Here ,
Nov 25, 2020

Copy link to clipboard

Copied

Hi Try67,

 

thank you very much, that is exactly what i searched for!!!

 

thats like always if you know what to do its very easy. If you have no clue its like a huge forrest you cant walk through...

 

Thank you!

 

Likes

Translate

Translate

Report

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