Type Aliases
The following type aliases are available globally.
-
Delegation protocol combining all delegates supported by the PDFGenerator
Declaration
Swift
public typealias PDFGeneratorDelegate = PDFGeneratorImageDelegate
-
Cross-plattform type for
UIImage
andNSImage
Declaration
Swift
public typealias Image = UIImage
-
Cross-plattform type for
UIColor
andNSColor
Declaration
Swift
public typealias Color = UIColor
-
Cross-plattform type for
UIFont
andNSFont
Declaration
Swift
public typealias Font = UIFont
-
Cross-plattform type for
UIEdgeInsets
andNSEdgeInsets
Declaration
Swift
public typealias EdgeInsets = UIEdgeInsets
-
Cross-plattform type for
UIBezierPath
andNSBezierPath
Declaration
Swift
public typealias BezierPath = UIBezierPath
-
Cross-plattform type for
CGPoint
andNSPoint
Declaration
Swift
public typealias Point = CGPoint
-
Cross-plattform type for
UIRectCorner
andRectCorner
Declaration
Swift
public typealias RectCorner = UIRectCorner
-
Cross-plattform type for
UIColor
andNSColor
-
Cross-plattform type for
UIFont
andNSFont
-
Cross-plattform type for
UIImage
andNSImage
-
Cross-plattform type for
UIEdgeInsets
andNSEdgeInsets
-
Cross-plattform type for
UIBezierPath
andNSBezierPath
-
Cross-plattform type for
CGPoint
andNSPoint
-
Closure for custom pagination formatting.
Declaration
Swift
public typealias PDFPaginationClosure = (_ page: Int, _ total: Int) -> String
Parameters
page
Int
- Current page numbertotal
Int
- Total amount of pagesReturn Value
Formatted pagination string
-
Structure to extend
PDFRenderObject
with thePDFContainer
it is located inDeclaration
Swift
public typealias PDFLocatedRenderObject = (PDFContainer, PDFRenderObject)