Home  Products  Support  Custom Development  Mirror Sites  License Agreement  Refund Policy

How to convert an Office document (DOC, DOCX, XLS, XLSX, PPT, PPTX, etc.) to PDF file via Command Line?

VeryPDF has three products which can convert MS Office documents (DOC, DOCX, XLS, XLSX, PPT, PPTX, etc.) to PDF documents,

Solution 1: DocConverter COM (HTML2PDF.exe) + PDFcamp Printer

Please download and install the PDFcamp Printer and DocConverter COM from our website first,

https://www.verypdf.com/pdfcamp/pdfcamp.htm#dl

Please look at following URLs to study more information about DocConverter COM product,

https://www.verypdf.com/pdfcamp/doc2pdf_readme.html
https://www.verypdf.com/pdfcamp/word-to-pdf-converter.html

How to convert HTML, DOC, DOCX, RTF, TXT, PPT, PPTX, XLS, XLSX file to PDF file via Windows Service and Windows Application modes?

https://www.verypdf.com/pdfcamp/doc-converter-sdk.html

After you installed the PDFcamp Printer + DocConverter COM, please run following command line to convert your documents to PDF files,

For example:
html2pdf.exe "http://www.yahoo.com" "c:\yahoo.pdf"
html2pdf.exe "http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=pdf" "c:\google.pdf"
html2pdf.exe "C:\example.doc" "C:\example.pdf"
html2pdf.exe "C:\example.docx" "C:\example.pdf"
html2pdf.exe "C:\example.xls" "C:\example.pdf"
html2pdf.exe "C:\example.xlsx" "C:\example.pdf"
html2pdf.exe "C:\example.ppt" "C:\example.pdf"
html2pdf.exe "C:\example.pptx" "C:\example.pdf"

You can also call html2pdf.exe software from your application directly, then you can convert your documents to PDF files on the fly.

If you wish run DocConverter COM from ASP or PHP code, please look at the "doc2pdf_asp" directory, this example will let you know how to call html2pdf.exe from ASP language,

Please look at "test_activex.html" file and "test_all_functions.html" to study how to call DocConverter COM from a HTML file.

Please look at this URL for the more information,

https://www.verypdf.com/pdfcamp/doc2pdf_readme.html

HTML2PDF.exe is depend on PDFcamp Printer, you have to install PDFcamp Printer in order to use this application.

Solution 2: Document Converter (docPrint Pro)

https://www.verypdf.com/artprint/index.html#dl

docPrint Document Converter Professional (docPrint Pro) is a software product that dynamically converts MS Office 97/2000/XP/2003/2007, WordPerfect, HTML, AutoCAD DWG, PostScript, EPS, PDF, MS Visio and many other document types to PDF, PostScript, EPS, JPEG, TIFF, PNG, PCX and BMP etc formats. It works in both GUI version and Command Line version. With docPrint Document Converter Professional you can convert your documents from and to PDF, EPS, PS, JPEG, TIFF, BMP, PCX, PNG files easily. (See user manual) 

docPrint Document Converter Professional Batch Conversion Formats: 
Input formats: DOC, HTML, Web Pages, RTF, TXT, XLS, PPT, VSD, PDF, PS, EPS as well as any other printable documents
Output formats: PDF, PS, EPS, JPEG, TIFF, BMP, PCX, PNG, PCL, XPS, TXT

Please look at following page for the command line options of docPrint Pro product,

https://www.verypdf.com/artprint/document-converter/help.htm#cmd

docPrint Pro is depend on docPrint PDF Driver printer, you have to install docPrint PDF Driver printer before you use this application.

Please download and install Document Converter (docPrint Pro) v5.0 from our website, docPrint Pro product contains a docPrint PDF Driver, this print driver does support PDF Creation, you can print your DOC, DOCX, HTML, PPT, PPTX, XLS, XLSX, RTF, TXT, DWG, DXF, EPS, etc. documents to docPrint PDF Driver and save as to PDF file easily,

https://www.verypdf.com/artprint/index.html#dl
https://www.verypdf.com/artprint/docprint_pro_setup.exe

After you installed docPrint Pro product, please print your document to docPrint PDF Driver, then you can save as to PDF, PS, EPS, TIFF, BMP, JPEG, etc. formats.

For example, if you want to convert a DOC to PDF file, just open a .doc document in MS Word application, click "File" -> "Print" menus in MS Word, select "docPrint" printer, then click "OK" to print to it, the docPrint Preview Window will appear on desktop. Click "File" -> "Save To PDF/PS/EPS Files" menus or directly click "Save" icon on the toolbar in the docPrint Preview Window, then you will get a PDF file properly.

docPrint Pro is also support batch conversion, you can batch convert your MS Office documents to PDF, PS, EPS, TIFF, BMP, JPEG, PCL, XPS, etc. formats quickly and easily.

You can run doc2pdf.exe command line application to convert .DOC; .DOCX; *.RTF; *.PPT; *.PPTX; *.XLS; *.XLSX; *.HTML; *.MMTML, *.PS files to PDF, JPEG, TIFF, Postscript, PCX, BMP, TGA, PCL, XPS etc. files, please look at following page for more information,

https://www.verypdf.com/artprint/document-converter/help.htm

More Command Line examples to convert documents,

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.doc -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.xls -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.vsd -o C:\output.tif
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.pdf -o C:\output.tif
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.pdf -o C:\output.ps
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.ps -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -f 8 -i "http://www.verypdf.com" -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -f 1 -i "http://www.verypdf.com" -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\input.pdf -o C:\out.tif -b 24
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\in.pdf -o C:\out.tif -b 1 -r 200x300
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\in.pdf -o C:\out.jpg -b 24 -r 200x300
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\*.doc -o C:\*.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\*.xls -o C:\*.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\*.xls -o C:\*.jpg
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -p 2 -i C:\input.ppt -o C:\output.pdf
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -a "Author" -i C:\input.dwg -o C:\output.pdf

Solution 3: VeryDOC DOC to Any Converter

http://www.verydoc.com/doc-to-any.html

VeryDOC DOC to Any Converter can be used to batch convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX files to PDF, Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX, etc. formats. The program is handy and powerful. The software can be run using the handy interface or in batch mode to convert large volumes of MS Office files in real-time.

DOC to Any Converter is a stand-alone EXE Command Line application, you needn't install any Printer Driver before you use it, DOC to Any Converter will install necessary Printer Drivers automatically during conversion, this is the BIG difference compare to DocConverter COM and docPrint Pro products.

DOC to Any Converter can convert OpenOffice documents to other formats, see more information at here.

You can run following command lines to convert documents to PDF and other formats,

doc2any.exe C:\in.doc C:\out.pdf
doc2any.exe C:\in.ppt C:\out.pdf
doc2any.exe C:\in.xls C:\out.pdf
doc2any.exe C:\in.docx C:\out.pdf
doc2any.exe C:\in.pptx C:\out.pdf
doc2any.exe C:\in.xlsx C:\out.pdf
doc2any.exe C:\*.doc C:\*.pdf
doc2any.exe -margin 100x100x100x100 C:\in.rtf C:\out.pdf
doc2any.exe -append 2 -width 612 -height 792 C:\*.doc C:\out.pdf
doc2any.exe -append 2 C:\*.doc C:\out.pdf
doc2any.exe -width 612 -height 792 C:\in.doc C:\out.pdf
doc2any.exe -append 1 C:\in.doc C:\out.pdf
doc2any.exe -append 2 C:\in.doc C:\out.pdf
doc2any.exe -subject "subject" C:\in.doc C:\out.pdf
doc2any.exe -ownerpwd 123 -keylen 2 -encryption 3900 C:\in.doc C:\out.pdf
doc2any.exe "C:\in.doc" C:\out.gif
doc2any.exe "C:\in.doc" C:\out.png
doc2any.exe -useprinter -xres 300 -yres 300 -bitcount 1 -compression 4 "C:\in.doc" "C:\out.tif"

Please refer to more command line options from following page,

http://www.verydoc.com/doc-to-any-options.html


See Also:
How to convert a HTML file or Web Page (Web URL) to PDF file via Command Line?

If you encounter any problems, please feel free to contact us at support@verypdf.com.

Contact:
    support@verypdf.com
    https://www.verypdf.com


VeryPDF.com | VeryDOC.com | VeryPCL.com | Links | Contact

Copyright © 2002- VeryPDF.com, Inc. All rights reserved.
Send comments about this site to the webmaster.