Click or drag to resize
Pdf Library for .NET
PdfHtmlElement Class
Represents a html element that can be added to a pdf document.
Inheritance Hierarchy
SystemObject
  SelectPdfPdfPageElement
    SelectPdfPdfElement
      SelectPdfPdfHtmlElement

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 17.1
Syntax
public sealed class PdfHtmlElement : PdfElement

The PdfHtmlElement type exposes the following members.

Constructors
  NameDescription
Public methodPdfHtmlElement(String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(String, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, Single, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, String, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, Single, Single, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, Single, String, String)
Creates a html object that can be added to a pdf document.
Public methodPdfHtmlElement(Single, Single, Single, Single, String, String)
Creates a html object that can be added to a pdf document.
Top
Methods
  NameDescription
Public methodRotate
Rotes the coordinate system before rendering the pdf element.
(Inherited from PdfElement.)
Public methodScale
Scales the coordinate system before rendering the pdf element.
(Inherited from PdfElement.)
Public methodSkew
Skews the x and y axis by an two different angles before rendering the pdf element.
(Inherited from PdfElement.)
Public methodTranslate
Translates the coordinate system before rendering the pdf element.
(Inherited from PdfElement.)
Top
Properties
  NameDescription
Public propertyAuthentication
Handles authentication options if the web page being converted requires authentication.
Public propertyAutoFitHeight
Specifies the vertical auto fit mode.
Public propertyAutoFitWidth
Specifies the horizontal auto fit mode.
Public propertyBackColor
Gets or sets the pdf element background color.
(Inherited from PdfElement.)
Public propertyBlending
Gets or sets the blending mode for transparent rendering of the pdf element.
(Inherited from PdfElement.)
Public propertyColorSpace
Gets or sets the color space for the pdf element rendering.
(Inherited from PdfElement.)
Public propertyCssMediaType
Indicates what css styles are used when the web page is rendered.
Public propertyDisplayFooterOnEvenPages
Controls the visibility of the document footer on the even numbered pages generated by this pdf element.
Public propertyDisplayFooterOnOddPages
Controls the visibility of the document footer on the odd numbered pages generated by this pdf element.
Public propertyDisplayHeaderOnEvenPages
Controls the visibility of the document header on the even numbered pages generated by this pdf element.
Public propertyDisplayHeaderOnOddPages
Controls the visibility of the document header on the odd numbered pages generated by this pdf element.
Public propertyDrawBackground
Gets or sets a flag indicating if the web page background is rendered in pdf.
Public propertyEmbedFonts
Instructs the converter to embed all the needed fonts into the pdf document or not.
Public propertyExternalLinksEnabled
Controls the rendering of external hyperlinks in pdf.
Public propertyForeColor
Gets or sets the pdf element foreground color.
(Inherited from PdfElement.)
Public propertyGradient
Gets or sets the gradient used to fill a shape.
(Inherited from PdfElement.)
Public propertyHiddenWebElements
Gets a reference to the object that controls the visibility of some web elements in the generated pdf document.
Public propertyHttpCookies
Gets the collection of custom HTTP cookies used for the conversion.
Public propertyHttpHeaders
Get the collection of custom HTTP headers used for the conversion.
Public propertyHttpPostParameters
Gets the collection of custom HTTP POST parameters used for the conversion.
Public propertyInternalLinksEnabled
Controls the conversion of internal html links to internal pdf links.
Public propertyJavaScriptEnabled
Enable scripts when rendering the url or html string.
Public propertyKeepImagesTogether
This property instructs the converter whether to try to avoid cutting off the images between pdf pages or not.
Public propertyKeepTextsTogether
This property instructs the converter whether to try to avoid cutting off the text lines between pdf pages or not.
Public propertyLineStyle
Gets or sets the line style for pdf elements rendering lines.
(Inherited from PdfElement.)
Public propertyMaxPageLoadTime
The web page navigation timeout in seconds.
Public propertyMinPageLoadTime
An additional time in seconds to wait for asynchronous items to be loaded before the web page is rendered.
Public propertyPdfBookmarkOptions
Gets a reference to the object that controls the bookmarks creation for the generated pdf document.
Public propertyPdfPagesRectangles
The size and position of the html content rendered in all pages of the pdf document.
Public propertyPluginsEnabled
A flag indicating if plugins (like Flash players) are enabled in the converter.
Public propertyProxyOptions
Gets a reference to an object containing the proxy settings used to access the web page that is being converted.
Public propertyRotated
A flag to indicate if the current pdf element was rotated.
(Inherited from PdfElement.)
Public propertyScaled
A flag to indicate if the current pdf element was scaled.
(Inherited from PdfElement.)
Public propertySkewed
A flag to indicate if the current pdf element was skewed.
(Inherited from PdfElement.)
Public propertyStartupMode
Use this property to specify how the conversion starts.
Public propertyStartupScript
Use this property to specify some JavaScript code that will be injected into the page that is converted.
Public propertyTranslated
A flag to indicate if the current pdf element was translated.
(Inherited from PdfElement.)
Public propertyTransparency
Gets or sets the pdf element transparency.
(Inherited from PdfElement.)
Public propertyVisibleWebElementId
Use this property to convert only a certain section of the page, specified by the html element ID.
Public propertyWebPageFixedSize
Controls whether the web page is rendered with a fixed size internal browser or the size automatically extends to make the whole content visible.
Public propertyWebPageHeight
Gets or sets the height of the converted web page as it would appear in the internal browser used to render the html.
Public propertyWebPageInformation
Gets an object populated after conversion with the title, keywords and description of the converted web page.
Public propertyWebPageWidth
Gets or sets the width of the converted web page as it would appear in the internal browser used to render the html.
Top
Remarks
The html can be specified by either an url or a html string.

The html to pdf conversion is performed when the element is added to the drawing canvas (pdf page or template).

See Also