我想知道是否有一种方法可以使用 PDFKit 中的更简单的类(PDFDocument、PDFPage),并且仍然获取对较低级别 CGPDFDocumentRef 对象的引用。有谁知道这是否可能?
最佳答案
来自 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;
关于cocoa - 在 Cocoa 中处理 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5519918/