First of all this topic was alredy in the PDF-XChange Drivers API forum. But I think, this was not the right forum for my problem.
My question is about command line based printing without showing the printer selection/option dialog.
Is it possible to specify not only the printer (e.g. using printer=printer_name) but also a specific paper source on the selected printer?
What I want to do is to print the first page of the document on special paper (letterhead) and the rest on normal paper.
My environment:
OS: Windows Vista with installed PDF-XChange Viewer Version 2.0 (build 41.5) as default pdf application
My Application: A Java Swing application which uses the PDF-XChange Viewer for direct priniting pdf documents via command line e.g.
C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe /printto Brother DCP-6690CW Printer c:\temp\document.pdf
Thanks in advance
Torsten
command line based printing
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: command line based printing
You want to print files using Viewer ActiveX or pxcView library? Or just using PDF-XChange Viewer command line?
-
- User
- Posts: 5
- Joined: Mon Jul 06, 2009 7:39 am
Re: command line based printing
Only using PDF-XChange Viewer command line.
-
- Site Admin
- Posts: 3586
- Joined: Thu Jul 08, 2004 10:36 pm
Re: command line based printing
No, I'm afraid there are not such option - it is impossible to realize all features via command line.
BTW, into you command line there is an error - if parameter contains spaces, it should be enclosed by quotes ("):
BTW, into you command line there is an error - if parameter contains spaces, it should be enclosed by quotes ("):
Code: Select all
"C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe" /printto "Brother DCP-6690CW Printer" c:\temp\document.pdf
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.
-
- User
- Posts: 5
- Joined: Mon Jul 06, 2009 7:39 am
Re: command line based printing
Ok. I understand.
But perhaps is there another way to realize my requirement e.g. using the mentioned ActiveX or the pcxView library?
I don't want to have a complete solution, what i need is only a hint for the right direction.
Thanks in advance
Torsten
But perhaps is there another way to realize my requirement e.g. using the mentioned ActiveX or the pcxView library?
I don't want to have a complete solution, what i need is only a hint for the right direction.
Thanks in advance
Torsten
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: command line based printing
Yes, you can use Viewer ActiveX for this. Using AX you can specify custom paper sizes and a lot of other print options.
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: command line based printing
Also Torsten - to use the Viewer ActiveX - you must own the Developers SDK - please palce support requests in the SDK forum - here :
https://forum.pdf-xchange.com/ ... m.php?f=36
Thanks
https://forum.pdf-xchange.com/ ... m.php?f=36
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
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com