使用Quartz(iOS)创建PDF注释
问题描述:
有没有人设法使用Quartz在现有PDF中编写自定义注释?
我使用CGPDFDocumentRef等呈现PDF,现在工作正常:)
我成功阅读Annots dict使用
Did anyone manage to write custom annotations in a existing PDF using Quartz? I have rendered an PDF using CGPDFDocumentRef etc, works fine now :) And i'm successful reading the Annots dict using
if(!CGPDFDictionaryGetArray(pageDictionary, "Annots", &outputArray)) { ....
但我无法理解,如何写新的注释..
But i can't get my head around, how to write new annotations ..
嗯,没有人?它不可能...... :(
Hmmm, no-one?? it can't be impossible ... :(
答
如Quartz 2D Programming Guide中所述:
As stated in the Quartz 2D Programming Guide :
您可以使用 CGPDFContextSetURLForRect 以添加URL的注释。
You can use CGPDFContextSetURLForRect to add an annotations for an URL.