possible to print automatically?

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

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

bildGRAV
User
Posts: 4
Joined: Fri Nov 15, 2013 10:28 am

possible to print automatically?

Post by bildGRAV »

Hello!
Is it possible to create a macro to print some pdfs by opening the software ?
I need this for my mail-client.
Thanks for help.

Jörg
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: possible to print automatically?

Post by Stefan - PDF-XChange »

Hello Jörg,

Welcome to our forums. You can directly "print" to the default printer with the default Viewer settings using command line commands:
/print[:[default=yes|no][&showui=yes|no][&printer=<printername>][&pages=<pagesrange>]]
/printto[:[default=yes|no][&showui=yes|no][&pages=<pagesrange>]] <printername>

More info on command line options can be found here.

Regards,
Stefan
bildGRAV
User
Posts: 4
Joined: Fri Nov 15, 2013 10:28 am

Re: possible to print automatically?

Post by bildGRAV »

Tracker Supp-Stefan wrote:Hello Jörg,

Welcome to our forums. You can directly "print" to the default printer with the default Viewer settings using command line commands:
/print[:[default=yes|no][&showui=yes|no][&printer=<printername>][&pages=<pagesrange>]]
/printto[:[default=yes|no][&showui=yes|no][&pages=<pagesrange>]] <printername>
Thanks for the superfast answer!
BUT I have problems to create this. I get from one user mails with pdf-appendix -always. THIS pdfs I want to print for 2 times automatically.
May you help me for this?
Thanks!
Jörg
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: possible to print automatically?

Post by Stefan - PDF-XChange »

Hi Jörg,

I am afraid that this command line printing option was never intended to be too sophisticated, so can you try to e.g. call the printing of the same file twice in succession?

Regards,
Stefan
bildGRAV
User
Posts: 4
Joined: Fri Nov 15, 2013 10:28 am

Re: possible to print automatically?

Post by bildGRAV »

Tracker Supp-Stefan wrote:... so can you try to e.g. call the printing of the same file twice in succession?
Ok that`s a way.
May You tell me the exact parameters?
I want to print automatically a pdf document (*.pdf?, appendix in my mail-client) with my standard printer.
Thanks for your fast helping!
Jörg
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: possible to print automatically?

Post by Stefan - PDF-XChange »

Hi Jörg,

I believe I've supplied those above, and further details can be found in this link,

And here's a direct sample for a command line string:
PDFXCView.exe /print:showui=yes c:\mydocument.pdf

Regards,
Stefan
bildGRAV
User
Posts: 4
Joined: Fri Nov 15, 2013 10:28 am

Re: possible to print automatically?

Post by bildGRAV »

Tracker Supp-Stefan wrote:Hi Jörg,

I believe I've supplied those above, and further details can be found in this link,

And here's a direct sample for a command line string:
PDFXCView.exe /print:showui=yes c:\mydocument.pdf
Sorry.... but I have the problem, that the software open an empty document without printing.
My mailclient is The-bat.

Jörg
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7445
Joined: Wed Mar 25, 2009 10:37 pm

Re: possible to print automatically?

Post by Paul - PDF-XChange »

Hi bildGRAV,

if you will excuse my asking, if the attachment is a PDF why are you printing it to PDF again? Can you not simply save the PDF? Reprinting a PDF to PDF is never really a good idea, it can significantly alter the original because the Windows Print subsystem will strip out anything that is not relevant to paper.

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com