Class Html2PdfException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.commons.exceptions.ITextException
com.itextpdf.html2pdf.exceptions.Html2PdfException
All Implemented Interfaces:
Serializable

public class Html2PdfException extends com.itextpdf.commons.exceptions.ITextException
Runtime exception that gets thrown if something goes wrong in the HTML to PDF conversion.
See Also:
  • Field Details

    • PDF_DOCUMENT_SHOULD_BE_IN_WRITING_MODE

      public static final String PDF_DOCUMENT_SHOULD_BE_IN_WRITING_MODE
      Message in case one tries to write to a PDF document that isn't in writing mode.
      See Also:
    • FONT_PROVIDER_CONTAINS_ZERO_FONTS

      public static final String FONT_PROVIDER_CONTAINS_ZERO_FONTS
      Message in case the font provider doesn't know about any fonts.
      See Also:
    • UNSUPPORTED_ENCODING_EXCEPTION

      public static final String UNSUPPORTED_ENCODING_EXCEPTION
      The Constant UnsupportedEncodingException.
      See Also:
  • Constructor Details

    • Html2PdfException

      public Html2PdfException (String message)
      Creates a new Html2PdfException instance.
      Parameters:
      message - the message