gstate
. Within a PDEForm, each PDEElement has its own gstate
(or is a container, place, or group object). These gstates
are independent of the parent PDEForm gstate
. PDEForm elements within the PDEForm may have their own opacity. A PDEContent may be obtained from a PDEForm to edit the form's display list. typedef
struct
_t_PDEForm
*
PDEForm
;
Acquires the transparency group dictionary of the XObject form.
Call PDERelease() to dispose of the PDEXGroup when finished with it.
PDEXGroup
PDEFormAcquireXGroup(
IN
PDEForm
pdeForm
);
pdeForm | IN/OUT The from.
|
Creates a new form from an existing form object. Creates a copy of the PDEForm, including the underlying CosStream.
Call PDERelease() to dispose of the returned PDEForm object when finished with it.
PDEForm
PDEFormCreateClone(
IN
PDEForm
form
);
form | The form object from which a new PDEForm is created.
|
Superseded by PDEFormCreateFromCosObjEx() in Acrobat 10.0. Creates a new form from an existing Cos object.
Call PDERelease() to dispose of the returned form object when finished with it.
PDEForm
PDEFormCreateFromCosObj(
IN
const
CosObj
*
xObjectP
,
IN
const
CosObj
*
resourcesP
,
IN
ASFixedMatrixP
matrixP
);
xObjectP | The Cos object from which a PDEForm is created.
|
resourcesP | The
xObjectP parameter's Resources dictionary. If you do not pass in a Resource object, subsequent calls to PDPageAcquirePDEContent() will fail (after the file is saved). |
matrixP | A pointer to an ASFixedMatrix that holds the transformation matrix to use for the form.
|
Creates a new form from an existing Cos object. Supersedes PDEFormCreateFromCosObj() in Acrobat 10.0.
Call PDERelease() to dispose of the returned form object when finished with it.
PDEForm
PDEFormCreateFromCosObjEx(
IN
const
CosObj
*
xObjectP
,
IN
const
CosObj
*
resourcesP
,
IN
ASDoubleMatrixP
matrixP
);
xObjectP | The Cos object from which a PDEForm is created.
|
resourcesP | The
xObjectP parameter's Resources dictionary. If you do not pass in a Resource object, subsequent calls to PDPageAcquirePDEContent() will fail (after the file is saved). |
matrixP | A pointer to an ASDoubleMatrix that holds the transformation matrix to use for the form.
|
void
PDEFormGetBBox(
IN
PDEForm
form
,
OUT
ASFixedRectP
bboxP
);
form | The PDEForm for which the bounding box is required.
|
bboxP | The resulting bounding box.
|
Note: Unlike other GetContent
methods, this method does increment the reference count of the returned PDEContent. Call PDERelease() to dispose of the returned PDEContent object when finished with it.
PDEContent
PDEFormGetContent(
IN
PDEForm
form
);
form | The form whose content is obtained.
|
form
. PDEContentToCosObjFlags
for this form. The flags were previously set by PDEFormSetContentToCosObjFlags
()
. ASUns32
PDEFormGetContentToCosObjFlags(
IN
PDEForm
form
);
void
PDEFormGetCosObj(
IN
PDEForm
form
,
OUT
CosObj
*
cosObjP
);
form | IN/OUT The form whose Cos object is obtained.
|
cosObjP | IN/OUT (Filled by the method) The Cos object for the form.
|
ASDouble
PDEFormGetLeading(
IN
PDEForm
form
);
form | IN A form XObject object.
|
Superseded by PDEFormGetMatrixEx() in Acrobat 10.0. Gets the matrix for a PDEform.
The result is a concatenation of the CTM and the Cos level form matrix, resulting in the transformation from the form space to the device space.
Note: For the other elements, PDEElementGetMatrix() would give correct results.
void
PDEFormGetMatrix(
IN
PDEForm
form
,
OUT
ASFixedMatrixP
matrixP
);
form | The form for which the matrix is required.
|
matrixP | The resultant matrix.
|
Gets the matrix for a PDEform. Supersedes PDEFormGetMatrix() in Acrobat 10.0.
The result is a concatenation of the CTM and the Cos level form matrix, resulting in the transformation from the form space to the device space.
Note: For the other elements, PDEElementGetMatrixEx() would give correct results.
void
PDEFormGetMatrixEx(
IN
PDEForm
form
,
OUT
ASDoubleMatrixP
matrixP
);
form | The form for which the matrix is required.
|
matrixP | The resultant matrix.
|
ASBool
PDEFormHasXGroup(
IN
PDEForm
pdeForm
);
pdeForm | IN/OUT The form.
|
true
if the XObject form has a Transparency XGroup. ASBool
PDEFormIsLeadingSet(
IN
PDEForm
form
);
form | IN A form XObject object.
|
void
PDEFormSetContent(
IN
PDEForm
form
,
IN
PDEContent
content
);
form | The form whose content is set.
|
content | The new content for
form . |
PDEContentToCosObjFlags
for this form. void
PDEFormSetContentToCosObjFlags(
IN
PDEForm
form
,
IN
ASUns32
flags
);
void
PDEFormSetLeading(
IN
PDEForm
form
,
IN
ASDouble
Leading
);
form | IN A form XObject object.
|
ASDouble | IN Leading in gstate of parent of form XObject.
|
void
PDEFormSetXGroup(
IN
PDEForm
pdeForm
,
IN
PDEXGroup
pdeXGroup
);
pdeForm | IN/OUT The font XObject.
|
pdeXGroup | IN/OUT The transparency dictionary.
|