Is there a way to print all currently open documents? I'm not seeing an option to do this and it would come in handy for times that I open multiple PDFs from emails and print them.
Also, is there a way to quick print to the default printer without the print dialog box?
Both of these would be great additions to future upgrades.
Thanks,
JJ
Print all open documents
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
-
Paul - PDF-XChange
- Site Admin
- Posts: 7447
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Print all open documents
Hi dbytes,
welcome to the forum and thanks for the post.
hth
welcome to the forum and thanks for the post.
Not in the current Viewer, though it is coming in V3 - after the initial Gold release I believe. For now you can select multiple files in Windows Explorer and Print from a right mouse click, that will silently call the default Viewer and send the print jobs to your printer. This works with the current PDF-XChange Viewer installed.Is there a way to print all currently open documents?
No I'm afraid not. It will always call the Print Dialogue. I believe this is by design, so I've added it to the wish list just in case it is something that can be added as an option one day.Also, is there a way to quick print to the default printer without the print dialog box?
hth
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
Ivan - Tracker Software
- Site Admin
- Posts: 3603
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Print all open documents
There is a way to print all opened documents. You have to use JavaScript to do this (open JS console using Ctrl+J shortcut, paste the following code into console, and run it):
Code: Select all
var ad = app.activeDocs;
for (var i = 0; i < ad.length; i++)
{
var pp = ad[i].getPrintParams();
// uncomment the next line to print without dialog for each document
// pp.interactive = pp.constants.interactionLevel.silent;
ad[i].print(pp);
}
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
mwidunn
- User
- Posts: 66
- Joined: Sat Jun 20, 2015 2:09 pm
Re: Print all open documents
. . . A slow solution which caused multiple spooling problems with my printer. Would have been quicker for me to have just clicked each tab individually and printed the document myself.
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: Print all open documents
Hi mwidunn,
I'm afraid that this is the only option that we can offer at this time.
Thanks,
I'm afraid that this is the only option that we can offer at this time.
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
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
amccc
- User
- Posts: 3
- Joined: Thu Sep 21, 2023 2:51 pm
Re: Print all open documents
Sorry for necroposting, just two quick updates. If you are using the js code provided above and suffering from page misordering, you could add a pause after each page:
If you want to have a hotkey for this Print All method, you can use an autohotkey script.
Using it for a year now, works fine.
Code: Select all
var ad = app.activeDocs;
for (var i = 0; i < ad.length; i++) {
var pp = ad[i].getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
ad[i].print(pp);
app.alert(i);
}If you want to have a hotkey for this Print All method, you can use an autohotkey script.
Code: Select all
; ---------------------------------------
; pdf x-change Print All feature by ctrl+shift+p
;
#If WinActive("ahk_exe PDFXCview.exe")
^+p::
{
Send ^j
Sleep, 100
DetectHiddenWindows, On
If WinExist("ahk_class PXCV_JS_CONSOLE") {
WinShow
WinActivate ; Use the window found by WinExist.
ControlFocus, ATL:EDIT1
ScriptText := "
(
var ad = app.activeDocs;
for (var i = 0; i < ad.length; i++)
{
var pp = ad[i].getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
ad[i].print(pp);
app.alert(i);
}
)"
ControlSetText, ATL:EDIT1, %ScriptText%
Send ^{Enter}
Send ^j
WinHide
return
}
}
#If-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am