Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)parseHyperlinks:(CGPDFDocumentRef)doc {
- for(int i=0; i<pageCount; i++) {
- CGPDFPageRef page = CGPDFDocumentGetPage(doc, i+1);
- CGPDFDictionaryRef pageDictionary = CGPDFPageGetDictionary(page);
- CGPDFArrayRef outputArray;
- if(CGPDFDictionaryGetArray(pageDictionary, "Annots", &outputArray)) {
- int arraycnt = CGPDFArrayGetCount( outputArray );
- for( int i = 0; i < arraycnt; ++i )
- {
- CGPDFObjectRef aryobj;
- if( CGPDFArrayGetObject( outputArray, i, &aryobj ) )
- {
- //DumpObject( tmp, aryobj, NULL );
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement