How to convert Office to PDF, Office to image and Office to HTML?

Question:Hi, I am a software developer looking for a component for converting office documents to PDF / images / HTML. Do you have a component like that? I hope there is a solution on VeryDOC?

Answer:When you need to convert Office to PDF / images / HTML by component or command line tool, maybe you can have a free trial of this software: VeryDOC DOC to Any Converter SDK/COM Version, which contains COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously. Meanwhile this software also can help allows you to call it from Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Download DOC to Any Converter SDK/COM Version

  • When converting Office file to PDF, image, HTML, you need to install MS Office, or Open Office excepting converting doc file to those file formats. Or else the conversion can be done.
  • When downloading finishes, you will get a zip file. Please extract it to some folder then you can use it normally.

Step 2. Convert Office to PDF, Office to Image and Office to HTML.

Convert Office to PDF

  • When converting Office to PDF, please refer to the following command line templates:
  • 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
    Here are some parameters you may need to set limitations for output PDF file.
    -append <int> :
        -append 0               : Overwrite if PDF file exists
        -producer <string>: Set 'producer' to PDF file
    -creator <string>      : Set 'creator' to PDF file
    -subject <string>      : Set 'subject' to PDF file
    -title <string>           : Set 'title' to PDF file
    -author <string>       : Set 'author' to PDF file
    -keywords <string>  : Set 'keywords' to PDF file
    -openpwd <string>   : Set 'open password' to PDF file
    -ownerpwd <string> : Set 'owner password' to PDF file
    -keylen <int>          : Key length (40 or 128 bit)

Converting Office to Image.

  • When converting Office to image, please refer to the following code templates:
  • 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"
    doc2any.exe -width 200 -height 150 -useprinter -useoffice 1 example.docx" "example.jpg"
    Here are some parameters for your reference:
    -useprinter     : Convert DOC files to other formats via virtual printer
    -width <int>    : Set page width to PDF file
    -height <int>   : Set page height to PDF file
    -xres <int>     : Set X resolution to image file
    -yres <int>     : Set Y resolution to image file

Converting Office to HTML

  • When converting Office to HTML, I will take converting Doc to HTML for example. Please check the conversion from the following snapshot.

DOC to HTML

This software can help you convert Office to HTML file in a few seconds.

By this software, we can convert Office to PDF, office to image and office to HTML easily. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!