我想知道是否有办法在PDFKit(PDFDocument,PDFPage)中使用更简单的类,并且仍然可以获得对较低级别CGPDFDocumentRef对象的引用。有谁知道这是否可行?
答案 0 :(得分:5)
来自PDFDocument.h:
// This is the CGPDFDocument associated with the PDFDocument
// object. With this object you can call many CoreGraphics
// API. May return NULL if the document was not created from
// an existing PDF file or data.
- (CGPDFDocumentRef) documentRef;