command line based printing

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

totti_14480
User
Posts: 5
Joined: Mon Jul 06, 2009 7:39 am

command line based printing

Post by totti_14480 »

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
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: command line based printing

Post by Corwin - Tracker Sup »

You want to print files using Viewer ActiveX or pxcView library? Or just using PDF-XChange Viewer command line?
totti_14480
User
Posts: 5
Joined: Mon Jul 06, 2009 7:39 am

Re: command line based printing

Post by totti_14480 »

Only using PDF-XChange Viewer command line.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: command line based printing

Post by Ivan - Tracker Software »

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 ("):

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.
totti_14480
User
Posts: 5
Joined: Mon Jul 06, 2009 7:39 am

Re: command line based printing

Post by totti_14480 »

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
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: command line based printing

Post by Corwin - Tracker Sup »

Yes, you can use Viewer ActiveX for this. Using AX you can specify custom paper sizes and a lot of other print options.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: command line based printing

Post by John - Tracker Supp »

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
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