Page 1 of 1

Preflight report sticky note

Posted: Wed Feb 11, 2015 11:07 am
by abonsey
When a report is created (via Switch in my case) and you open the PDF the sticky note on page one is open and details the preflight report.

Can this be set to closed by default? (It's a bit in your face for some of our customers).

Any other things that can be changed when creating the report??

Preflight report sticky note

Posted: Wed Feb 11, 2015 2:04 pm
by freddyp
The popupOpen property of the annotations are by default set to true and you cannot change that in PitStop, but you can use the Acrobat configurator to run the following script in the "Command" property:



var annotations = $doc.getAnnots();

for (var i=0; i<annotations.length; i++) {

annotations.popupOpen = false;

}





Freddy

Preflight report sticky note

Posted: Thu Feb 12, 2015 3:50 pm
by abonsey
Hi,

Tried that but nothing happened. Guess I'm not adding it correctly.

Could you provide a step-by-step guide.



Thanks

Re: Preflight report sticky note

Posted: Mon Feb 23, 2015 9:47 am
by freddyp
Create a text file named for example annotations.js and copy and paste the code in it.

Set the "Command" property of the Acrobat configurator to "Use script" and in the "Script file" property browse to the annotations.js file.

Freddy

Re: Preflight report sticky note

Posted: Mon Feb 23, 2015 9:48 am
by abonsey
Thanks for that.
Turns out the script was corrupted as I saved it. Resaved and now working fine.

Thanks for your help

Re: Preflight report sticky note

Posted: Mon Jun 19, 2017 5:56 pm
by abonsey
I've been using the javascript for ages no problem.
Now it runs and Acrobat comes up with "an internal error occurred". I'm not sure if it's because Acrobat DC might have been upgraded recently but now I can't get it to work.

Anybody seen this happen? Any ideas how to fix it?

Re: Preflight report sticky note

Posted: Tue Jun 20, 2017 10:43 am
by bens
Although somewhat hidden, the annotated report has a setting to specify whether you want the annotation to be initially opened or not.

In your PitStop Server installation folder, located the file Resources/Report Templates/Annotated Report/ServerReportAnnotated.prefs. Copy this file to some other folder and make it writable.

Open the copy in a good text editor - one that keeps line endings and encoding. Mac's TextEdit is not a good text editor. Windows Notepad is better, but can only handle Windows line endings. Change the line

Code: Select all

"InitiallyOpenSummaryAnnotation" "true"
to

Code: Select all

"InitiallyOpenSummaryAnnotation" "false"
Now in Switch you can change the "Report type" to "Custom PDF report template" and point the "Report template" to the newly modified copy.

Re: Preflight report sticky note

Posted: Tue Jun 20, 2017 3:52 pm
by abonsey
Brilliant. That worked great.
Thanks for helping