Winnovative HTML to PDF Converter allows you to easily convert in just a few lines of code HTML pages and HTML strings to PDF. In this demo you can experiment with the basic settings
of the converter.
At the top of the demo you can choose the HTML document to convert which can be:
-
A HTML page from a given URL. The URL must be accessible from the computer where the converter runs. If the page requires authentication or if you are using a proxy server to access Internet
then you have to set the converter properties accordingly as described in documentation
-
A HTML string. When you convert a HTML string you also have the option to specify a base URL that will be used
by converter to resolve the relative URLs found in the HTML string to fully qualified URLs. If your HTML string uses only fully qualified URLs then this parameter is not necessary
The basic options you can set in this demo are grouped in a few categories.
HTML Viewer Options
-
HTML Viewer Width. This option is the equivalent in converter of the browser window width. When the browser window width is changed the HTML content
displayed inside the window can have a different layout and something similar happens when you change the HTML Viewer width of the converter. At a given viewer width, the converter will
capture by default the whole height of the HTML content, but you can set the HTML Viewer height to capture only the top part of the HTML page
-
HTML Viewer Height. This option is the equivalent in converter of the browser window height and can be used to limit the conversion to the top part of the HTML page. If this property is
not set the entire page will be converted
PDF Page Options
-
PDF Page Size. You can set the page size of the generated PDF document to a standard size like A4, Letter, Legal, etc. or you can set custom PDF page size giving the width
and height in points. 1 point is 1/72 inches. By default the PDF page size is A4
-
PDF Page Orientation. You can set the page orientation of the generated PDF document to Portrait or to Landscape. By default the page orientation is Portrait
Navigation Options
-
Navigation Timeout. This option represents the maximum time to wait for a web page to be loaded by converter. If the web page cannot be loaded in this time interval the
converter will throw an exception
-
Delay Conversion. This option represents an additional time to wait after the HTML page was loaded to allow the asynchronous operations to finish before starting to
capture the HTML content. If you cannot estimate the additional time to wait then you have the option to manually trigger the conversion