com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class HtmlLoadOptions



  • public final class HtmlLoadOptions
    extends LoadOptions

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

    • Field Detail

      • ExternalResourcesCredentials

        public com.aspose.ms.System.Net.ICredentials ExternalResourcesCredentials

        If loading of external data referenced in HTML requires credentials, You can put them into this parameter - they will be used during loading of external resources

      • CustomLoaderOfExternalResources

        public LoadOptions.ResourceLoadingStrategy CustomLoaderOfExternalResources

        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 cloud direct access to referenced files impossible: in such case some customer code put into special method should be used, and delegate that refers that method should be assigned to this attribute.

    • Constructor Detail

      • HtmlLoadOptions

        public HtmlLoadOptions()

        Creates load options for converting html into pdf document with empty base path.

      • HtmlLoadOptions

        public HtmlLoadOptions(String basePath)

        Creates load options for converting html into pdf document with defined base path.

        Parameters:
        basePath - The base path/url for the html file.
    • Method Detail

      • getInputEncoding

        public String getInputEncoding()

        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.

        Returns:
        String value
      • setInputEncoding

        public void setInputEncoding(String value)

        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.

        Parameters:
        value - String value
      • getBasePath

        public String getBasePath()

        The base path/url for the html file.

        Returns:
        String value
      • getPageInfo

        public PageInfo getPageInfo()

        Gets document page info

        Returns:
        page info
      • setPageInfo

        public void setPageInfo(PageInfo value)

        Sets document page info

        Parameters:
        value - page info