Convert PDF Documents to DXF via Command Line
You may convert PDF documents to DXF via command line with Total PDF to DXF Converter. It's a good way to convert files from within other programs not evoking the user interface.
Usage: PDFtoDXFConverter.exe <source> <destination> <options>
If you have path with spaces, use quotation marks.
Use macros in the Destination path:
- <DATE[:format]> - current date, default format is yyyymmdd
- <TIME[:format]> - current time, default format hhmmss
Example: destination C:\<DATE>_<TIME:hhmm> produce file C:\20090731_1337
Options:
- -log <FileName> - Don`t show errors. Write them to the log file
- -list - File with files mask to convert
- -Recurse - Include subfolders
- -do - Delete originals
- -kfs - Keep Folder Structure
- -errdir - Error folder (for invalid files)
- -t - Template for generating file name
- -ts - Start numbering from value for template (-1 - base on destination folder files count)
- -b - Split file by bookmarks in this level
- -p - Extract only these pages
- -cp - Make new document every n pages
- -pass - Password
- -FP - Fit To Page
- -si - Convert into a single image
- -po - Paper Orientation
- Portrait - Portrait
- Landscape - Landscape
- -ps - PaperSize
- Letter - Letter
- LetterSmall - Letter Small
- Tabloid - Tabloid
- Ledger - Ledger
- Legal - Legal
- Statement - Statement
- Executive - Executive
- Folio - Folio
- A3 - A3
- A4 - A4
- A4Small - A4Small
- A5 - A5
- B4 - B4
- B5 - B5
- Quarto - Quarto
- EnvC5 - Envelope C5
- EnvC3 - Envelope C3
- EnvC4 - Envelope C4
- EnvC6 - Envelope C6
- EnvB4 - Envelope B4
- EnvB5 - Envelope B5
- EnvB6 - Envelope B6
- EnvMonarch - Envelope Monarch
- Custom - Custom, you need to set paper dimensions
- -pd - Custom paper size dimensions <width>x<height>
Total PDF to DXF Converter Command Line Example
PDFtoDXFConverter.exe <C:\Profiles\> <C:\Plans\> -log -kfs -errdir C:\BadFiles\
This means that you want to take the PDF files from the folder Profiles on disc C and convert them to DXF keeping forder structure. The resulting DXF files shold be placed into folder Plans on disc C. The invalid PDF files that could not be processed should e placed into folder BadFiles on dic C. The program will also write errors into the log file.