How to set the page width while converting rtf to pdf?

It’s a piece of cake to set the page width when you convert rtf to pdf file with the help of HTML Converter command line.Everything becomes easy when you use command line application.The command line should include called program,source file and target file.

HTML Converter Command Line 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.

The download website is https://www.verypdf.com/htmltools/htmltools.zip.

There are only three steps to convert rtf to pdf file.Please read this article carefully and you will get many useful information here.

Step1.Run cmd.exe program

Cmd.exe dialog box can be opened by clicking “start”—“run” and input “cmd” in “open’’ edit box of the popup dialog box.It can also be opened by the combination of “Windows”+ “R”.

Step2.Input command line

The command line seems a little disordered in cmd.exe dialog box and hard to understand.After analysing the following command line about converting rtf to pdf and set the page width of pdf file,you will be more clear.

“htmltools.exe” –width value “input.rtf” output.pdf

htmltools.exe is the called program in this conversion.It is the executable file in HTML Converter Command Line.After you downloading HTML Converter Command Line and install it in your computer,you can see htmltools.exe in the folder.

-width value is the page width of pdf file.

input.rtf stands for source file.

output.pdf stands for target file.

You can set some other parameters of pdf file in the command line such as:

-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

The whole commands in cmd.exe dialog box are

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -width 30 "C:\Documents and Settings\admin\Desktop\as long as you love me.rtf" 01.pdf

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe"   is the path of htmltools.exe.

-width 30  is the value of pdf page width.

"C:\Documents and Settings\admin\Desktop\as long as you love me.rtf"  is the path of source file.

01.pdf  is the name of target file.

Step3.Browse the target file.

Just find your pdf file in the current directory because you didn’t specify the directory for it in command line.Then you can browse the pdf file by some reader such as Adobe PDF Reader.

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!