The PdfConverter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| PdfConverter()()()() |
Creates a HTML to PDF converter using the default width and height for the HTML viewer.
The default HTML viewer width is 1024 pixels and the default HTML viewer height is 0 which means
the HTML viewer height will be automatically determined based on the HTML content and the HTML viewer width in order to
make visible the whole HTML content.
If the HTML content is not entirely visible in the HTML viewer at the default width of 1024 pixels, the ClipHtmlView property will control whether
the HTML content is clipped to the width set for the HTML viewer or the HTML viewer width is automatically extended to make visible the whole HTML content.
By default the ClipHtmlView property is false and the HTML viewer is automatically extended in width to make visible the whole HTML content.
The width and height of the HTML viewer can also be controlled by the HtmlViewerWidth and HtmlViewerHeight properties
of the PdfConverter class.
| |
| PdfConverter(Int32) |
Creates a HTML to PDF converter using the specified width in pixels and the default height for the HTML viewer.
The default HTML viewer height is 0 which means the HTML viewer height will be automatically determined
based on the HTML content and the HTML viewer width in order to make visible the whole HTML content.
If the content is not entirely visible in the HTML viewer at the specified width, the ClipHtmlView property will control whether the
HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content.
By default the ClipHtmlView property is false and the HTML viewer is automatically extended in width to make visible the whole HTML content.
The width and height of the HTML viewer can also be controlled by the HtmlViewerWidth and HtmlViewerHeight properties
of the PdfConverter class.
| |
| PdfConverter(Int32, Int32) |
Creates a HTML to PDF using the specified width and height in pixels for the HTML viewer.
If the specified HTML viewer height is 0 the HTML viewer height will be automatically determined based on the HTML content and the HTML viewer width
in order to make visible the whole HTML content.
If the content is not entirely visible in the HTML viewer at the specified width, the ClipHtmlView property will control whether the
HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content.
By default the ClipHtmlView property is false and the HTML viewer is automatically extended in width to make visible the whole HTML content.
The width and height of the HTML viewer can also be controlled by the HtmlViewerWidth and HtmlViewerHeight properties
of the PdfConverter class
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetPageCount(Stream) |
A fast method to obtain the page count of a PDF document from the specified stream.
| |
| GetPageCount(String) |
A fast method to obtain the page count of a PDF document from the specified file path.
| |
| GetPdfBytesFromHtmlFile |
Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.
| |
| GetPdfBytesFromHtmlStream(Stream, Encoding) |
Converts the HTML string read from the specified HTML stream to PDF and returns the rendered PDF document
as an array of bytes.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream(Stream, Encoding, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfBytesFromHtmlStream(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources
and returns the rendered PDF document
as an array of bytes.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlStream(Stream, Encoding, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfBytesFromHtmlStream(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and returns the rendered PDF document as an array of bytes.
| |
| GetPdfBytesFromHtmlString(String) |
Converts the specified HTML string to PDF and returns the rendered PDF document as an array of bytes.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString(String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfBytesFromHtmlString(String, String) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources
and returns the rendered PDF document as an array of bytes.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfBytesFromHtmlString(String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfBytesFromHtmlString(String, String, String) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and returns the rendered PDF document as an array of bytes.
| |
| GetPdfBytesFromUrl |
Converts the specified URL into a PDF document and returns the rendered PDF document as an array of bytes.
This method can be used to perform HTML to PDF conversion in internal memory.
| |
| GetPdfDocumentObjectFromHtmlFile |
Gets a Document object representing the result of conversion of the specified HTML file to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
| GetPdfDocumentObjectFromHtmlStream(Stream, Encoding) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF
using also a base URL to resolve the external resources.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfDocumentObjectFromHtmlStream(Stream, Encoding, String, String) |
Gets a Document object representing the result of conversion of the HTML string read from the specified HTML stream to PDF
using also a base URL to resolve the external resources and an URL to resolve the internal links.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
| GetPdfDocumentObjectFromHtmlString(String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfDocumentObjectFromHtmlString(String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfDocumentObjectFromHtmlString(String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF using also a base URL to resolve the external resources.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the GetPdfDocumentObjectFromHtmlString(String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| GetPdfDocumentObjectFromHtmlString(String, String, String) |
Gets a Document object representing the result of conversion of the specified HTML string to PDF using also a base URL to resolve the external resources
and an URL to resolve the internal links.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
| GetPdfDocumentObjectFromUrl |
Gets a Document object representing the result of conversion of the specified URL to PDF.
The resulted Document object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The Document object must be closed after save to release the system resources used during conversion.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| SavePdfFromHtmlFileToFile |
Converts the specified HTML file into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
| SavePdfFromHtmlFileToStream |
Converts the specified HTML file to PDF and saves the rendered PDF document to the specified stream.
| |
| SavePdfFromHtmlStreamToFile(Stream, Encoding, String) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document
into the specified disk file.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources
and saves the rendered PDF document into the specified disk file.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String, String) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStreamToFile(Stream, Encoding, String, String, String) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and saves the rendered PDF document into the specified disk file.
| |
| SavePdfFromHtmlStreamToStream(Stream, Encoding, Stream) |
Converts the HTML string read from the specified HTML stream to PDF and saves the rendered PDF document to the specified stream.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToStream(Stream, Encoding, String, String, Stream) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStreamToStream(Stream, Encoding, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources
and saves the rendered PDF document to the specified stream.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and
CSS files appearing in the htmlStream parameter.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStreamToStream(Stream, Encoding, String, String, Stream) method with
the urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStreamToStream(Stream, Encoding, String, String, Stream) |
Converts the HTML string read from the specified HTML stream to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and saves the rendered PDF document to the specified stream.
| |
| SavePdfFromHtmlStringToFile(String, String) |
Converts the specified HTML string to PDF and saves the rendered PDF document
into the specified disk file.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the links with anchors,
all the links with anchors are considered to be internal links.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFile(String, String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStringToFile(String, String, String) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources and saves the rendered PDF document
into the specified disk file.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToFile(String, String, String, String) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStringToFile(String, String, String, String) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and saves the rendered PDF document into the specified disk file.
| |
| SavePdfFromHtmlStringToStream(String, Stream) |
Converts the specified HTML string to PDF and saves the rendered PDF document to the specified stream.
This method does not use any URL base and therefore the images or CSS files referenced by relative URLs
in the HTML string cannot be resolved by the converter to a full URL.
Also, because this method does not specify the full URL of the document referenced by the internal links,
the internal links might not be correctly converted.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToStream(String, String, String, Stream) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStringToStream(String, String, Stream) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources
and saves the rendered PDF document to the specified stream.
The urlBase parameter allows the converter to determine the full URLs from relative URLs for images
and CSS files appearing in the HTML string.
Because this method does not specify the full URL of the document referenced by the internal links,
the urlBase will be used by default.
To make sure the the external resources referenced by relative URLs and the internal links with anchors
are correctly resolved by the converter, the SavePdfFromHtmlStringToStream(String, String, String, Stream) method with the
urlBase and internalLinksDocUrl additional parameters can be used.
| |
| SavePdfFromHtmlStringToStream(String, String, String, Stream) |
Converts the specified HTML string to PDF using a base URL to resolve the external resources and an URL to resolve the internal links
and saves the rendered PDF document to the specified stream.
| |
| SavePdfFromUrlToFile |
Converts the specified URL into a PDF document and saves the rendered PDF document
into the specified disk file.
| |
| SavePdfFromUrlToStream |
Converts the specified URL into a PDF document and saves the rendered PDF document to the specified stream.
| |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| AuthenticationOptions |
This property can be set with an username and a password in order to authenticate to the web server
before accessing the URL to be converted in HTML to PDF Converter. They can be used for example to resolve the IIS Integrated Windows Authentication
or other types of IIS authentication.
| |
| ClipHtmlView |
If the HTML content is not entirely visible in the HTML viewer of the HTML to PDF converter at the specified width, this property will control whether the
HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content.
The HTML viewer width is given by the HtmlViewerWidth property.
The default value of this property is false.
| |
| ConversionDelay |
An additional time in seconds to wait for asynchronous items to be completely loaded or for a web page redirect to finish before
starting the rendering in HTML to PDF converter.
| |
| ConversionSummary |
Offers summary information about the conversion process. After a successfull conversion this
property is initialized with an instance of the ConversionSummary class. If the conversion
failed this property returns a null value.
| |
| DownloadAllResources |
Gets or sets a flag indicating if the HTML to PDF converter should try to download all the resources even if this could cause
a slower conversion. The default value is false.
| |
| EvoInternalFileName |
Sets the full path of evointernal.dat helper file of the HTML to PDF converter. By default this file is expected to be found
in the same folder with evohtmltopdf.dll assembly.
| |
| ExtensionsEnabled |
Gets or sets a flag indicating if the HTML viewer extensions are executed during HTML to PDF conversion. The default value is false and no extension is executed.
The Flash player for Google Chrome must be installed in order to execute the flash content from HTML
| |
| HiddenHtmlElementsSelectors |
Gets or sets the CSS selectors of the HTML elements to be excluded from rendering during HTML to PDF conversion
| |
| HtmlDocumentInfo |
Gets an object populated after conversion with the title, keywords, and description of the converted HTML document.
| |
| HtmlElementsMappingOptions |
Gets a reference to the object that can be used to obtain the position in PDF of the HTML elements rendered by the HTML to PDF converter.
In order to retrieve the position in PDF for a list of HTML elements, the HtmlElementSelectors property of
HtmlElementsMappingOptions class must be set with an array of strings containing the CSS selectors of the HTML elements you want to map.
The positions of the HTML elements in the generated PDF document will be returned in the
HtmlElementsMappingResult object after the element was added to the page.
| |
| HtmlViewerHeight |
Gets or sets the HTML viewer height in pixels in the HTML to PDF Converter .
If the specified HTML viewer height is 0 the HTML viewer height will be automatically determined based on the HTML content and
the HTML viewer width in order to make visible the whole HTML content.
The HTML viewer width is given by the HtmlViewerWidth property of the PdfConverter class.
If the HTML content is not entirely visible in the HTML viewer at the specified width, the ClipHtmlView property will control whether the
HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content.
The HTML viewer height can also be specified in the PdfConverter class contructor. The default value is 0 to automatically determine
the HTML viewer height based on the HTML content and the HTML viewer width.
| |
| HtmlViewerWidth |
Gets or sets the preferred HTML viewer width in pixels in HTML to PDF converter.
If the HTML content is not entirely visible in the HTML viewer at the specified width, the ClipHtmlView property will control whether the
HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content.
By default the ClipHtmlView property is false and the HTML viewer is automatically extended in width to make visible the whole HTML content.
The HTML viewer width can also be specified in the PdfConverter class constructor. The default value is 1024 pixels.
| |
| HttpPostFields |
Returns the collection of HTTP POST fields to be used when accessing a web page in HTML to PDF converter.
If there are elements in collection then the converter will make a POST request to the web page URL
with the fields from this collection, otherwise it will make a GET request
| |
| HttpRequestCookies |
Gets a collection of custom HTTP cookies to be sent by the HTML to PDF converter to the web server
when the web page to convert and the resources (image, css, etc) referenced by the web page are requested. A cookie is defined by a name and a value pair
that can be added to the collection using the Add(String, String) method of the HttpRequestCookies property.
| |
| HttpRequestHeaders |
Gets a collection of custom HTTP headers to be sent by the HTML to PDF converter to the web server
when the web page is requested from a URL. A custom HTTP header is defined by a name and a value pair
that can be added to the collection using the Add(String, String) method of the HttpRequestHeaders property.
The PersistentHttpRequestHeaders property can be set on true to instruct the converter to send the custom headers
each time an external resource (image, css, etc) referenced by the web page is requested. By default the PersistentHttpRequestHeaders
property is false and the custom headers are not automatically sent to the web server when the web page resources are requested.
The custom HTTP headers can be used to define cookies, authentication options, URL referer or any other
HTTP header to be sent to the web browser. The preferred method to send cookies is to use the HttpRequestCookies property.
| |
| ImagePartSize |
Gets or sets the maximum height in pixels of an image part in HTML to PDF converter
| |
| ImpersonationOptions |
The impersonation options applied during navigation in HTML to PDF converter
| |
| InitialHtmlViewerHeight |
Gets or sets the initial height in pixels of the HTML viewer in HTML to PDF converter.
This value of this property is ignored if the HtmlViewerHeight property is set
| |
| InterruptSlowJavaScript |
Gets or sets a flag indicating if the slow JavaScript script should be interrupted in HTML to PDF converter. The default value is false and the scripts are not interrupted
| |
| JavaScriptEnabled |
A flag indicating if JavaScript execution is enabled in HTML to PDF converter.
The default is true.
| |
| LicenseKey |
Gets or sets the license key string received from the vendor in HTML to PDF converter.
If this property is null the converter will automatically enter in evaluation mode
and a demo watermark will be displayed on the generated PDF document.
| |
| MaxHtmlViewerHeight |
Gets or sets the maximum height in pixels to be rendered from the HTML document by the HTML to PDF converter.
The default value is 0 and the entire HTML document is rendered
| |
| MediaType |
Gets or sets the media type of the HTML document used by the HTML to PDF converter. The default media type is 'screen'.
If you set this property with 'print' then the CSS properties defined in '@media print' rule will be used to render the document
| |
| MinHtmlViewerHeight |
Gets or sets the minimum height in pixels to be rendered from HTML document by the HTML to PDF converter.
This value of this property is ignored if the HtmlViewerHeight property is set
| |
| NavigationTimeout |
The HTML to PDF converter navigation timeout in seconds. Default value is 60.
| |
| PdfBookmarkOptions |
Gets a reference to the object controlling the bookmarks creation for the rendered PDF document generated by the HTML to PDF converter.
In order to enable creation of bookmarks you have to set the HtmlElementSelectors property of PdfBookmarkOptions class
with the CSS selectors of the HTML elements you want to bookmark.
| |
| PdfConverterConcurrencyLevel |
This static parameter gives the maximum number of threads in the current .NET application domain that can convert HTML to PDF simultaneously.
This parameter must be set before the first conversion performed in the current application domain.
When this property is set with a negative value or zero the concurrency level is maximum. The default value is 4.
| |
| PdfDocumentInfo |
Gets a reference to the object to controlling the generated PDF
document information like the document title, author, subject or creation date.
| |
| PdfDocumentOptions |
Gets a reference to the object controlling the conversion process and the generated PDF document properties.
This property can be used to control the PDF document margins, PDF compression level, JPEG compression level,
the PDF page size and orientation, the PDF document headers and footers, conversion of the URLs to links in PDF,
conversion of the HTML links with anchors to internal PDF links, true type fonts embedding, fit width and stretch to fit,
conversion to a single PDF page, append or prepend external PDF documents.
| |
| PdfFooterOptions |
Gets a reference to an object to control the generated PDF document footer options.
The footer is displayed in the generated PDF document only if the ShowFooter property is true.
| |
| PdfHeaderOptions |
Gets a reference to an object to control the generated PDF document header options.
The header is displayed in the generated PDF document only if the ShowHeader property is true.
| |
| PdfSecurityOptions |
Gets a reference to the object to controlling the generated PDF
document security settings like user and owner password, restrict printing
or editing of the generated PDF document.
| |
| PdfViewerPreferences |
Gets a reference to the object controlling how the generated PDF is displayed by a PDF viewer.
| |
| PersistentHttpRequestHeaders |
This property can be set on true to instruct the HTML to PDF converter to send the custom headers defined by the
HttpRequestHeaders property each time an external resource (image, css, etc) referenced by the web page is requested.
The default value of this property is true and the custom headers are automatically sent to the web server when the web page resources are requested.
| |
| PostScriptFontsEnabled |
Gets or sets a flag indicating if the fonts with PostScript outlines are enabled in HTML during the HTML to PDF conversion. The default value is true
| |
| PrerenderEnabled |
Gets or sets a flag indicating if the HTML to PDF converter should perform a pre-rendering. The default value is true
| |
| ProxyOptions |
Gets a reference to an object encapsulating the proxy options used by HTML to PDF converter to access the HTML document to convert.
| |
| RenderedHtmlElementSelector |
Get or set the CSS selector of the HTML element to be rendered to PDF by the HTML to PDF converter. If the selector selects multiple HTML elements,
only the the first one will be converted. The CSS selector is case sensitive. If this property is not set then the entire
HTML document is rendered
| |
| SvgFontsEnabled |
Gets or sets a flag indicating if the SVG fonts are enabled in HTML during the HTML to PDF conversion. The default value is false
| |
| TriggeringMode |
The conversion triggering mode used by the HTML to PDF converter. The default value is Auto
| |
| WebFontsEnabled |
Gets or sets a flag indicating if the Web Fonts are enabled in HTML during the HTML to PDF conversion. The default value is true
| |
| XPSupplementalLanguages |
A flag in HTML to PDF converter indicating if the supplemental languages (complex script, right-to-left, East Asian) support was enabled in Windows XP Regional and Language Options. The default value is false.
|
Events
| Name | Description | |
|---|---|---|
| AfterRenderPdfPageEvent |
The event is raised right after the HTML to PDF converter finished PDF page rendering. The PDF page configuration like
size, orientation, header or footer is already defined and cannot be changed.
In the handler of this event PDF elements can be added in the foreground of the rendered PDF page.
| |
| BeforeRenderPdfPageEvent |
The event is raised right before the page is rendered by HTML to PDF converter. The PDF page configuration like
size, orientation, header or footer is already defined and cannot be changed.
In the handler of this event PDF elements can be added in the background of the PDF page to be rendered.
| |
| NavigationCompletedEvent |
The event is raised right after the converter finished the navigation and before rendering HTML content to PDF
| |
| PrepareRenderPdfPageEvent |
The event is raised after the HTML to PDF converter created the PDF page and before starting rendering it.
In the handler of this event the PDF page configuration like size, orientation, header or footer can still be changed
before starting rendering.
|