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 and NSImage

    Declaration

    Swift

    public typealias Image = UIImage
  • Cross-plattform type for UIColor and NSColor

    Declaration

    Swift

    public typealias Color = UIColor
  • Cross-plattform type for UIFont and NSFont

    Declaration

    Swift

    public typealias Font = UIFont
  • Cross-plattform type for UIEdgeInsets and NSEdgeInsets

    Declaration

    Swift

    public typealias EdgeInsets = UIEdgeInsets
  • Cross-plattform type for UIBezierPath and NSBezierPath

    Declaration

    Swift

    public typealias BezierPath = UIBezierPath
  • Cross-plattform type for CGPoint and NSPoint

    Declaration

    Swift

    public typealias Point = CGPoint
  • Cross-plattform type for UIRectCorner and RectCorner

    Declaration

    Swift

    public typealias RectCorner = UIRectCorner
  • Cross-plattform type for UIColor and NSColor

  • Cross-plattform type for UIFont and NSFont

  • Cross-plattform type for UIImage and NSImage

  • Cross-plattform type for UIEdgeInsets and NSEdgeInsets

  • Cross-plattform type for UIBezierPath and NSBezierPath

  • Cross-plattform type for CGPoint and NSPoint

  • Closure for custom pagination formatting.

    Declaration

    Swift

    public typealias PDFPaginationClosure = (_ page: Int, _ total: Int) -> String

    Parameters

    page

    Int - Current page number

    total

    Int - Total amount of pages

    Return Value

    Formatted pagination string

  • Structure to extend PDFRenderObject with the PDFContainer it is located in

    Declaration

    Swift

    public typealias PDFLocatedRenderObject = (PDFContainer, PDFRenderObject)