Spacer

class Spacer: PDFElement

A PDF spacer element

  • The amount of space to use

    Declaration

    Swift

    var space: CGFloat
  • Init the spacer element

    Declaration

    Swift

    init(_ space: CGFloat = 5)

    Parameters

    space

    The amount of space to use

  • Draw the spacer element

    Declaration

    Swift

    func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)

    Parameters

    rect

    The available rectangle

    calculationOnly

    Bool if only the Bounding Rect should be calculated

    pageRect

    The page size of the PDF document