CLI: Output Folder and File are not working  SOLVED

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

ogalbnafets
User
Posts: 2
Joined: Wed Aug 13, 2025 2:38 pm

CLI: Output Folder and File are not working

Post by ogalbnafets »

Dear Team,
I am trying to export the form fields of a PDF into an XML file, but I’m encountering some difficulties. Specifically, I want to export the data as XML (not FDF) and save it to a specific folder.

I have tried the following command and various similar variations:

Code: Select all

"C:\Program Files\Tracker Software\PDF Tools\PDFXTools.exe" /RunTool:showprog=no;showui=no;showrep=no;showfiles=no pdft.tool.exportFields "C:\Users\xxxxx.pdf" /Output:folder=\"C:\xxxx\";filename=\"xxxxx.xml\"
However, the output is always saved as an FDF file in the same folder as the original PDF.

What am I doing wrong? :cry: Could you please provide an example of how to use exportFields to export the data as XML?

Version: 10.2.1

Thank you very much!
Stefan
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11586
Joined: Wed Jan 03, 2018 6:52 pm

Re: CLI: Output Folder and File are not working  SOLVED

Post by Daniel - PDF-XChange »

Hello, ogalbnafets

CLI cannot control the majority of actions' special functions, the /output switch refers exclusively to the "save documents" action that is present in most default tools, and to my knowledge, cannot be used to control any other format of output.

You will need to pre-configure the tool via the UI, before running it, and you will want to remove the /output switch from your script.
image.png
Kind regards,
You do not have the required permissions to view the files attached to this post.
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
ogalbnafets
User
Posts: 2
Joined: Wed Aug 13, 2025 2:38 pm

Re: CLI: Output Folder and File are not working

Post by ogalbnafets »

Hi Daniel!

Thank you for the clarification.

Since I need to deploy this workflow on multiple PCs across our company, the previous approach wouldn’t be very practical. Instead, I created a custom tool, and this solution works perfectly!
image(1).png
Best wishes,
Stefan
You do not have the required permissions to view the files attached to this post.
User avatar
Dimitar - PDF-XChange
Site Admin
Posts: 2432
Joined: Mon Jan 15, 2018 9:01 am

Re: CLI: Output Folder and File are not working

Post by Dimitar - PDF-XChange »

Thank you for your feedback.