CFRelease(url); //获取文档的第1页 CGPDFPageRef page1 = CGPDFDocumentGetPage(document, 1); //进行绘制 CGContextDrawPDFPage
} } return self; } -(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { CGContextDrawPDFPage
CGGlyph * cg_nullable glyphs, const CGPoint * cg_nullable Lpositions, size_t count); //进行PDF页的绘制 void CGContextDrawPDFPage