command line

The PDF-XChange Viewer for End Users
+++ FREE +++

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
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

command line

Post by christophe_eis »

Hello,

I'm using pdf-xchange viewer with command line. I'would like print a landscape document but it can not print properly.
The document is printing portrait. How can i do to print landscape with command line.

Thanks
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6836
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: command line

Post by Paul - Tracker Supp »

hi christophe_eis,

what command are you using at present?
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

Re: command line

Post by christophe_eis »

Hello,

I'm using this command :

"C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe /print:printer= + PrintToUsed +"file.pdf"

file.pdf is a landscape document but it 's printing to portrait.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: command line

Post by Tracker Supp-Stefan »

Hello christophe_eis,

You will need to open the Viewer, load one file, open the printing dialogue window and select "auto rotate sheets", then print one page of it.
Then you can export those settings to a data file, and add a parameter to your command line: /usep <setting_file_name> , or you could leave the "Auto Rotate" turned on in the stand alone Viewer, and use the default settings (if no settings parameter is passed the current Viewer settings would be used).

Best,
Stefan
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

Re: command line

Post by christophe_eis »

Hello Stephan,

It's ok, but the viewer is not closed automatically. I'm trying to use te command line "/close" at the end of the command but it's not ok.


"C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe /usep C:\pdf.dat /print:printer=PrintToUsed +"file.pdf" /close

Thanks
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: command line

Post by Tracker Supp-Stefan »

Hello Christophe,

You will need to pass one of three parameters for the Close command:
/close[:save|discard|ask]
And this is actually just closing the document specified, and not the whole Viewer

As you are just printing I suppose discard is the one you need.
(e.g. /close:mode=discard %test.pdf )

Best,
Stefan
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

Re: command line

Post by christophe_eis »

Stephan,

so, if i undestand there are no solutions to close the whole viewer automatically if i use the command line "usep".
I'm trying to use the tskill command with PID to close the whole viewer.

Thanks you for your help.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: command line

Post by Tracker Supp-Stefan »

Hello Christophe,

If you use the /usep i am afraid that you will need to kill the process after.
But if you make the default settings in the viewer to be "Auto Rotate Sheets" - there should be no need to pass a separate profile when printing through the command line.

Best,
Stefan
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

Re: command line

Post by christophe_eis »

Hello,

I would like to print on a multi-tray printer using command line. Is it possible to define the tray to use on command line ?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: command line

Post by Tracker Supp-Stefan »

Hello christophe,

I do not believe this is possible, as on the command line you can only tell the Viewer that you want to print, and set up the printing preferences in the Viewer itself, while the different trays are settings in the printer - you will need to control the trays in a different manner.

E.g. check in the printer settings if there is an option to set the first page to be printed from "tray 1" and all the rest of the pages from "tray 2"
Is this the kind of thing you want to achieve?

Best,
Stefan
christophe_eis
User
Posts: 8
Joined: Fri Jan 07, 2011 4:25 pm
Location: france

Re: command line

Post by christophe_eis »

Hello Stephan,

no, i want to print a document either on tray 1 or either on tray 2. According the document i want to print, it's the operator who choose the tray to print. If it' not possible i'll declare two printer withh one tray different.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: command line

Post by Tracker Supp-Stefan »

Hi christophe,

Yes this seems like a viable solution as well.

Cheers,
Stefan
Post Reply