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
spaceThe amount of space to use
-
Draw the spacer element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the Bounding Rect should be calculated
pageRectThe page size of the PDF document
View on GitHub