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