Padding
class Padding: PDFElement
A PDF padding element
-
The size of the padding
Declaration
Swift
let size: CGFloat -
The
PDFElementthat will be paddedDeclaration
Swift
let element: PDFElement -
Init the padding element
Declaration
Swift
init(size: CGFloat, _ element: PDFElement)Parameters
sizeThe size of the padding
elementThe
PDFElementthat will be padded -
Draw the padding
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the size should be calculated
pageRectThe page size of the PDF document
View on GitHub