Aspose::Pdf::HtmlLoadOptions class

HtmlLoadOptions class

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

class HtmlLoadOptions : public Aspose::Pdf::LoadOptions

Methods

MethodDescription
get_BasePath() constThe base path/url for the html file.
get_DisableFontLicenseVerifications() constGets flag to disable any license restrictions for all fonts while loading the file. When true

, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default false

. | | get_HtmlMediaType() const | Gets possible media types used during rendering. | | get_InputEncoding() const | Gets 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. | | get_IsEmbedFonts() const | Gets fonts embedding to result document. | | get_IsPriorityCssPageRule() const | | | get_IsRenderToSinglePage() const | Gets rendering all document to single page. | | get_LoadFormat() const | Represents file format which LoadOptions describes. | | get_PageInfo() const | Gets document page info. | | get_PageLayoutOption() const | Gets layout option. | | get_WarningHandler() const | 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. | | HtmlLoadOptions() | Creates load options for converting html into pdf document with empty base path. | | HtmlLoadOptions(System::String) | Creates load options for converting html into pdf document with defined base path. | | LoadOptions() | | | set_DisableFontLicenseVerifications(bool) | Sets flag to disable any license restrictions for all fonts while loading the file. When true

, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default false

. | | set_HtmlMediaType(Aspose::Pdf::HtmlMediaType) | Sets possible media types used during rendering. | | set_InputEncoding(System::String) | 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. | | set_IsEmbedFonts(bool) | Sets fonts embedding to result document. | | set_IsPriorityCssPageRule(bool) | | | set_IsRenderToSinglePage(bool) | Sets rendering all document to single page. | | set_PageInfo(System::SharedPtr<Aspose::Pdf::PageInfo>) | Sets document page info. | | set_PageLayoutOption(HtmlPageLayoutOption) | Sets layout option. | | set_WarningHandler(System::SharedPtr<IWarningCallback>) | 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. |

See Also