CGPDFOperatorTableSetCallback fails with `ID' isn't an operator.

Does anyone know why the following call fails?

CGPDFOperatorTableSetCallback(operatorTable, "ID", &callback);

The PDF specification seems to indicate that ID is an operator?

BTW what is the proper topic/subtopic for questions about Quartz? Wasn't sure what topic on the new forums to post this under.

Hi *****, seems you are working with CoreGraphics PDF lib.

As iOS 18.x still has a PDFKit bug (see here: https://developer.apple.com/forums/thread/762788 ) I have been looking into CG myself. Getting text with a CG Scanner out of a PDF is quite doable, but getting the bounding boxes of those texts is quite a challenge.

Since you seem to have experience with Core Graphics PDF routines, can you steer me to same sample code for getting bounding boxes of characters/words/text blocks out of a PDF page with Core Graphics?

Thanks for any help!

Regards, Klaus.

CGPDFOperatorTableSetCallback fails with `ID' isn't an operator.
 
 
Q