In this article,we can use a simple Figure to explain the process of converting.Please see Figure1.
The first dialog shows the software you need to use in the conversion offile.It is HTML Converter Command Line which 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. HTML Converter Command Line also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.
HTML Converter command line application can be called from within ASP, VB, VC, Delphi, BCB, Java, .NET and COM+ etc. program languages. It uses advanced techniques to allow efficient asynchronous multithreaded operations.
You can download HTML Converter Command Line at the website https://www.verypdf.com/htmltools/htmltools.zip. You should register the software before using it with the code which you get when buying HTML Converter Command Line online.You need to run cmd.exe dialog box and change the current directory to the installation directory of HTML Converter Command Line with the DOS command “cd”.
The second dialog shows the process to convert.Someone may not know the command line showed in the figure.There is a main structure of the command line to convert url to pdf file.You can see the following one.
“htmltools.exe” www.verypdf.com [output.pdf]
htmltools.exe is the called program in this conversion.It is the executable file in HTML Converter Command Line.
www.verypdf.com can be seen as the source file.
[output.pdf] is the target file.You can define the target file or not.Because if there is no information about the target file,the source file will be converted to pdf file automatically and saved in the current directory.
The following command line example is the detail interpretation to the command line template above.
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -producer nancy -creator tylor www.verypdf.com
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" is the path of called program.If the path is very long and hard to input,you can drag the file into cmd.exe dialog directly for convenience.
-producer nancy -creator tylor are the parameters you can set for the new generated pdf file.There are also many other parameters you can define according to your needs as follows:
-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)
-keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
-keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
-keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
-encryption <int> : Restrictions
-encryption 0: Encrypt the file only
www.verypdf.com is the URL of some webpage.
The third dialog shows the location of target file.You can see it is current directory.Because you didn’t specify the directory for target file in command line so it will be saved in current directory by default.
You can open the new created pdf file and click “file”—“properties”. You will see the producer and creator are set as nancy and tylor.Please see Figure2.