Convert XLS to PDF and set page size via command line

Thanks to VeryPDF Document Converter (docPrint Pro), I can use a single command line to convert XLS to PDF and set page size. Only two steps are required. No matter how many document do you have to convert from XLS to PDF and set page size, you only need to spend several seconds.

Do you want to know how to do that? Why not just start with downloading VeryPDF Document Converter? After you install it on the hard disk, you can use it free for scores of times. The command line application we are going to use is the executable file titled doc2pdf in the installation directory. After you install the tool, please do as the following two steps to XLS to PDF and set page size via command line.

The first step is to run the Windows Command Prompt. Supposing you are in Windows XP, you should click the Start button first, and then click Command Prompt on the Start menu.

The second step is to use the command line application mentioned through typing a command line in the Command Prompt window. The command line must in line with the basic usage of the command line application: doc2pdf [options] <-i Document Files> [-o Output].The options you can use to set page size for printing is –f. You can specify either a standard page size or set a user defined page size. The following are some examples. Don’t forget to press Enter after typing a command line.

  • “C:\ docPrint Pro v5.0\doc2pdf” -f 8 -i C:\input.xls -o D:\output.pdf
  • “C:\ docPrint Pro v5.0\doc2pdf” -f “12x16in” -i C:\input.xls -o D:\output.pdf
  • “C:\ docPrint Pro v5.0\doc2pdf” -f “260.9x279.4mm” -i C:\input.xls -o D:\output.pdf
  • “C:\ docPrint Pro v5.0\doc2pdf” -f “672x792pt” -i C:\*.xls -o D:\*.pdf

This is how you can set page size while converting XLS to PDF via command line. You know, you can also use VeryPDF Document Converter (docPrint Pro) to set other options and convert other document formats. Please try it and you will see how useful this tool is! In case you wan to buy VeryPDF Document Converter (docPrint Pro), please click Full Version.

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!