Command Line Help SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Command Line Help
Hi,
I'm working on a process that will be controlled by some RPA software. The RPA application will have a directory, a file name, and a unique identifier. I expect that PDF Tools will....
1) Use the merge tool to combine all PDF's in the directory and create a single document that's been named according to the file name.
2) Apply a watermark including the unique identifier and some other ascii stuff
I'm working on step 1 using a cli instruction:
PDFXTools.exe/RunTool:showui=no:showrep=no "pdft.tool.splitMergePDF" "C:\someinputfolder" /Output:folder=\"C:\someoutputfolder";filename=\"testfile.pdf\"
This looks to match about what I saw in the documentation.
This part works:
PDFXTools.exe/RunTool:showui=no:showrep=no "pdft.tool.splitMergePDF" "C:\someinputfolder"
A GUI window for split and merge comes up and it's definitely "seen" the files in the input folder.
This part does not:
/Output:folder=\"C:\someoutputfolder";filename=\"testfile.pdf\"
The output file name doesn't update nor does the output folder. Instead it reverts to some default setting that you'd see in the GUI if you just ran PDF tools from the start menu.
The docs show a sample implementation as this:
PDFXTools.exe /RunTool imagesToPDF /Output:folder=\"D:\PDFs from images\";filename=\"%[Date].pdf\";overwrite=makeuniq;showfiles=no
Would anybody be able to take a guess as to what I might be doing wrong with this?
I'm working on a process that will be controlled by some RPA software. The RPA application will have a directory, a file name, and a unique identifier. I expect that PDF Tools will....
1) Use the merge tool to combine all PDF's in the directory and create a single document that's been named according to the file name.
2) Apply a watermark including the unique identifier and some other ascii stuff
I'm working on step 1 using a cli instruction:
PDFXTools.exe/RunTool:showui=no:showrep=no "pdft.tool.splitMergePDF" "C:\someinputfolder" /Output:folder=\"C:\someoutputfolder";filename=\"testfile.pdf\"
This looks to match about what I saw in the documentation.
This part works:
PDFXTools.exe/RunTool:showui=no:showrep=no "pdft.tool.splitMergePDF" "C:\someinputfolder"
A GUI window for split and merge comes up and it's definitely "seen" the files in the input folder.
This part does not:
/Output:folder=\"C:\someoutputfolder";filename=\"testfile.pdf\"
The output file name doesn't update nor does the output folder. Instead it reverts to some default setting that you'd see in the GUI if you just ran PDF tools from the start menu.
The docs show a sample implementation as this:
PDFXTools.exe /RunTool imagesToPDF /Output:folder=\"D:\PDFs from images\";filename=\"%[Date].pdf\";overwrite=makeuniq;showfiles=no
Would anybody be able to take a guess as to what I might be doing wrong with this?
Re: Command Line Help SOLVED
Try
/Output:folder=\"C:\someoutputfolder\";filename=\"testfile.pdf\"
/Output:folder=\"C:\someoutputfolder\";filename=\"testfile.pdf\"
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
- Paul - Tracker Supp
- Site Admin
- Posts: 6901
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: Command Line Help
Thanks, Ovg
I am keen to hear the results of that suggestion also.
Kind regards,
Paul - Tracker Supp
I am keen to hear the results of that suggestion also.
Kind regards,
Paul - Tracker Supp
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Re: Command Line Help
Hello Paul! At least it's working for me.
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
- TrackerSupp-Daniel
- Site Admin
- Posts: 8610
- Joined: Wed Jan 03, 2018 6:52 pm
Command Line Help
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Re: Command Line Help
That worked. I am an idiot. I should have spotted the slash.
One last question, I think: I'm running with arguments RunTool:showui=no:showrep=no. Despite that I still get this UI that pops up. It's *part* of pdf tools clearly, but it's not the UI that you would get if you just started the program from the start menu.
Anyway, the window pops up and I just need to click "ok" and it executes. It's not the end of the world because I can have the rpa software do the click but I'm always preferential to not have to mess around with UI stuff if I can avoid it. Is there a way to suppress this from the command line?
One last question, I think: I'm running with arguments RunTool:showui=no:showrep=no. Despite that I still get this UI that pops up. It's *part* of pdf tools clearly, but it's not the UI that you would get if you just started the program from the start menu.
Anyway, the window pops up and I just need to click "ok" and it executes. It's not the end of the world because I can have the rpa software do the click but I'm always preferential to not have to mess around with UI stuff if I can avoid it. Is there a way to suppress this from the command line?
- TrackerSupp-Daniel
- Site Admin
- Posts: 8610
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Command Line Help
Hello, danloz
That would be caused by settings within the action which is appearing itself, if you open PDF-Tools and take a look at your tool, you will notice that the split/merge pages action has a checkbox: If you uncheck this, it should not appear, but the command line will be ignored if this option is enabled. The "showui=no" only stops the main application window from opening.
Kind regards,
That would be caused by settings within the action which is appearing itself, if you open PDF-Tools and take a look at your tool, you will notice that the split/merge pages action has a checkbox: If you uncheck this, it should not appear, but the command line will be ignored if this option is enabled. The "showui=no" only stops the main application window from opening.
Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Re: Command Line Help
Hi,
So I checked the PDF Tools gui. I see the checkbox "Show setup dialog while running" and it's set to false. Is there another place where the setting would be hiding?
So I checked the PDF Tools gui. I see the checkbox "Show setup dialog while running" and it's set to false. Is there another place where the setting would be hiding?
- TrackerSupp-Daniel
- Site Admin
- Posts: 8610
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Command Line Help
Hello, danloz
By any chance, perhaps the option a little higher up, which I forgot existed and didnt highlight in my previous screenshot (my apologies!) Kind regards,
By any chance, perhaps the option a little higher up, which I forgot existed and didnt highlight in my previous screenshot (my apologies!) Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Re: Command Line Help
That worked! Thanks a ton.
Just curious: Is there anyway to save these settings associated with the tool and load them from the command line prior to run? I can tell my users to set it manually as well or maybe just have the robot deal with it but I like to reduce risk where possible.
Just curious: Is there anyway to save these settings associated with the tool and load them from the command line prior to run? I can tell my users to set it manually as well or maybe just have the robot deal with it but I like to reduce risk where possible.
- Tracker Supp-Stefan
- Site Admin
- Posts: 17941
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Command Line Help
Hello danloz,
Glad to hear it worked for you!
As for the command line - these are the options that we offer for PDF Tools from there:
https://help.pdf-xchange.com/pdfxt ... ons_t.html
You can start a tool you created previously, however customizing parameters, other than the input files which you need to supply, on an existing tool from the command line is not really possible.
Kind regards,
Stefan
Glad to hear it worked for you!
As for the command line - these are the options that we offer for PDF Tools from there:
https://help.pdf-xchange.com/pdfxt ... ons_t.html
You can start a tool you created previously, however customizing parameters, other than the input files which you need to supply, on an existing tool from the command line is not really possible.
Kind regards,
Stefan
Re: Command Line Help
Thanks. You guys have been a huge help.
- TrackerSupp-Daniel
- Site Admin
- Posts: 8610
- Joined: Wed Jan 03, 2018 6:52 pm
Command Line Help
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Re: Command Line Help
Hi danloz,
can you tell me from where to you call the cli?
Thanks
can you tell me from where to you call the cli?
Thanks