Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create PDF Annotations with Quartz (iOS)

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 ... :(

like image 368
jesuisbonbon Avatar asked Nov 15 '22 02:11

jesuisbonbon


1 Answers

As stated in the Quartz 2D Programming Guide :

http://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html#//apple_ref/doc/uid/TP30001066-CH214-BCIFAFBC

You can use CGPDFContextSetURLForRect to add an annotations for an URL.

like image 69
ıɾuǝʞ Avatar answered Dec 10 '22 11:12

ıɾuǝʞ