PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

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

 
claude vidal
User
Topic Author
Posts: 126
Joined: Wed Mar 09, 2016 12:47 am

Simply loading a PDF triggers a print dialog

Wed Nov 29, 2017 4:51 pm

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 10 times
 
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 12679
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Simply loading a PDF triggers a print dialog

Wed Nov 29, 2017 5:00 pm

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
Topic Author
Posts: 126
Joined: Wed Mar 09, 2016 12:47 am

Re: Simply loading a PDF triggers a print dialog

Thu Nov 30, 2017 7:07 pm

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: 1260
Joined: Wed Jan 18, 2006 12:10 pm

Re: Simply loading a PDF triggers a print dialog  SOLVED

Thu Nov 30, 2017 8:05 pm

!! 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: 12679
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Simply loading a PDF triggers a print dialog

Tue Dec 05, 2017 1:40 pm

Thanks Willy!

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

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

Re: Simply loading a PDF triggers a print dialog

Tue Dec 05, 2017 5:00 pm

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: 1260
Joined: Wed Jan 18, 2006 12:10 pm

Re: Simply loading a PDF triggers a print dialog

Tue Dec 05, 2017 5:34 pm

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

Re: Simply loading a PDF triggers a print dialog

Thu Dec 07, 2017 9:26 pm

:D :D :D :D :D
_________________
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

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

Who is online

Users browsing this forum: No registered users and 2 guests