void
PDETextItemCopyASText(
PDETextItem
textItem
,
ASText
text
);
textItem | The text item from which the text will be copied
|
text | An ASText object that is filled in with the text from the text item.
|
Creates a text element containing a character or text run which can be added to a PDEText object. This function will accept characters that are not representable in the given font; such characters will be replaced with the.notdef glyph.
An exception will be raised if the supplied font is incompatible with the API. Such may happen, for example, if font is a Type 1 font or if the font is retrieved from an existing PDF document.
PDETextItem
PDETextItemCreateASText(
ASText
text
,
PDEFont
font
,
PDEGraphicStateP
gStateP
,
ASUns32
gStateLen
,
PDETextStateP
textStateP
,
ASUns32
textStateLen
,
ASFixedMatrixP
textMatrixP
);
text | An ASText containing the text to add. Note that passing an ASText containing an empty string will throw a genErrBadParm.
|
font | The PDEFont for the element. Its type must be 'Type0' or 'TrueType'.
|
gStateP | A pointer to a PDEGraphicStateP structure with the graphics state for the element.
|
gStateLen | The length of the graphics state for the element.
|
textStateP | A pointer to a PDETextState structure with the text state for the element. Note that PDFEdit ignores the wasSetFlags flag of the PDETextState structure, so you must initialize the PDETextState fields.
|
textStateLen | The length of the text state for the element.
|
textMatrixP | A pointer to an ASFixedMatrix that holds the matrix for the element.
|