Apple的CGPDFOperatorTable Reference表示PDFOperatorCallback应如下所示:
void MyCGPDFOperatorCallback (
CGPDFScannerRef scanner,
void *info
);
参数
扫描器
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.
信息
A pointer to data passed to the callback.
我很困惑信息将指向哪些数据。这是我可以设置的东西吗?或扫描仪是否自动设置?如果是这样,到底是什么?
答案 0 :(得分:1)
这是您传递给info
函数的CGPDFScannerCreate
参数。