0
How to convert text file to pdf using command line on the fly

/t5/acrobat-sdk-discussions/how-to-convert-text-file-to-pdf-using-command-line-on-the-fly/td-p/8209149
Apr 11, 2016
Apr 11, 2016
Copy link to clipboard
Copied
Hi,
I am looking to use Adobe to convert a simple text file to a pdf using the DOS command line execution so it can be run on the fly when needed.
Thanks
TOPICS
Acrobat SDK and JavaScript
,
Windows
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-sdk-discussions/how-to-convert-text-file-to-pdf-using-command-line-on-the-fly/m-p/8209150#M64927
Apr 11, 2016
Apr 11, 2016
Copy link to clipboard
Copied
Not possible.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-sdk-discussions/how-to-convert-text-file-to-pdf-using-command-line-on-the-fly/m-p/8209151#M64928
Apr 11, 2016
Apr 11, 2016
Copy link to clipboard
Copied
Actually, it is possible, but it might not work as you expect.
You just need to provide the path to the txt file as a parameter to Acrobat.exe and it will launch Acrobat and convert that file to PDF.
However, it will not be saved automatically and the application, with the new (temporary) file in it, will remain open.
Acrobat is not really suited for command-line usage, if that's what you're trying to achieve.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

