Text to PDF batch conversion using wildcards?

Can your product convert using wildcards, such as:

C:\>"C:\Program Files\Text2PDF v1.5\txt2pdf.exe" C:\InputDirectory\*.txt C:\OutputDirectory\*.pdf
================================
You can run following command lines to batch convert lots of text files to PDF files at one time,

for %F in (D:\temp\*.txt) do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%F" "%~nF.pdf"
for %F in (D:\temp\*.txt) do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%F" "%~dpnF.pdf"
for %F in (D:\temp\*.txt) do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%F" "C:\test\%~nF.pdf"

//You can use following one command line to batch convert all of your files at one time easily,

#1: Convert all TEXT files to PDF files in D:\temp folder,

for %F in (D:\temp\*.txt) do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%F" "%~dpnF.pdf"

#2: Convert all TEXT files to PDF files in D:\temp folder and sub-folders (recursion),

for /r D:\temp %F in (*.txt) do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%F" "%~dpnF.pdf"

#3: You can do batch text to pdf conversion in .bat file, but you need use "%%" to instead of "%" in .bat file, e.g.,

for %%F in ("D:\temp\*.txt") do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%%F" "%%~nF.pdf"

#4: You can convert all text files from current folder to PDF files in .bat file, %CD% is the current folder, e.g.,

for %%F in ("%CD%\*.txt") do "C:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%%F" "%%~nF.pdf"

VeryPDF
============================================

The batch scripts work great but I am having a problem with the top of page character in the text file. I have attached a copy of the txt file that contains the top of form character. The client is using 14” wide x 8.5” wide and I am using the following script in a batch file:

for %%F in (e:\cd_record1\asi\files2pdf\*.txt) do "D:\Program Files\Text2PDF v1.5\txt2pdf.exe" "%%F" " e:\cd_record1\asi\PDFFiles\%%~dpnF.pdf" "-pps43" "-width1008" "-height612"

Is there some parameter that I can do to recognize the top of form character? This is a print file from a application that is renamed with the txt extension.
====================================
Thanks for your message, Text to PDF Converter can’t recognize the top of form character, you need remove or modify it by yourself before conversion, please understand.

VeryPDF

VN:F [1.9.20_1166]
Rating: 8.5/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Text to PDF batch conversion using wildcards?, 8.5 out of 10 based on 2 ratings

Related Posts

This entry was posted in Text to PDF Converter and tagged . Bookmark the permalink.

One Response to Text to PDF batch conversion using wildcards?

  1. VeryPDF says:

    I am evaluating this software for purchase. I would like to know if I can use wildcards to convert any number of text files in a single command.

    My process creates UNIX TXT files and ftp's them all to a single Windows folder. The number of files can vary month to month. All files share an 8 character prefix. I would like to use 1 command to convert all to PDF. Is this possibel?

    Right now I have 199 files and used these commands for the conversion:
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" f1.txt f1.pdf
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" f1.txt f1.pdf
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" f2.txt f2.pdf
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" f3.txt f3.pdf
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" f4.txt f4.pdf

    Is it possible to do this in 1 command, anything like:
    "C:\Program Files\Text2PDF v1.5\TXT2PDF" F*.TXT

    Thanks,
    Customer
    ====================================

    Please refer to details in this article, please feel free to let us know if you need any other assistance.

    xueheng

    VN:F [1.9.20_1166]
    Rating: 5.0/5 (2 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!