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 Summary
Modifier and TypeFieldDescriptionstatic final String
Message in case pdfRender cannot render a page.static final String
Message in case the specified page range is empty.static final String
Message in case pdfRender cannot render a page.static final String
Message in case page scaling is negative or zero.static final String
Message in case page scaling is too large.static final String
Message in case iText cannot open the specified pdf.static final String
Message in case user has specified negative page indices.static final String
Message in case user has specified page indices larger than the number of document's pages.static final String
Message in case one tries to render a PDF with an XFA form to images. -
Constructor Summary
ConstructorDescriptionRenderingException
(String message) Creates a newRenderingException
instance.RenderingException
(String message, Throwable cause) Creates a newRenderingException
instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CANNOT_WRITE_IMAGE_TO_SPECIFIED_PATH
Message in case pdfRender cannot render a page.- See Also:
-
EMPTY_RANGE
Message in case the specified page range is empty.- See Also:
-
PAGE_COULD_NOT_BE_RENDERED
Message in case pdfRender cannot render a page.- See Also:
-
PAGE_SCALING_NEGATIVE_ZERO
Message in case page scaling is negative or zero.- See Also:
-
PAGE_SCALING_TOO_BIG
Message in case page scaling is too large.- See Also:
-
PDFRENDER_FAILS_ON_OPENING_PDF
Message in case iText cannot open the specified pdf.- See Also:
-
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
Message in case user has specified page indices larger than the number of document's pages.- See Also:
-
XFA_IS_NOT_SUPPORTED
Message in case one tries to render a PDF with an XFA form to images.- See Also:
-
-
Constructor Details
-
RenderingException
Creates a newRenderingException
instance.- Parameters:
-
message
- the detail message
-
RenderingException
Creates a newRenderingException
instance.- Parameters:
-
message
- the detail message. -
cause
- the cause (which is saved for later retrieval byThrowable.getCause()
method).
-