Click or drag to resize
Pdf Library for .NET

PdfHtmlSection Class

Represents a html element that can be added to the header or footer templates of a pdf document.
Inheritance Hierarchy
SystemObject
  SelectPdfPdfSectionElement
    SelectPdfPdfHtmlSection

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
Syntax
public class PdfHtmlSection : PdfSectionElement

The PdfHtmlSection type exposes the following members.

Constructors
  NameDescription
Public methodPdfHtmlSection(String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Public methodPdfHtmlSection(String, String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Public methodPdfHtmlSection(Single, Single, String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Public methodPdfHtmlSection(Single, Single, Single, String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Public methodPdfHtmlSection(Single, Single, String, String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Public methodPdfHtmlSection(Single, Single, Single, String, String)
Creates a html object that can be added to the header or footer templates of a pdf document.
Top
Properties
  NameDescription
Public propertyAllowContentHeightResize
A flag used only by WebKitRestricted or Blink engine indicating if the content height can be recalculated to better fit the page. This can introduce certain errors in some cases. The default is True. Set it to False if content is split to more pages than expected.
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 propertyBlinkEngineLaunchMaxTries
Blink engine process launch tries.
Public propertyBlinkEngineLaunchTimeout
Blink engine process launch timeout.
Public propertyBlinkEnginePath
Gets or sets the full path (excluding the chrome.exe file name) of the Blink html rendering engine binaries.
Public propertyBlinkEngineTemporaryFilesPath
Gets or sets the full path of a folder where Blink html rendering engine will write temporary files.
Public propertyClickElementsDelayAfter
Delay in miliseconds, after element click.
Public propertyClickElementsDelayBefore
Delay in miliseconds, before element click.
Public propertyClickElementsSelectors
Specifies elements from the web page that will be clicked before converting the page.
Public propertyConsoleLog
Returns the console log of the browser used to render the web page.
Public propertyCssMediaType
Indicates what css styles are used when the web page is rendered.
Public propertyCustomCSS
Use this property to specify some CSS styles that will be injected into the page that is converted.
Public propertyDenyLocalFileAccess
A flag indicating if local files can be loaded during the conversion. The default value is False and local files can be loaded.
Public propertyDisplayCutText
Gets or sets a flag indicating if the text that is out of the calculated rendering rectangle is displayed or not.
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 propertyExternalBrowserEndpoint
External browser service.
Public propertyExternalLinksEnabled
Controls the rendering of external hyperlinks in pdf.
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 propertyLazyImagesLoadingDelay
Delay per page, in miliseconds, for lazy images loading.
Public propertyLazyImagesLoadingEnabled
Enables a delay mechanism to allow images to fully load.
Public propertyLFN
Internal use only.
Public propertyLoginOptions
Handle custom page login.
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 propertyPluginsEnabled
A flag indicating if plugins (like Flash players) are enabled in the converter.
Public propertyPostLoadingScript
Use this property to specify some JavaScript code that will be injected into the page that is converted and executed after the page was fully loaded.
Public propertyPostLoadingScriptDelayAfter
Delay in miliseconds, after post page loading javascript injection.
Public propertyProxyOptions
Gets a reference to an object containing the proxy settings used to access the web page that is being converted.
Public propertyRenderingEngine
Gets or sets the rendering engine used by the converter to load and render the HTML. The possible values are WebKit, WebKitRestricted and Blink. The Webkit rendering engine is internal and renders similar to Apple's Safari. For Blink, Chromium binaries must be also installed.
Public propertyRenderPageOnTimeout
A flag indicating if the page is rendered even if a navigation timeout occurs. The default value is False and a navigation timeout exception is raised.
Public propertyScaleImages
A flag indicating if the images from the page are scaled during the conversion process. The default value is False and images are not scaled.
Public propertySecureProtocol
Protocol used for secure (HTTPS) connections.
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 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 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.
See Also