Convert HTML file to PDF file  Home  PDFcamp  Support  Screen shot  Doc2PDF_COM  Functions List  Articles  Products  Downloads

How to Convert a HTML file or Web Pages to PDF file via Command Line?

VeryPDF has more products which can convert HTML files and Web pages 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,

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

Please look at this page for the more information about the DocConverter COM product,

http://www.verypdf.com/pdfcamp/word-to-pdf-converter.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 from your application to convert your documents to PDF files, this solution can be done easily.

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,

http://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: VeryPDF HTML Converter Command Line (htmltools.exe)

http://www.verypdf.com/htmltools/index.html

VeryPDF HTML Converter is a powerful HTML conversion product. It allows you to create previews or thumbnails of web pages in a number of different formats, such as TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, PCX, TGA, JP2 (JPEG2000), PNM, etc. It also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.

VeryPDF HTML Converter doesn't depend on print drivers it renders web pages quickly and accurately. VeryPDF HTML Converter is the right HTML converter solution to be setup on web-servers, used from service, launched within other programs from the command line. With VeryPDF HTML Converter, you can also use batch converting if you deal with large amount of files.

VeryPDF HTML Converter does convert entire web site to one PDF file or a PS file, other products haven't this function.

Please look at following page for the more command line options in VeryPDF HTML Converter Command Line product,

http://www.verypdf.com/htmltools/html-tools.html

Solution 3: Document Converter (docPrint Pro)

http://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,

http://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,

http://www.verypdf.com/artprint/index.html#dl
http://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,

http://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 4: HTMLPrint to Any Converter Command Line (html2any.exe)

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

VeryDOC HTMLPrint to Any Converter Command Line product can be used to batch print html, mhtml files or Web URLs to Windows Printer, it is print the whole web page's content to Windows Printer without user interaction, you can use it to full control printer's capability by members of DEVMODE structure. VeryDOC HTMLPrint to Any Converter Command Line is depend on MS Internet Explorer to render HTML pages, so it is support all features which supported by MS Internet Explorer application.

Please look at following page for the command line options in HTMLPrint to Any Converter Command Line product,

http://www.verydoc.com/htmlprint-to-any-cmd.html

html2any.exe -printtoemf C:\out.emf http://www.verypdf.com
html2any.exe -printtowmf C:\out.wmf http://www.verypdf.com
html2any.exe -printtoxps C:\out.xps http://www.verypdf.com
html2any.exe -printtopcl C:\out.pcl http://www.verypdf.com
html2any.exe -printtops C:\out.ps http://www.verypdf.com
html2any.exe -printtopdf C:\out.pdf http://www.verypdf.com
html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-ownerpwd owner -keylen 2 -encryption 3900" http://www.verypdf.com
html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-subject \"subject\" -creator \"creator\"" http://www.verypdf.com
html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-$ XXXXXXXXXXXX" http://www.verypdf.com
html2any.exe -printtoimage C:\out.jpg http://www.verypdf.com
html2any.exe -printtoimage C:\out.png -imgw 800 -imgh 1000 http://www.verypdf.com
html2any.exe -printtoimage C:\out.gif -imgxres 300 -imgyres 300 http://www.verypdf.com
html2any.exe -printtoimage C:\out.png -imgbc 1 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -imgbc 24 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -imgbc 24 -compress 5 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -imgbc 1 -compress 4 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -imgbc 24 -compress 32773 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -imgbc 1 -compress 88881 http://www.verypdf.com
html2any.exe -printtoimage C:\out.jpg -quality 50 http://www.verypdf.com
html2any.exe -printtoimage C:\out.jpg -rotate 90 http://www.verypdf.com
html2any.exe -printtoimage C:\out.tif -multipage http://www.verypdf.com
html2any.exe -printtoimage C:\out.jpg -gray http://www.verypdf.com

Call HTMLPrint to Any Converter Command Line from C#, ASP, PHP etc. web program languages,

http://www.verydoc.com/htmlprint-to-any-shell.html


See Also:
How to convert an Office document (DOC, DOCX, XLS, XLSX, PPT, PPTX, etc.) to PDF file via Command Line?
Internet Explorer Header / Footer Print Codes
Internet Explorer 7 Controlling Headers and Footers

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

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


Home | Products | Downloads | Support | Links | Contact

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