Is there 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, 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. Any suggestions on VeryPDF? I would prefer to avoid applications that work as "printer drivers".

Answer: According to your needs, maybe you can have a free trial of this software VeryPDF Document Converter. This software either can be used as command line version software or GUI version software. It can help you generate PDF from Microsoft Word, Excel HTML and other printable files. Meanwhile this software also can be used to convert online files to PDF directly. Except PDF, this software also can help you output files like PS, EPS, JPEG, TIFF, PCX, PNG, GIF, TGA, BMP, DCX, WMF, EMF, XPS, PCL, TXT, and so on. Please check more information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Install Document Converter

  • Even if this software could be used like command line version software, but you need to install its GUI version first. Then go to installation folder to find the executable file named doc2pdf.
  • Also you can go to Start then Document Converter. You will find docPrint Pro command line. Please click it then you can launch this software.

Step 2. Generate PDF from various document type by command line.

    • When you use this software, please refer to the usage of this software:
      doc2pdf [options] <-i Document Files> [-o Output]
    • There are some command line templates for your reference, please have a check:

doc2pdf -i C:\input.doc -o C:\output.pdf
doc2pdf -i C:\input.docx -o C:\output.pdf
doc2pdf -i C:\input.xls -o C:\output.pdf
doc2pdf -i C:\input.xlsx -o C:\output.pdf
doc2pdf -i C:\input.ppt -o C:\output.pdf
doc2pdf -i C:\input.pptx -o C:\output.pdf
doc2pdf -i C:\input.vsd -o C:\output.pdf

    • When generate PDF from various files, this software allows you to add basic information to PDF, set password to PDF, specify margins and other limitations to PDF. Please check parameters from the following part:

-i <input files>    : filename for input
-o <output files>   : filename for output
=== 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
128 bit encryption only -> ignored if 40 bit encryption is used

Please check more information of this software on homepage, 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!