Apple's CGPDFOperatorTable Reference says a PDFOperatorCallback should look like this:开发者_C百科
void MyCGPDFOperatorCallback (
   CGPDFScannerRef scanner,
   void *info
);
Parameters
scanner
A CGPDFScanner object. Quartz passes the scanner to your callback function. The scanner contains the PDF content stream that has the PDF operator that corresponds to this callback.
info
A pointer to data passed to the callback.
I am confused what data the info will point to. Is this something I can set somehow? Or does the scanner set it automatically? If so, to what?
It's the info parameter that you passed to the CGPDFScannerCreate function.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论