in my ipad application i am trying to search the index in the pdf file which is loaded. so i use the following code to do that..
CGPDFDictionaryRef pdfDocDictionary = CGPDFDocumentGetCatalog(pdf);
CGPDFDocumentApplyFunction(pdfDocDictionary, ListDictionaryObjects, NULL);
static void ListDictionaryObjects (const char *key, CGPDFObjectRef object, void *info) {
NSLog("key: %s", key);
CGPDFObjectType type = CGPDFObjectGetType(object);
switch (type) {
case kCGPDFObjectTypeDictionary: {
CGPDFDirectoryRef objectDictionary;
if (CGPDFObjectGetValue(object, kCGPDFObjectTypeDictionary, &objectDictionary)) {
CGPDFDocumentApplyFunction(objectDictionary, ListDictionaryObjects, NULL);
}
}
case kCGPDFObjectTypeInteger: {
CGPDFInteger objectInteger;
if (CGPDFObjectGetValue(object, kCGPDFObjectTypeInteger, &objectInteger)) {
NSLog("pdf integer value: %ld", (long int)objectInteger);
}
}
}
}
here the error coming is that CGPDFDocumentApplyfunction refrenced from
[pdfParse pasepdf] in parsepdf.o ....
symbol(s) not found..
collect2: (ld) return 1 exit status..