Direct printing (bypass 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
dp17
User
Posts: 4
Joined: Mon Dec 18, 2017 5:18 pm

Direct printing (bypass print dialog)

Post by dp17 »

Hi.

Is there a way to print the current PDF in PDF-XChange Editor directly to the default printer bypassing the print dialog window?

That would save me dozens of clicks daily.

I'm using the latest PDF-XChange Editor 7 in Windows 7/64bit.

Thanks.
User avatar
Ovg
User
Posts: 461
Joined: Tue Sep 05, 2017 4:56 pm

Re: Direct printing (bypass print dialog)  SOLVED

Post by Ovg »

Try this script. Copy script to C:\Users\you_user_name\AppData\Roaming\Tracker Software\PDFXEditor\3.0\JavaScripts
Change part in red with your actual Windows username.

Copy icon to whatever, remove // in

Code: Select all

//  oIcon: util.iconStreamFromImage("/C/My Documents/Icons/Printer_2.ico"),
and replace path to the icon with your actual data
Attachments
SilentPrint.zip
(20.19 KiB) Downloaded 67 times
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
dp17
User
Posts: 4
Joined: Mon Dec 18, 2017 5:18 pm

Re: Direct printing (bypass print dialog)

Post by dp17 »

It worked, thank you very much.

is there a way to assign a shortcut to this new button? I'd like Ctrl+P but the command SilentPrint does not appear in the customize toolbar window.
User avatar
Ovg
User
Posts: 461
Joined: Tue Sep 05, 2017 4:56 pm

Re: Direct printing (bypass print dialog)

Post by Ovg »

AFAIK unfortunately it is impossible for this user JS tools. They are dynamically created objects
and appear only in Add-On Tools Tab (I may be wrong)
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Direct printing (bypass print dialog)

Post by Will - Tracker Supp »

Thanks for that OVG, much appreciated! And you're correct, toolbar buttons added via JavaScripts cannot be assigned keyboard shortcuts.

Thanks,
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
Post Reply