Home > Products Windows > Document Converter

User manual of VeryPDF Document Converter Command Line

VeryPDF Document Converter Command Line is the CMD version of VeryPDF Document Converter. It can convert Word (DOC, DOCX), Excel(XLS, XLSX), PowerPoint(PPT, PPTX), HTML, VSD, TXT, etc. documents to PS, PDF, JPEG, PNG, BMP, GIF, EPS, TIFF, PCX, TGA, DCX, WMF, EMF, XPS, PCL, etc. by a command line. This article is brief user manual of this command line application.

Download and run

Download the package of VeryPDF Document Converter Command Line and then unzip the package to a folder in your computer disk. In the unzipped folder, you will find an executable file named doc2pdf.exe which is the called program. To run the program, you need to open a DOS command prompt window first and then you can call the program.

Basic usage

The following command line template illustrates the usage of this program:

doc2pdf [options] <-i Document Files> [-o Output]

In the above command line template, -i Document Files is to specify the source files to convert, and -o Output is to specify the target files.

If you need to set PDF information for the output PDF file, you can use the following options: -j <subject>, -t <title> and -a <author>.
For example,

doc2pdf -j "document converter" -i C:\input.doc -o C:\output.pdf
doc2pdf -t "How to use Document Converter" -i C:\input.docx -o C:\output.pdf
doc2pdf -a "VeryPDF" -i C:\input.xls -o C:\output.pdf  

The first example is to convert Word DOC document to PDF document and set PDF subject as "document converter".
The second example is to convert Word DOCX document to PDF and set PDF title as "How to use Document Converter".

The third example is to convert Excel XLS document to PDF document and set PDF author as "VeryPDF".

 

If you want to encrypt the output PDF file with passwords, you can use the following options: -s openpwd=XXX, -s ownerpwd=XXX, -s keylen=XXX and -s permission=XXX.     
For example,

doc2pdf -s openpwd=123 -s ownerpwd=456 -s keylen=0 -s permission=3900 -i C:\ test.doc -o C:\out.pdf

This example is to convert Word DOC document to PDF document and set open password as 123, owner password as 456, key length as 40 bit RC4 encryption and set permission as “Deny anything” to PDF file.

 

If you want to set resolution and color type for the output image, you can use the following options: -r <resolution> and -b <color type>.
For example,

doc2pdf -i C:\in.pdf -o C:\out.jpg -b 24 -r 200x300

This example is to convert PDF document to true color JPG image and set X and Y resolution as 200x300.

 

If you want to know more usage or options about this command line application, please download VeryPDF Document Converter Command Line and install it. In the installation folder, please find doc2pdf.exe and input the full path of it then press Enter on the keyboard. All the usage and introduction will be shown in the MS DOS Windows.

If you want get full version of this command line application, you can buy VeryPDF Document Converter Command Line here

Options

VeryPDF Document Converter Command Line supports the following options:
PDF Output Options:

-j <subject>           : "subject" for PDF file

-t <title>             : "title" for PDF file

-a <author>            : "author" for PDF file

-k <keywords>          : "keywords" for PDF file

-s openpwd=XXX         : set 'open password' to PDF file

-s ownerpwd=XXX        : set 'owner password' to PDF file

-s keylen=XXX          : key length (40 or 128 bit)

   -s keylen=0         :  40 bit RC4 encryption (Acrobat 3 or higher)

   -s keylen=1         : 128 bit RC4 encryption (Acrobat 5 or higher)

   -s keylen=2         : 128 bit RC4 encryption (Acrobat 6 or higher)

-s permission=XXX      : set permission to PDF file

   -s permission=0     : Encrypt the file only

   -s permission=3900  : Deny anything

   -s permission=4     : Deny printing

   -s permission=8     : Deny modification of contents

   -s permission=16    : Deny copying of contents

   -s permission=32    : No commenting

   ===128 bit encryption only -> ignored if 40 bit encryption is used

   -s permission=256   : Deny FillInFormFields

   -s permission=512   : Deny ExtractObj

   -s permission=1024  : Deny Assemble

   -s permission=2048  : Disable high res. printing

   -s permission=4096  : Do not encrypt metadata

-g <page range>        : page range for conversion, eg: 1,2-4,6

-G                     : don't append suffix to filename for single page file

-R <Rotate>            : rotate page 90, 180, 270 angle

Image Output Options:

-b <color type>       : specify color type for output file

   -b 1               : output black and white image file

   -b 8               : output 256 colors image file

   -b 24              : output True Colors image file

-c <compression>      : compression for TIFF output format

   -c 1               : NONE compression

   -c 2               : CCITT modified Huffman RLE

   -c 3               : CCITT Group 3 fax encoding (1d)

   -c 4               : CCITT Group 4 fax encoding

   -c 5               : LZW compression

   -c 6               : OJPEG compression

   -c 7               : JPEG DCT compression

   -c 32773           : PACKBITS compression

   -c 32809           : THUNDERSCAN compression

   -c 88880           : 204x98  G4 ClassF TIFF

   -c 88881           : 204x196 G4 ClassF TIFF

   -c 88882           : 204x98  G3 ClassF TIFF

   -c 88883           : 204x196 G3 ClassF TIFF

   -c 88884           : CCITT Group 3 fax encoding (2d)

-r <resolution>       : set resolution to generated image files

   -r 300             : set X and Y resolution to generated image files

   -r 300x600         : set X and Y resolution to generated image files

   -r 200x300         : set X and Y resolution to generated image files

-w <image width>      : set width to generated image files, unit is pixel

-h <image height>     : set height to generated image files, unit is pixel

-R <Rotate>           : rotate page 90, 180, 270 angle

Please Notice: Command Line options are CASE SENSITIVE.

Discount 45% ($49.90) to buy PDF to Word Converter, PDF to Excel Converter, and PDF to PowerPoint Converter.

Related Links

Relative Products

Gold Support 30-DAY NO RISK REFUND
 
  Learn more about Document Converter   See other products   Download   Buy Now
 
 
                   
 You may like these products
VeryPDF PDFcamp Printer Pro
VeryPDF PDFcamp Printer Pro

$38.00

Convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, and HTML to PDF. Create PDF from printable documents.
VeryPDF PDF Editor
VeryPDF PDF Editor

$89.95

Create PDF, annotate PDF, fill PDF forms, edit PDF contents and hyperlinks, and convert PDF to image. It is a cost-effective PDF editor.
VeryPDF PDF to Word OCR Converter
VeryPDF PDF to Word OCR Converter

$59.95

Recognize characters in scanned image PDF and save as Word. It supports batch process that can convert multiple PDF files with one click.