Clip
class Clip: PDFElement
A PDF clip element
- Clip a
PDFElement
with a shape style
-
The style of the clipping shape
Declaration
Swift
let shape: ShapeStyle
-
The
PDFElement
to clipDeclaration
Swift
let element: PDFElement
-
Init a clip element
Declaration
Swift
init(_ shape: ShapeStyle, _ element: PDFElement)
Parameters
shape
The style of the clipping shape
element
The
PDFElement
to clip -
Draw the clip
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