PDFError
public enum PDFError : LocalizedError
List of errors which can be thrown during configuration, calculations or rendering
-
The associated
value
is an instance of an unsupported type.Declaration
Swift
case tableContentInvalid(value: Any?)
-
Indicates that a table without any data was added to the document, which is unsupported
Declaration
Swift
case tableIsEmpty
-
The given table structure does not match, i.e. the data matrix size does not match the cell alignment configuration
Declaration
Swift
case tableStructureInvalid(message: String)
-
Thrown when accessing a cell outside of the table bounds
Declaration
Swift
case tableIndexOutOfBounds(index: Int, length: Int)
-
Indicates that the cell is too big to be rendered onto a single page
Declaration
Swift
case tableCellTooBig(cell: PDFTableCell)
-
Thrown when neither a
PDFSimpleText
nor aUIKit/NSAttributedString
is set in anPDFAttributedText
Declaration
Swift
case textObjectIsNil
-
Thrown when a
PDFAttributedText
should be rendered without being calculated firstDeclaration
Swift
case textObjectNotCalculated
-
Thrown when copying of a PDF object fails
Declaration
Swift
case copyingFailed
-
Thrown when an external PDF document could not be loaded from the given
url
Declaration
Swift
case externalDocumentURLInvalid(url: URL)
-
Index of page in external document is out of bounds
Declaration
Swift
case pageOutOfBounds(index: Int)
-
nodoc
Declaration
Swift
public var errorDescription: String? { get }