当我在石英 2D 中浏览 pdf 文档时,他们说要从 CGPDFDocument 对象获取页面。然后在 CGContextRef 对象中绘制页面。
CGPDFDocumentRef document = MyGetPDFDocumentRef (filename);
CGPDFPageRef page = CGPDFDocumentGetPage (document, pageNumber);
CGContextDrawPDFPage (myContext, page);
CGPDFDocumentRelease (document);
一切都是在这个背景下完成的。我不明白如何在视图中查看对上下文所做的这些事情,或者我错过了什么?我正在 webView 中查看 pdf。