Layer | PDFEdit_Layer |
Object | PDEClip |
A PDEClip is a list of PDEElement objects containing a list of PDEPath objects and PDEText objects that describe a clipping state. PDEClip objects can be created and built up with PDEClip methods. Any PDEElement object can have PDEClip associated with it by using the PDEElementSetClip() method.
Typedef | ||
---|---|---|
PDEClip
A list of PDEElement objects containing a list of PDEPath objects and PDEText objects that describe a clip state. PDEClip objects can be created and built up with PDEClip methods. Any PDEElement object can have PDEClip associated with it. PDEClip objects can contain PDEContainer objects and PDEGroup objects to an arbitrary level of nesting. This allows PDEContainer objects to be used to mark clip objects. PDEGroup objects inside PDEClip objects that contain at least one PDEText and no PDEPath objects have a special meaning. All PDEText objects contained in such a PDEGroup are considered to be part of the same BT/ET block. This means that the union of these PDEText objects makes up a single clipping path, as opposed to the intersection of the PDEText objects.
|
Callback | ||
---|---|---|
PDEClipEnumProc
A callback for PDEClipFlattenedEnumElems(), which enumerates all of a PDEClip object's PDEElement objects in a flattened manner.
|
Method | ||
---|---|---|
Adds an element to a clip path.
|
||
PDEClip PDEClipCopy(INPDEClip srcClip)
Makes a deep copy of a PDEClip object.
|
||
PDEClip PDEClipCreate()
Creates an empty clip object. This represents a clipping object that has no effect on elements that refer to it.
|
||
ASBool PDEClipFlattenedEnumElems(INPDEClip clip, INPDEClipEnumProc enumProc, IN void* enumProcClientData)
For a given PDEClip, this enumerates all of the PDEElement objects in a flattened manner. In other words, PDEContainer objects and PDEGroup objects nested in the PDEClip will not be handed back, but any PDEPath objects and PDEText objects nested in them will be. Additionally, PDEPlace objects inside the PDEClip are not returned.
|
||
Gets an element from a clip object.
|
||
ASInt32 PDEClipGetNumElems(INPDEClip clip)
Gets the number of top-level elements in a clip object. Top-level elements may be a path or charpath, a marked content container or place, or a group.
|
||
Removes one or more elements from a clip object.
|
PDEClip |
Product availability: All |
Platform availability: All |
typedef struct _t_PDEClip* PDEClip;
A list of PDEElement objects containing a list of PDEPath objects and PDEText objects that describe a clip state. PDEClip objects can be created and built up with PDEClip methods. Any PDEElement object can have PDEClip associated with it. PDEClip objects can contain PDEContainer objects and PDEGroup objects to an arbitrary level of nesting. This allows PDEContainer objects to be used to mark clip objects. PDEGroup objects inside PDEClip objects that contain at least one PDEText and no PDEPath objects have a special meaning. All PDEText objects contained in such a PDEGroup are considered to be part of the same BT/ET block. This means that the union of these PDEText objects makes up a single clipping path, as opposed to the intersection of the PDEText objects.
See Also
File: PEExpT.h |
Line: 339 |
PDEClipEnumProc |
Product availability: All |
Platform availability: All |
ASBool (*PDEClipEnumProc)(IN PDEElement elem, IN void *clientData)
A callback for PDEClipFlattenedEnumElems(), which enumerates all of a PDEClip object's PDEElement objects in a flattened manner.
See Also
File: PEExpT.h |
Line: 1865 |
PDEClipAddElem | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDEClipAddElem(INPDEClip clip, INASInt32 addAfterIndex, INPDEElement pdeElement)
Adds an element to a clip path.
Parameters
clip — | IN/OUT The clip path to which an element is added. |
|
addAfterIndex — | IN/OUT The index after which to add |
|
pdeElement — | IN/OUT The element added, which may be a PDEPath, a PDEText, a PDEContainer, a PDEGroup, or a PDEPlace object. |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 728 |
PDEClipCopy | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Makes a deep copy of a PDEClip object.
Call PDERelease() to dispose of the returned clip object when finished with it.
It raises an exception if it is unable to allocate memory.
Parameters
srcClip — | IN/OUT The clipping path to copy. |
The deep copy of |
Since
File: PEWProcs.h |
Line: 1724 |
PDEClipCreate | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEClip PDEClipCreate()
Creates an empty clip object. This represents a clipping object that has no effect on elements that refer to it.
Call PDERelease() to dispose of the returned clip object when finished with it.
It raises an exception if it is unable to allocate memory.
ReturnsThe newly created clip object. |
Since
File: PEWProcs.h |
Line: 763 |
PDEClipFlattenedEnumElems | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASBool PDEClipFlattenedEnumElems(INPDEClip clip, INPDEClipEnumProc enumProc, IN void* enumProcClientData)
For a given PDEClip, this enumerates all of the PDEElement objects in a flattened manner. In other words, PDEContainer objects and PDEGroup objects nested in the PDEClip will not be handed back, but any PDEPath objects and PDEText objects nested in them will be. Additionally, PDEPlace objects inside the PDEClip are not returned.
Parameters
clip — | The PDEClip to enumerate. |
|
enumProc — | Called with each flattened element. Enumeration continues until all elements have been enumerated, or until |
|
enumProcClientData — | A pointer to user-supplied data to pass to |
Returns the value of |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 1835 |
PDEClipGetElem | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEElement PDEClipGetElem(INPDEClip clip, INASInt32 index)
Gets an element from a clip object.
Parameters
clip — | IN/OUT The clip object from which an element is obtained. |
|
index — | IN/OUT The index of the element to get from |
The element from the clip object. |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 1051 |
PDEClipGetNumElems | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Gets the number of top-level elements in a clip object. Top-level elements may be a path or charpath, a marked content container or place, or a group.
Paths are represented as PDEPath objects; charpaths are represented as PDEText objects.
Parameters
clip — | IN/OUT The clip object to examine. |
The number of path and charpath elements in clip. If |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 1032 |
PDEClipRemoveElems | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Removes one or more elements from a clip object.
Parameters
clip — | IN/OUT The clip object from which an element is removed. |
|
index — | IN/OUT The first element to remove. |
|
count — | IN/OUT The number of elements to remove. |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 748 |