Hi,
I’d like to call a custom tool from the command (PDFXTools.exe /RunTool: …), with the input files selected via a predefined file list (*.pdtfl).
The reason why I’m using file lists ist that the source files need to be processed in a certain order (i.e. not sorted alphabetically or by timestamp).
The location of the file list is not static, instead it has to be set dynamically at runtime.
Is that possible?
Unfortunately, the tool action „Choose input files“ only permits static file list locations.
PDF-Tools command line with file lists (.pdtfl)
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Stefan - PDF-XChange
- Daniel - PDF-XChange
- Site Admin
- Posts: 10883
- Joined: Wed Jan 03, 2018 6:52 pm
Re: PDF-Tools command line with file lists (.pdtfl)
Hello, involve39
If you leave the field empty, the tool should prompt you to locate a file list at runtime.
Beyond that, it should be possible to do this via the command line, simply by running the tool with a different input file path to the PDTFL files: https://help.pdf-xchange.com/pdfxt10/co ... ons_t.html
Kind regards,
If you leave the field empty, the tool should prompt you to locate a file list at runtime.
Beyond that, it should be possible to do this via the command line, simply by running the tool with a different input file path to the PDTFL files: https://help.pdf-xchange.com/pdfxt10/co ... ons_t.html
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. 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: PDF-Tools command line with file lists (.pdtfl)
Thanks for your reply!

But I'll try it out, feeding a PDTFL as input to PDFXTools.exe.
This wouldn't work, because the process has to run without user interaction.TrackerSupp-Daniel wrote: ↑Thu Aug 29, 2024 9:33 pm If you leave the field empty, the tool should prompt you to locate a file list at runtime.
I looked at that manual, but it doesn't mention PDTFL files - which is why I askedTrackerSupp-Daniel wrote: ↑Thu Aug 29, 2024 9:33 pm Beyond that, it should be possible to do this via the command line, simply by running the tool with a different input file path to the PDTFL files: https://help.pdf-xchange.com/pdfxt10/co ... ons_t.html

But I'll try it out, feeding a PDTFL as input to PDFXTools.exe.
- Jordan - PDF XChange
- Site Admin
- Posts: 245
- Joined: Mon Jul 03, 2023 3:10 pm
Re: PDF-Tools command line with file lists (.pdtfl)
Hello, since some years I use the command line
%pathTools%PDFXTools.exe /RunTool:showui=no;showprog=no splitMergePDF "%datei1%" "%datei2%" "%datei3%" "%datei4%" "%datei5%" "%datei6%" "%datei7%" "%datei8%" "%datei9%" "%datei10%" "%datei11%" /Output:Overwrite=yes;showfiles=no;filename="%pfad%\%Ergname%"
to merge files together.
Since this summer, the files have been sorted alphabetically. Can I avoid this and put the files back together as shown in the list?
%pathTools%PDFXTools.exe /RunTool:showui=no;showprog=no splitMergePDF "%datei1%" "%datei2%" "%datei3%" "%datei4%" "%datei5%" "%datei6%" "%datei7%" "%datei8%" "%datei9%" "%datei10%" "%datei11%" /Output:Overwrite=yes;showfiles=no;filename="%pfad%\%Ergname%"
to merge files together.
Since this summer, the files have been sorted alphabetically. Can I avoid this and put the files back together as shown in the list?
- Daniel - PDF-XChange
- Site Admin
- Posts: 10883
- Joined: Wed Jan 03, 2018 6:52 pm
Re: PDF-Tools command line with file lists (.pdtfl)
Hello, BKIM
I am not sure if a change in this nature was intended, but I suspect it was not. I have passed this along to the Dev team for review.
In the meantime, instead of inputting each filename via CMD individually, it may help you to use a "file list" document instead. This is simply a text file with the extension changed to *.PDTFL. The text file contains the path to each desired file, one path per line of text. With this, you would need to adjust your tool to use file list input, but otherwise it should begin processing without issue and in the defined order: [edit]
we have made a ticket to revert to the old handling for CMD entered lists:
RT#7208: bug: tools cmd-line input is sorting alphabetically
Kind regards,
I am not sure if a change in this nature was intended, but I suspect it was not. I have passed this along to the Dev team for review.
In the meantime, instead of inputting each filename via CMD individually, it may help you to use a "file list" document instead. This is simply a text file with the extension changed to *.PDTFL. The text file contains the path to each desired file, one path per line of text. With this, you would need to adjust your tool to use file list input, but otherwise it should begin processing without issue and in the defined order: [edit]
we have made a ticket to revert to the old handling for CMD entered lists:
RT#7208: bug: tools cmd-line input is sorting alphabetically
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com