 |
HtmlToPdfResult Class |
Holds detailed information produced by a completed HTML to PDF conversion — page counts,
web and pdf page sizes, the scale factor, the drawn rectangles, and the captured console log.
Obtained from
ConversionResult after a convert call returns; all
properties are read-only to consumer code.
Inheritance HierarchySystemObject
SelectPdf.UniversalHtmlToPdfResult
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic class HtmlToPdfResult
Public Class HtmlToPdfResult
The HtmlToPdfResult type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | ConsoleLog |
Gets the text written to the browser console by the converted web page during rendering.
|
 | PdfPageCount |
Gets the number of pages in the generated pdf document.
|
 | PdfPageLastIndex |
Gets or sets the zero based index of the last pdf page that received rendered content.
|
 | PdfPageLastRectangle |
Gets or sets the rectangle, in points, occupied by the rendered content on the last pdf page.
|
 | PdfPageScaleFactor |
Gets the factor by which the rendered web page was scaled to fit the pdf page.
|
 | PdfPageSize |
Gets the size, in points, of a page in the generated pdf document.
|
 | PdfPagesRectangles |
Gets the rectangles, in points, occupied by the rendered content on each pdf page.
|
 | WebPageInformation |
Gets the metadata (title, keywords, description) read from the converted web page.
|
 | WebPageSize |
Gets the size, in points, of the rendered web page.
|
Top
ExampleHtmlToPdf converter = new HtmlToPdf();
PdfDocument doc = converter.ConvertUrl("https://www.google.com");
HtmlToPdfResult result = converter.ConversionResult;
System.Console.WriteLine("Pages: " + result.PdfPageCount);
doc.Save("out.pdf");
doc.Close();Dim converter As New HtmlToPdf()
Dim doc As PdfDocument = converter.ConvertUrl("https://www.google.com")
Dim result As HtmlToPdfResult = converter.ConversionResult
System.Console.WriteLine("Pages: " & result.PdfPageCount)
doc.Save("out.pdf")
doc.Close()
See Also