ImageGear Professional DLL v17.1 for Windows Accusoft
IG_PDE_text_add
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_TEXT > IG_PDE_text_add

Glossary Item Box

Adds a character or a text run to a PDE Text object.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_text_add(
        HIG_PDE_TEXT hText,
        UINT nFlag,
        UINT nIndex,
        LPBYTE lpText,
        UINT nTextLen,
        HIG_PDE_FONT hFont,
        LPAT_PDE_GRAPHICSTATE lpGstate,
        LPAT_PDE_TEXTSTATE lpTstate,
        LPAT_PDF_FIXEDMATRIX lpTextMatrix,
        LPAT_PDF_FIXEDMATRIX lpStrokeMatrix );

Arguments:

hText Text object to which a character or text run is added.
nFlag

enumIGPDETextFlags flag that specifies what kind of text to add. Must be either:

  • IG_PDE_TEXT_CHAR - for a text character
  • IG_PDE_TEXT_RUN - for a text run.
nIndex Index after which to add character or text run.
lpText Pointer to the characters to add.
Passing NULL for text can invalidate the text object but will not raise an error. Callers must not pass NULL for this parameter.
nTextLen Length of the text, in bytes.
hFont Font for the element.
lpGstate Pointer to AT_PDE_GRAPHICSTATE structure with the graphics state for the element.
lpTstate Pointer to AT_PDE_TEXTSTATE structure with text state for the element.
lpTextMatrix Pointer to AT_PDF_FIXEDMATRIX that holds the matrix for the element.
lpStrokeMatrix Pointer to AT_PDF_FIXEDMATRIX that holds the matrix for the line width when stroking text. May be NULL.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

©2012. Accusoft Corporation. All Rights Reserved.