DTWAIN_GetPDFTextElementLong

Top  Previous  Next

The DTWAIN_GetPDFTextElementFloat gets one of the integer (LONG) characteristics within a DTWAIN_PDFTEXTELEMENT.

 

DTWAIN_BOOL DTWAIN_GetPDFTextElementLong (

DTWAIN_PDFTEXTELEMENT

TextElement,

LPLONG

arg1,

LPLONG

arg2,

LONG

Item );

 

Parameters

TextElement

The DTWAIN_PDFTEXTELEMENT to retrieve the values from.

 

arg1, arg2

Pointers to LONG that will be used to return the DTWAIN_PDFTEXTELEMENT values

 

Item

The item within the DTWAIN_PDFTEXTELEMENT to get


Return Values

TRUE if successful, FALSE otherwise.  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetPDFTextElementLong gets the various integer characteristics of TextElement.


The values that will be used are described in two arguments arg1 and arg2


The Item denotes which values within TextElement to get.  The value of Item must be one of the following:


Value of Item

Values retrieved from the DTWAIN_PDFTEXTELEMENT

DTWAIN_PDFTEXTELEMENT_COLOR

arg1 is an RGB color value, arg2 is ignored

DTWAIN_PDFTEXTELEMENT_DISPLAYFLAGS

arg1 is the displayFlag to use for the text element, arg2 is ignored

DTWAIN_PDFTEXTELEMENT_POSITION

arg1 is x-position on page, arg2 is y-position on page

DTWAIN_PDFTEXTELEMENT_RENDERMODE

arg1 is the render mode, arg2 is ignored

DTWAIN_PDFTEXTELEMENT_STROKEWIDTH

arg1 is the stroke width, arg2 is ignored.

DTWAIN_PDFTEXTELEMENT_TRANSFORMORDER

arg1 is the transform order, arg2 is ignored