【问题标题】:Working with PDFs in Cocoa在 Cocoa 中处理 PDF
【发布时间】:2011-04-01 23:27:28
【问题描述】:

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

【问题讨论】:

    标签: cocoa pdf pdfkit


    【解决方案1】:

    来自 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;
    

    【讨论】:

    • 我不敢相信我错过了,我看了至少 10 次。感谢您的帮助,请原谅我对细节缺乏关注。
    • @grivescorbett:不需要道歉;我也不知道,所以我学到了一些东西,很高兴我能帮上忙。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多