Command line tool for generating PDF from various document types?

Question:I'm looking for ways to generate PDF on-the-fly preferably using a command line tool as this will be done from a web-based system.My requirements include must work on Windows and it should be able to convert Microsoft Word, Excel and HTML into PDF. Also the ability to concatenate or merge various documents into one PDF output file would be good. Is there any solution on VeryDOC?

Answer: According to your needs, maybe you can have a free trial of this software: VeryDOC DOC to Any Converter, by which you can generate PDF from various document types by command line. And this is Window based application, by it you can generate PDF from all the Window system. This software can help you convert documents types like DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF. And this software also allows you to merge many files to PDF or insert file to the existing PDF file. Please check more information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Free download DOC to Any Converter Command Line

  • This is command line version software, when downloading finishes, it is a zip file. You need to extract it to some folder then you can call the executable file in MS Dos Windows or other application.
  • Before using this software, please read website and help document carefully then you can use this software more smoothly.

Step 2. Generate PDF from various document types.

  • Here is the usage of using this software:DOC2Any [options] <in-file> [<out-file>]
  • Generate PDF from various document formats, here are some command line example for you reference:
  • doc2any.exe C:\in.doc C:\out.pdf
    By this command line, we can convert doc to PDF.
    doc2any.exe C:\in.ppt C:\out.pdf
    For converting PowerPoint file to PDF.
    doc2any.exe C:\in.xls C:\out.pdf
    For generating PDF from Excel.
    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
    For generating PDF from word in batch.

  • For merge various documents into one PDF, you need to convert one file format file to PDF and then insert other files to the existing PDF. Here are some command line templates:
  • doc2any.exe -append 2 -width 612 -height 792 C:\*.ppt C:\out.pdf
    doc2any.exe -append 2 C:\*.doc C:\out.pdf
    -append <int> :
        -append 0          : Overwrite if PDF file exists
        -append 1          : Insert before first page if PDF file exists
        -append 2          : Append to last page if PDF file exists
        -append 3          : Rename filename if PDF file exists

If you need to know more examples and information, please check on homepage. During the using, of 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!