在Cocoa中使用PDF

gri*_*ett 2 pdf cocoa pdfkit

我想知道是否有一种方法可以在PDFKit(PDFDocument,PDFPage)中使用更简单的类,并且仍然可以获得对较低级别CGPDFDocumentRef对象的引用.有谁知道这是否可能?

Jos*_*ell 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;
Run Code Online (Sandbox Code Playgroud)