| Derived from | None |
| Framework | ApplicationServices/ApplicationServices.h |
| Declared in | CGPDFOperatorTable.h |
A CGPDFOperatorTable object stores callback functions for PDF operators. You pass an operator table and a PDF content stream to a CGPDFScanner object. When the scanner parses a PDF operator, Quartz invokes your callback for that operator. See also CGPDFScanner Reference and CGPDFContentStream Reference.
For more about PDF operators, see the latest version of PDF Reference, Adobe Systems Incorporated.
Creates an empty PDF operator table.
CGPDFOperatorTableRef CGPDFOperatorTableCreate ( void );
An empty PDF operator table. You are responsible for releasing this object by calling CGPDFOperatorTableRelease.
Call the function CGPDFOperatorTableSetCallback to fill the operator table with callbacks.
CGPDFOperatorTable.hDecrements the retain count of a CGPDFOperatorTable object.
void CGPDFOperatorTableRelease ( CGPDFOperatorTableRef table );
A PDF operator table.
CGPDFOperatorTable.hIncrements the retain count of a CGPDFOperatorTable object.
CGPDFOperatorTableRef CGPDFOperatorTableRetain ( CGPDFOperatorTableRef table );
A PDF operator table.
The same PDF operator table you passed in as the table parameter.
CGPDFOperatorTable.hSets a callback function for a PDF operator.
void CGPDFOperatorTableSetCallback ( CGPDFOperatorTableRef table, const char *name, CGPDFOperatorCallback callback );
A PDF operator table.
The name of the PDF operator you want to set a callback for.
The callback to invoke for the PDF operator specified by the name parameter.
You call the function CGPDFOperatorTableSetCallback for each PDF operator for which you want to provide a callback. See Appendix A in the PDF Reference, Second Edition, version 1.3, Adobe Systems Incorporated for a summary of PDF operators.
CGPDFOperatorTable.hPerforms custom processing for PDF operators.
typedef void (*CGPDFOperatorCallback)( CGPDFScannerRef scanner, void *info );
If you name your function MyCGPDFOperatorCallback, you would declare it like this:
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.
Your callback function takes any action that’s appropriate for your application. For example, if you want to count the number of inline images in a PDF but ignore the image data, you would set a callback for the EI operator. In your callback you would increment a counter for each call.
CGPDFOperatorTable.hAn opaque type that stores callback functions for PDF operators.
typedef struct CGPDFOperatorTable *CGPDFOperatorTableRef;
CGPDFOperatorTable.h
Last updated: 2006-12-22