Simply loading a PDF triggers a print dialog  SOLVED

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

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

Simply loading a PDF triggers a print dialog

Post by claude vidal »

Stumped by this one! When loading the attached PDF in PDF-XChange Editor (6.0/322.7), it immediately opens the print dialog: how did they do that? And how do I get rid of this?

Tried saving as, same issue.
Attachments
Résumé de la Vérification du Compte.pdf
(1005.85 KiB) Downloaded 70 times
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Simply loading a PDF triggers a print dialog

Post by Tracker Supp-Stefan »

Hello claude vidal,

There is some document level JS that directly tries to print this file for you.
With JS disabled under Edit -> Preferences -> JavaScript - you will get a message like this:
file_has_JS.png
For this particular file.

Regards,
Stefan
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

Re: Simply loading a PDF triggers a print dialog

Post by claude vidal »

Stefan,

Thanks. I know it's only one click to get rid of the print request, but still annoying. Disabling JS is also one click when opening the document. It's not a perfect world :|
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Simply loading a PDF triggers a print dialog  SOLVED

Post by Willy Van Nuffel »

!! Wow, you can just remove the PDF-documents Javascript with PDF-XChange Editor !!

Via File > Save as Optimized : Just activate/check "Discard objects from the document" and then "Discard all Javascript actions".

Click OK and Save.
Attachments
Discard all JavaScript actions.png
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Simply loading a PDF triggers a print dialog

Post by Tracker Supp-Stefan »

Thanks Willy!

That's an approach I didn't think of!

Cheers,
Stefan
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

Re: Simply loading a PDF triggers a print dialog

Post by claude vidal »

Willy Van Nuffel wrote:!! Wow, you can just remove the PDF-documents Javascript with PDF-XChange Editor !!

Via File > Save as Optimized : Just activate/check "Discard objects from the document" and then "Discard all Javascript actions".

Click OK and Save.
Works great, thanks|
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Simply loading a PDF triggers a print dialog

Post by Willy Van Nuffel »

:-)
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Simply loading a PDF triggers a print dialog

Post by Paul - Tracker Supp »

:D :D :D :D :D
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply