i am working on PDF annotation app i added PDF file annotation in iPhone it working fine it annotation also visible any reader but facing one issue How to get image from Fi
finally get solution
CGPDFDictionaryRef aDict;
NSData *imagedata=nil;
if(CGPDFDictionaryGetDictionary(annotDict, "FS", &aDict))
{
CGPDFDictionaryRef embeddedFiles;
if (CGPDFDictionaryGetDictionary (aDict, "EF", &embeddedFiles) )
{
CGPDFStreamRef streamDict;
if (CGPDFDictionaryGetStream(embeddedFiles, "F", &streamDict))
{
CGPDFDataFormat *format = NULL;
CFDataRef xmlData;
xmlData = CGPDFStreamCopyData (streamDict, format);
imagedata=(NSData*)xmlData;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
savedImagePath = [documentsDirectory stringByAppendingPathComponent:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[(NSData*)xmlData writeToFile:savedImagePath atomically:NO];
}
}
}