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