PDGraphic is the abstract superclass for all graphic objects that comprise page, charproc, and
PDForm descriptions (see Chapter 4, Graphics, in the PDF Reference). There are no objects
of type PDGraphic, but its methods can be used by any graphic object. There are three types of
graphic objects: PDPath, PDText, and PDInlineImage. In addition to these three objects,
there are also operators in the content stream. These operators are: Save, Restore,
references to XObjects (forms and image resources), and for Type 3 font descriptions only,
charwidth and cachedevice. You can access these objects and operators via PDPageEnumContents(),
PDFormEnumPaintProc(), or PDCharProcEnum().
Many of the methods provide access to parameters of the graphics state. For a discussion
of the graphics state and its parameters, see Section 4.3, Graphics State, in the
PDF Reference.
Product availability: All |
Platform availability: All |
Syntax
typedef struct _t_PDGraphic* PDGraphic;
All graphic objects that comprise page, charproc, and PDForm descriptions.
See Also
File: PDExpT.h |
Line: 2405 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 2791 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 2847 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 6379 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 6379 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 2514 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 2514 |
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDGraphicEnumMonitor {}
An array of callbacks to pass to PDCharProcEnum(), PDFormEnumPaintProc() or PDPageEnumContents(). One of the callbacks is called for every renderable object in the page contents. Pass NULL
for a callback to not enumerate that type of object. Each array element must be either NULL
or a valid callback. Enumeration of the page contents halts if the callback returns false
.
See Also
File: PDExpT.h |
Line: 2813 |
Elements
| size | The size of the data structure. It must be set to sizeof(PDGraphicEnumMonitorRec) . |
|
| EnumXObjectRefMatrix | If non-NULL , EnumXObjectRefMatrix is called immediately before EnumXObjectRef . It returns the current matrix for the subsequent XObject ref. |
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDGraphicEnumParams {}
Enumeration parameters used for optional-content drawing control in PDFormEnumPaintProcWithParams() and PDCharProcEnumWithParams(). The parameters are the same as those passed to the original versions of these methods (PDFormEnumPaintProc() and PDCharProcEnum()), with the addition of an optional-content context that determines what contents are visible.
See Also
File: PDExpT.h |
Line: 6353 |
Elements
| size | The size of the data structure. |
|
| clientOCContext | An optional-content context that determines what contents are visible. NULL uses the document's optional-content context, as returned by PDDocGetOCContext(pddoc) , which is equivalent to calling the version of the method without optional-content parameters. This context is copied and the copy is used in drawing. This allows a client to change its copy of the context without raising an exception. |
|
| usedOCContext | Filled by the method with the context that will be used during enumeration. This is a copy of the context specified by clientOCContext . |
|
| mon | The graphic enumeration monitor. |
|
| monObj | A pointer to user-supplied data to pass to the monitor. |
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDGraphicState {}
A data structure containing information about the current graphics state.
See Also
File: PDExpT.h |
Line: 2475 |
Elements
| ctm | Current transformation matrix. |
|
| fillColor | Fill color. |
|
| strokeColor | Stroke color. |
|
| fillCSpace | Fill color space. |
|
| strokeCSpace | Stroke color space. |
|
| flatness | Flatness tolerance. |
|
| lineCap | Line cap style. |
|
| dashPhase | Dash phase. |
|
| dashLen | Length of dash array. |
|
| dashes | Fixed to 10. The viewer has been extended to support dashes of any length. |
|
| lineJoin | Line join style. |
|
| lineWidth | Line width. |
|
| miterLimit | Miter limit. |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every d1 (setcachedevice
) operator.
See Also
File: PDExpT.h |
Line: 2774 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every d0 (setcharwidth
) operator.
See Also
File: PDExpT.h |
Line: 2762 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every image operator.
See Also
File: PDExpT.h |
Line: 2712 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every path operator.
See Also
File: PDExpT.h |
Line: 2700 |
Product availability: All |
Platform availability: All |
Syntax
ASBool (*PDGraphicEnumRestoreProc)(void *clientData)
A callback for PDGraphicEnumMonitor. It is called for every Q (restore) operator.
See Also
File: PDExpT.h |
Line: 2751 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every Q (save) operator.
See Also
File: PDExpT.h |
Line: 2740 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every text operator.
See Also
File: PDExpT.h |
Line: 2688 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It gets the current matrix for the subsequent XObject. It is called immediately before PDGraphicEnumXObjectRefProc().
See Also
File: PDExpT.h |
Line: 2789 |
Product availability: All |
Platform availability: All |
Syntax
A callback for PDGraphicEnumMonitor. It is called for every XObject (Do) operator.
See Also
File: PDExpT.h |
Line: 2729 |
Product availability: All |
Platform availability: All |
Syntax
Gets a bounding box for the specified graphic object.
Parameters
| obj — | The graphic object whose bounding box is obtained. |
|
| bboxP — | (Filled by the method) A pointer to a rectangle containing the bounding box for obj . If it is called during PDFormEnumPaintProc() or PDCharProcEnum(), the coordinates are specified in the object space, meaning that they are relative to the object's matrix. |
See Also
Since
File: PDProcs.h |
Line: 3562 |
Product availability: All |
Platform availability: All |
Syntax
Gets the current transformation matrix in effect for a graphic object; the matrix is relative to user space.
Parameters
| obj — | IN/OUT The graphic object for which transformation matrix is obtained. |
|
| matrix — | IN/OUT (Filled by the method) A pointer to a matrix containing the transformation matrix for obj . |
Since
File: PDProcs.h |
Line: 3574 |
Product availability: All |
Platform availability: All |
Syntax
Gets the graphics state associated with a graphic object. See Section 4.3 in the PDF Reference for a discussion of the graphics state parameters.
Parameters
| obj — | IN/OUT The graphic object whose graphics state is obtained. |
|
| stateP — | IN/OUT (Filled by the method) A pointer to a PDGraphicState structure containing the graphics state. |
|
| stateLen — | IN/OUT It must be sizeof(PDGraphicsState) . |
Since
File: PDProcs.h |
Line: 3588 |
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST