CoolUtils Logo
German  Italian  Dutch  Spanish  Russian

Command Line Parameters

content

You can convert PDF files to other file formats via Command line using Total PDF Converter. To work with Command line you should use the following code:
PDFConverter.exe <source> <destination> <options>

where

  • <source> is the destination path of the original PDF file location;
  • <destination> is the destination path where converted file should be kept;
  • <options> is the name of the option you want to use while converting the file.

For example: PDFConverter.exe C:\Documents\PDF.pdf C:\DOC\example.doc - c doc

The program will convert the file PDF.pdf into DOC document example.doc and place it in the folder C:\DOC\

  1. If you want to convert all the files from one folder use * sign.

    For example: PDFConverter.exe C:\Documents\*.pdf C:\DOC\ - c doc

    Total PDF Converter will convert all PDF files from the folder C:\Documents\ to DOC format and place them in the folder C:\DOC\

  2. If you need to do batch conversion put appropriate PDF files to list.txt

    For example: PDFConverter.exe -list List.txt C:\DOC\ - c doc

    Total PDF Converter will convert all PDF files from the file list List.txt to DOC and place them in the folder C:\DOC\

  3. As for Command line options you may observe the list of them in Total PDF Converter:

    • Click 'Help' and select 'Command line parameters'.

      Command-line2

    • The list of options will appear.

      Command-line3

    • The options are the following:

      • -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)
      • -c - Destination file format
        • doc - convert to Word file
        • xls - convert to Excel file
        • htm - convert to HTML file
        • txt - convert to text file
        • csv - convert to csv file
        • bmp - convert to bmp file
        • jpg - convert to jpeg file
        • tif - convert to tiff file
        • gif - convert to gif file
        • png - convert to png file
        • wmf - convert to wmf file
        • emf - convert to emf file
        • eps - convert to eps file
        • pdf - convert to pdf file
      • -e - End page symbols to separate pdf pages in the text file
      • -s - Put every page into separate file
      • -t - Template for generating file name in "separate file" mode
      • -csv - Choose the method to extract pdf to csv:
        • 0 - Return a CSV string, only data
        • 1 - Return a CSV string including font, color, size and position of each piece of text on the page
        • 2 - Return a CSV string for each piece of text on the page with the following format: Font Name, Text Color, Text Size, X1, Y1, X2, Y2, X3, Y3, X4, Y4, Text
      • -dpi - Choose the quality and size of the produced image:
      • -tc - TIFF image compression
        • 0 - uncompressed TIFF
        • 1 - LZW compression
        • 2 - RLE compression (packbits)
        • 3 - JPEG compression
        • 4 - Bi-level Huffman compression (CCITT1D)
        • 5 - Bi-level Group 3 CCITT compression, monodimensional (G3FAX1D)
        • 6 - Bi-level Group 3 CCITT compression, bidimensional (G3FAX2D)
        • 7 - Bi-level Group 4 CCITT compression, bidimensional (G4FAX)
      • -jq - Jpeg Quality
      • -pass - Password
      • -FP - Fit To Page
      • -si - Convert all PDF files into 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>

  4. You may also use macros in the Destination path. To do this enter the following:

  •  <DATE[:format]> - current date, default format is yyyymmdd

  •  <TIME[:format]> - current time, default format hhmmss

For example: destination C:\<DATE>_<TIME:hhmm> produce file C:\20100318_1300

Site Map  |  Contacts |  Press Center | Resellers | About |  Privacy Policy |    Copyright © 1998-2018 CoolUtils Development. All rights reserved.   GPlus