ASUns32
PDETextItemCopyText(
IN
PDETextItem
textItem
,
OUT
ASUns8
*
buffer
,
IN
ASUns32
bufferSize
);
textItem | |
buffer | (Filled by the method) A pointer to a buffer in which to store the copy.
|
bufferSize | The length of the text buffer in bytes.
|
textItem
. Superseded by PDETextItemCreateEx() in Acrobat 10.0. Creates a text item element containing a character or text run, which can be added to a PDEText text object.
Call PDERelease() to dispose of the returned PDETextItem object when finished with it.
PDETextItem
PDETextItemCreate(
IN
ASUns8
*
text
,
IN
ASUns32
textLen
,
IN
PDEFont
font
,
IN
PDEGraphicStateP
gStateP
,
IN
ASUns32
gStateLen
,
IN
PDETextStateP
textStateP
,
IN
ASUns32
textStateLen
,
IN
ASFixedMatrix
*
textMatrixP
);
text | |
textLen | The length of the text in bytes.
|
font | The font for the element.
|
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.
|
Creates a text item element containing a character or text run, which can be added to a PDEText text object. Supersedes PDETextItemCreate() in Acrobat 10.0.
Call PDERelease() to dispose of the returned PDETextItem object when finished with it.
PDETextItem
PDETextItemCreateEx(
IN
ASUns8
*
text
,
IN
ASUns32
textLen
,
IN
PDEFont
font
,
IN
PDEGraphicStateP
gStateP
,
IN
ASUns32
gStateLen
,
IN
PDETextStateP
textStateP
,
IN
ASUns32
textStateLen
,
IN
ASDoubleMatrix
*
textMatrixP
);
text | |
textLen | The length of the text in bytes.
|
font | The font for the element.
|
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 ASDoubleMatrix that holds the matrix for the element.
|
Note: This method does not change the reference count of the returned PDEFont.
PDEFont
PDETextItemGetFont(
IN
PDETextItem
textItem
);
textItem | The text item whose font is obtained.
|
void
PDETextItemGetGState(
IN
PDETextItem
textItem
,
OUT
PDEGraphicStateP
stateP
,
IN
ASUns32
stateSize
);
textItem | Text item whose graphic state is obtained.
|
stateP | (Filled by the method) A pointer to a PDEGraphicState structure with graphics state of the text item.
|
stateSize | The size of the
stateP buffer in bytes. |
void
PDETextItemGetGStateEx(
IN
PDETextItem
textItem
,
OUT
PDEGraphicStateExP
stateP
,
IN
ASUns32
stateSize
);
textItem | Text item whose graphic state is obtained.
|
stateP | (Filled by the method) A pointer to a PDEGraphicStateEx structure with graphics state of the text item.
|
stateSize | The size of the
stateP buffer in bytes. |
ASUns32
PDETextItemGetTextLen(
IN
PDETextItem
textItem
);
textItem | The text item whose text length is obtained.
|
void
PDETextItemGetTextMatrix(
IN
PDETextItem
textItem
,
IN
ASUns32
charOffset
,
OUT
ASFixedMatrix
*
textMatrixP
);
textItem | The text item.
|
charOffset | The offset of the character whose text matrix is obtained.
|
textMatrixP | (Filled by the method) A pointer to a ASFixedMatrix structure with the text matrix of the character.
|
void
PDETextItemGetTextMatrixEx(
IN
PDETextItem
textItem
,
IN
ASUns32
charOffset
,
OUT
ASDoubleMatrix
*
textMatrixP
);
textItem | The text item.
|
charOffset | The offset of the character whose text matrix is obtained.
|
textMatrixP | (Filled by the method) A pointer to a ASDoubleMatrix structure with the text matrix of the character.
|
void
PDETextItemGetTextState(
IN
PDETextItem
textItem
,
OUT
PDETextStateP
textStateP
,
IN
ASUns32
textStateSize
);
textItem | The text item whose text state is obtained.
|
textStateP | (Filled by the method) A pointer to a PDETextStateP structure with text state of the text item.
|
textStateSize | The size of the
texStateP structure in bytes. |
void
PDETextItemRemoveChars(
IN
PDETextItem
textItem
,
IN
ASUns32
charOffset
,
IN
ASUns32
count
);
textItem | The text item whose characters are removed.
|
charOffset | The offset of the first character to remove.
|
count | The number of characters to remove.
|
Replaces characters in a text item.
This method does not change the number of characters in the text item; extra characters are ignored.
void
PDETextItemReplaceChars(
IN
PDETextItem
textItem
,
IN
ASUns32
charIndex
,
IN
ASUns8
*
newChar
,
IN
ASUns32
newCharLen
);
textItem | The text item whose characters are replaced.
|
charIndex | The index position of the characters to replace.
|
newChar | The replacement text.
|
newCharLen | The number of bytes to replace.
|
void
PDETextItemReplaceText(
IN
PDETextItem
textItem
,
IN
ASUns8
*
newText
,
IN
ASUns32
newTextLen
);
textItem | The text item whose text are replaced.
|
newText | The replacement text.
|
newTextLen | The number of bytes to replace.
|
Note: This method decrements the reference count of the previous font and increments the reference count of the new font.
void
PDETextItemSetFont(
IN
PDETextItem
textItem
,
IN
PDEFont
font
);
textItem | The text item whose font is set.
|
font | The new font object.
|
void
PDETextItemSetGState(
IN
PDETextItem
textItem
,
OUT
PDEGraphicStateP
stateP
,
IN
ASUns32
stateSize
);
textItem | Text item whose graphics state is set.
|
stateP | A pointer to a PDEGraphicState structure with graphics state of the text item.
|
stateSize | The size of the
stateP buffer in bytes. |
void
PDETextItemSetGStateEx(
IN
PDETextItem
textItem
,
OUT
PDEGraphicStateExP
stateP
,
IN
ASUns32
stateSize
);
textItem | Text item whose graphics state is set.
|
stateP | A pointer to a PDEGraphicStateEx structure with graphics state of the text item.
|
stateSize | The size of the
stateP buffer in bytes. |
void
PDETextItemSetTextMatrix(
IN
PDETextItem
textItem
,
IN
ASFixedMatrix
*
textMatrixP
);
textItem | The text item whose text matrix is set.
|
textMatrixP | A pointer to a ASFixedMatrix structure with the new text matrix of the text item.
|
void
PDETextItemSetTextMatrixEx(
IN
PDETextItem
textItem
,
IN
ASDoubleMatrix
*
textMatrixP
);
textItem | The text item whose text matrix is set.
|
textMatrixP | A pointer to a ASDoubleMatrix structure with the new text matrix of the text item.
|
void
PDETextItemSetTextState(
IN
PDETextItem
textItem
,
IN
PDETextStateP
textStateP
,
IN
ASUns32
textStateSize
);
textItem | The text item whose text state is set.
|
textStateP | A PDETextStateP structure with the new text state of the text item.
|
textStateSize | The size of the
textStateP structure in bytes. |