Class RenderingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itextpdf.commons.exceptions.ITextException
com.itextpdf.pdfrender.exceptions.RenderingException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RenderingCLIException

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

    • CANNOT_WRITE_IMAGE_TO_SPECIFIED_PATH

      public static final String CANNOT_WRITE_IMAGE_TO_SPECIFIED_PATH
      Message in case pdfRender cannot render a page.
      See Also:
    • EMPTY_RANGE

      public static final String EMPTY_RANGE
      Message in case the specified page range is empty.
      See Also:
    • PAGE_COULD_NOT_BE_RENDERED

      public static final String PAGE_COULD_NOT_BE_RENDERED
      Message in case pdfRender cannot render a page.
      See Also:
    • PAGE_SCALING_NEGATIVE_ZERO

      public static final String PAGE_SCALING_NEGATIVE_ZERO
      Message in case page scaling is negative or zero.
      See Also:
    • PAGE_SCALING_TOO_BIG

      public static final String PAGE_SCALING_TOO_BIG
      Message in case page scaling is too large.
      See Also:
    • PDFRENDER_FAILS_ON_OPENING_PDF

      public static final String PDFRENDER_FAILS_ON_OPENING_PDF
      Message in case iText cannot open the specified pdf.
      See Also:
    • RANGE_CONTAINS_NEGATIVE_OR_ZERO_NUMBERS

      public static final String RANGE_CONTAINS_NEGATIVE_OR_ZERO_NUMBERS
      Message in case user has specified negative page indices.
      See Also:
    • RANGE_CONTAINS_NUMBERS_BIGGER_THAN_NUMBER_OF_PAGES

      public static final String RANGE_CONTAINS_NUMBERS_BIGGER_THAN_NUMBER_OF_PAGES
      Message in case user has specified page indices larger than the number of document's pages.
      See Also:
    • XFA_IS_NOT_SUPPORTED

      public static final String XFA_IS_NOT_SUPPORTED
      Message in case one tries to render a PDF with an XFA form to images.
      See Also:
  • Constructor Details

    • RenderingException

      public RenderingException (String message)
      Creates a new RenderingException instance.
      Parameters:
      message - the detail message
    • RenderingException

      public RenderingException (String message, Throwable cause)
      Creates a new RenderingException instance.
      Parameters:
      message - the detail message.
      cause - the cause (which is saved for later retrieval by Throwable.getCause() method).