Reputation: 992
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 ... :(
Upvotes: 5
Views: 2947
Reputation: 2849
As stated in the Quartz 2D Programming Guide :
You can use CGPDFContextSetURLForRect to add an annotations for an URL.
Upvotes: 1