HtmlLoadOptions Class

Represents options for loading/importing html file into pdf document.
Inheritance Hierarchy

Namespace:  Aspose.Pdf
Assembly:  Aspose.PDF (in Aspose.PDF.dll) Version: 22.4.0
public sealed class HtmlLoadOptions : LoadOptions

The HtmlLoadOptions type exposes the following members.

Public methodHtmlLoadOptions
Creates load options for converting html into pdf document with empty base path.
Public methodHtmlLoadOptions(String)
Creates load options for converting html into pdf document with defined base path.
Public propertyBasePath
The base path/url for the html file.
Public propertyHtmlMediaType
Gets or sets possible media types used during rendering.
Public propertyInputEncoding
Gets or sets the attribute specifying the encoding used for this document at the time of the parsing. If this attribute is null the encoding will determine from document character set atribute.
Public propertyIsEmbedFonts
Gets or sets fonts embedding to result document
Public propertyIsRenderToSinglePage
Gets or sets rendering all document to single page
Public propertyLoadFormat
Represents file format which LoadOptions describes.
(Inherited from LoadOptions.)
Public propertyPageInfo
Gets or sets document page info
Public propertyPageLayoutOption
Gets or sets layout option.
Public propertyWarningHandler
Callback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Load operation continues, however the user may also return Abort in which case the Load operation should cease.
(Inherited from LoadOptions.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public fieldCustomLoaderOfExternalResources
Sometimes it's necessary to avoid usage of internal loader of external resources(like images or CSSes) and supply custom method that will get requested resources from somewhere. For example, during usage of Aspose.PDF in cloude direct access to referenced files impossible: in such case some custome code put into special method should be used, and delegate that refers that method should be assygned to this attribute.
Public fieldExternalResourcesCredentials
If loading of external data referenced in HTML requirs credentials, You can put them into this parameter - they will be used during loading of external resources
See Also