List of Articles
Examples of how to use DocTo
Even though it is easy to convert one file at a time, Sometimes you need to convert an entire directory of text Files (or rtf files) to PDFs. You can do this easily on the command line using Docto.
The command line below shows how you can convert all the text files in a folder to a Adobe PDF Format file - PDF. If you provide a directory and an extension, docto knows to convert all the documents matching that extension in that directory.
docto -WD -f 'c:\path\todocuments' -fx .txt -o 'c:\path\toOutputfiles' -t wdFormatPDF
or easier to read
docto -WD -f 'c:\path\todocuments' -fx '.txt' -o 'c:\path\toOutputfiles' -t wdFormatPDF
-WD: This is a conversion using Microsoft Word. This is not required but makes it easier to read
-f: The File or directory to be converted
-fx: File with this extension should be matched.
-o: The Output File or Directory where you would like the converted file to be written to.
-T: The file format type that is being converted to
When providing an extension to search for do not include the initial
*.txt should be
You might find some of the following commands also interesting.
DocTo source on Github| Index of Examples | Download Latest Release