objective c - Clip part of the page of PDF while drawing in iOS -


I am riding the drawar method more to attract a specific page of PDF. How can I clear a part of the page and show it to me.

  - (zero) drawer: Contents in (Layered *) layer: (CGCTXTF) reference {CGContextSetRGBFillColor (Reference, 1.0F, 1.0F, 1.0F, 1.0F); // White CGContextFillRect (reference, CGContextGetClipBoundingBox (reference)); // fill out CGContextTranslateCTM (reference, 0.0f, self.bound.edight.height); CGContextScaleCTM (Reference, 1.0 F, -1.0F); CGContextConcatCTM (context, CGPDFPageGetDrawingTransform (_PDFPageRef, kCGPDFCropBox, self.bounds, 0, truth)); CGContextDrawPDFPage (Reference, _PDFPageRef); } 

If you set a clipping area on you, you can set one part of the page The clip can reference the PDF page before referencing.


Comments