Page 1 of 1

How to write command line: print N copies of a file

Posted: Thu May 09, 2024 10:15 pm
by FDJKDF
How to write command line: print N copies of a file

Re: How to write command line: print N copies of a file

Posted: Thu May 09, 2024 10:30 pm
by Daniel - PDF-XChange
Hello, FDJKDF

The print command does not allow for CMD definition of most settings. You will need to manually access the print dialog to alter that setting.
You can find all Editor command line options here: https://help.pdf-xchange.com/pdfxe10/co ... ns_ed.html

Kind regards,

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 12:09 am
by FDJKDF
TrackerSupp-Daniel wrote: Thu May 09, 2024 10:30 pm Hello, FDJKDF

The print command does not allow for CMD definition of most settings. You will need to manually access the print dialog to alter that setting.
You can find all Editor command line options here: https://help.pdf-xchange.com/pdfxe10/co ... ns_ed.html

Kind regards,
While the print command doesn't allow CMD to define most settings, some of the basic ones should be there, such as printing N copies of a certain file. I've gone through the link you posted and can't find where it states this, can you provide a little more help, just a very common need, thanks!

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 9:51 am
by Stefan - PDF-XChange
Hello FDJKDF,

As you have seen on the page Dan linked above - we do not have a parameter for printing multiple copies for the command line.
If you are writing a script that will be calling that command line - then in your script add the necessary code that will call the same command line the needed number of times so that you can print your desired number of copies.

And if you are not writing a script - then running the Editor with the UI and printing there the desired number of copies is your other solution.

Kind regards,
Stefan

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 10:23 am
by FDJKDF
Tracker Supp-Stefan wrote: Fri May 10, 2024 9:51 am Hello FDJKDF,

As you have seen on the page Dan linked above - we do not have a parameter for printing multiple copies for the command line.
If you are writing a script that will be calling that command line - then in your script add the necessary code that will call the same command line the needed number of times so that you can print your desired number of copies.

And if you are not writing a script - then running the Editor with the UI and printing there the desired number of copies is your other solution.

Kind regards,
Stefan
I think pdfxchange is a very good product, and I hope that such a function can be added (I think this is relatively common). In addition, if you use the operation of sending several commands in a loop, the efficiency will be greatly reduced. If you need to print 10 copies of a certain file, the time will be multiplied by 10. I think this is unreasonable.

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 10:53 am
by Stefan - PDF-XChange
Hello FDJKDF,

I do not think there are plans for the command line options to be extended, though I will check.
Still the slowest point of the operation should be the printer getting the sheets of paper out. Yes - a bit more CPU time will be used as well, but it should not be too much of a slowdown as the Printer will always be the bottleneck.

Kind regards,
Stefan

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 12:10 pm
by FDJKDF
Tracker Supp-Stefan wrote: Fri May 10, 2024 10:53 am Hello FDJKDF,

I do not think there are plans for the command line options to be extended, though I will check.
Still the slowest point of the operation should be the printer getting the sheets of paper out. Yes - a bit more CPU time will be used as well, but it should not be too much of a slowdown as the Printer will always be the bottleneck.

Kind regards,
Stefan
I am automating cmd printing by calling this software with automation and it comes out with automatic binding, the only problem now is that it takes too long to send the file to the printer

Re: How to write command line: print N copies of a file

Posted: Fri May 10, 2024 4:18 pm
by Daniel - PDF-XChange
Hello, FDJKDF

The Editor is not intended for batch processing actions, if you need to print multiple copies of multiple document in quick succession, we offer the PDF-Tools batch processing suite for that purpose. The editor should be used for actions which require direct review and editing, while Tool can be used for "rapid generic" operations.
Tools offers a Print option, though you do need to pre-define how many copies you wish to make through the tool setup, unless you enable the option to show the setup dialog while running. You can customize your PDF-Tools process here: https://www.pdf-xchange.com/knowledgeba ... -PDF-Tools
Beyond that, you are also able to dictate many PDF-Tools actions via the command line, including defining multiple input files at once: https://help.pdf-xchange.com/pdfxt10/co ... ons_t.html

Kind regards,