PDF files trying to print upon opening

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

rfast10430
User
Posts: 10
Joined: Thu Mar 08, 2012 2:54 pm

PDF files trying to print upon opening

Post by rfast10430 »

Hi...

I recently encountered some strange behavior with some PDF files I have downloaded.

I have them saved on my computer and when I open them, the print screen immediately appears, as if I had chosen to print the file.

Does anybody know what could be causing this and how to get it to stop?

Thanks, in advance.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: PDF files trying to print upon opening

Post by Will - Tracker Supp »

Hi rfast10430,

Thanks for the post - I suspect that there is some kind of JavaScript, set to run when the doc. is opened. Could you please send a sample?

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
rfast10430
User
Posts: 10
Joined: Thu Mar 08, 2012 2:54 pm

Re: PDF files trying to print upon opening

Post by rfast10430 »

Thanks, I'd appreciate it if you would take a look at it.

The file I have has some information which I'm not comfortable posting publicly. Is there a way I can email it/send it to you privately?
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: PDF files trying to print upon opening

Post by Will - Tracker Supp »

Hi rfast10430,

Not a problem - you should be able to email directly to support@pdf-xchange.com, just please be sure to include a link back to this topic, for easy reference.

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: PDF files trying to print upon opening

Post by Will - Tracker Supp »

Hi rfast10430,

Thanks for sending the file - as per my email:


It seems my hunch was right here under File --> Document Properties --> JavaScript, you should see the DoPrint() action.

To stop this from happening, you can either select and delete the JavaScript, or go to Edit --> Preferences --> JavaScripts and disable JavaScript actions.

HTH!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com