开发者

CGPDFScannerCallback -- what does the info parameter point to?

开发者 https://www.devze.com 2023-03-31 01:25 出处:网络
Apple\'s CGPDFOperatorTable Reference says a PDFOperatorCallback should look like this:开发者_C百科

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消