Preflight report sticky note

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

Preflight report sticky note

Post by abonsey » Wed Feb 11, 2015 11:07 am

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: 416
Joined: Thu Feb 09, 2012 3:53 pm

Preflight report sticky note

Post by freddyp » Wed Feb 11, 2015 2:04 pm

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: 117
Joined: Fri May 24, 2013 5:10 pm

Preflight report sticky note

Post by abonsey » Thu Feb 12, 2015 3:50 pm

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: 416
Joined: Thu Feb 09, 2012 3:53 pm

Re: Preflight report sticky note

Post by freddyp » Mon Feb 23, 2015 9:47 am

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: 117
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post by abonsey » Mon Feb 23, 2015 9:48 am

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: 117
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post by abonsey » Mon Jun 19, 2017 5:56 pm

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
Member
Posts: 147
Joined: Thu Mar 03, 2011 10:13 am

Re: Preflight report sticky note

Post by bens » Tue Jun 20, 2017 10:43 am

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: 117
Joined: Fri May 24, 2013 5:10 pm

Re: Preflight report sticky note

Post by abonsey » Tue Jun 20, 2017 3:52 pm

Brilliant. That worked great.
Thanks for helping

Post Reply