🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

7 total messages Started by Guido_Verbeeke Wed, 17 Dec 2008 12:50
Acrobat 9 Reader javascript problem
#2558
Author: Guido_Verbeeke
Date: Wed, 17 Dec 2008 12:50
13 lines
1063 bytes
A few months ago our company changed our Acrobat Reader from 8.1.1 to 9.0.0.
Since then we have a problem with a javascript that prints out a few pages from that PDF.

We use the following javascript:

this.print(false, this.pageNum=1,this.pageNum=3);
this.pageNum=0;
app.alert("This document will be printed.",1);

Is there something wrong in our script, or do we have to change the security of Acrobat Reader?
How and where can we do this?

Thanks!
Re: Acrobat 9 Reader javascript problem
#2562
Author: Bernd Alheit
Date: Wed, 17 Dec 2008 13:54
5 lines
716 bytes
Use:

this.print(false, 1, 3);

Make sure that the document contains more than 3 pages.
Re: Acrobat 9 Reader javascript problem
#2564
Author: Guido_Verbeeke
Date: Wed, 17 Dec 2008 14:29
3 lines
806 bytes
I've tried it, but it doesn't change anything.
The script works in Acrobat 7 and 8, but not in Acrobat Reader 9.
The document contains 20 pages.
Re: Acrobat 9 Reader javascript problem
#2566
Author: Bernd Alheit
Date: Wed, 17 Dec 2008 15:14
3 lines
789 bytes
Did you get the dialog with following message:

The document is trying to print. Do you want to allow this?
Re: Acrobat 9 Reader javascript problem
#2577
Author: Guido_Verbeeke
Date: Wed, 17 Dec 2008 17:44
5 lines
1021 bytes
Sorry, I've forget to mention about that message.
Yes, we receive that message since Acrobat Reader 9. I've searched for a solution on the web and this forum, but all of the given solutions (scripting) didn't work.

The only way I can make it work is to add the filename as a trusted file in the printing settings menu.
But that's not a solution because then we need to set more than 20 files as 'trusted' on a few thousands pc's.
Re: Acrobat 9 Reader javascript problem
#2578
Author: Bernd Alheit
Date: Wed, 17 Dec 2008 18:07
1 lines
654 bytes
Answer the question "Do you want to allow this?" with Yes.
Re: Acrobat 9 Reader javascript problem
#2500
Author: Guido_Verbeeke
Date: Thu, 18 Dec 2008 07:34
2 lines
778 bytes
Actually we don't want to get that message.
We are looking for a javascript or preference setting to print out a few pages of the PDF by javascript without any warning.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads