使用Quartz(iOS)创建PDF注释 [英] Create PDF Annotations with Quartz (iOS)
本文介绍了使用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.
这篇关于使用Quartz(iOS)创建PDF注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文