It looks like you want to write a CGPDFDictionaryApplierFunction and
call CGPDFDictionaryApplyFunction with it. This will iterate the
dictionary calling the applier function for each key & object in it.
Thanks David, that gets me the stream's length and filter name. What I
was looking for though is the string of characters that are the
contents of the Tj operator, and I just realised how to extract them
from the scanner. Really simple, now that I begin to get an inkling of
how it works:
// The Tj operator takes a string. Pop the string off the stack.
bool success = CGPDFScannerPopString(scanner, &pdfString);
// Convert the PDF string to an NSString and pass it back up.
if (success) {
((ScannedPageData *)info)->string = (NSString
*)CGPDFStringCopyTextString(pdfString);
} else {
((ScannedPageData *)info)->string = nil;
}
}
António
-----------------------------------------------------------
And could you keep your heart in wonder
at the daily miracles of your life,
your pain would not seem less wondrous
than your joy.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden