Preflight report sticky note

Post Reply
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Preflight report sticky note

Post 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??
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Preflight report sticky note

Post 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
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Preflight report sticky note

Post by abonsey »

Hi,

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

Could you provide a step-by-step guide.



Thanks
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Preflight report sticky note

Post 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
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post by abonsey »

Thanks for that.
Turns out the script was corrupted as I saved it. Resaved and now working fine.

Thanks for your help
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post 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?
bens
Advanced member
Posts: 252
Joined: Thu Mar 03, 2011 10:13 am

Re: Preflight report sticky note

Post 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.
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post by abonsey »

Brilliant. That worked great.
Thanks for helping
Post Reply