DTWAIN_SetPDFTextElementString

DTWAIN_SetPDFTextElementStringA

DTWAIN_SetPDFTextElementStringW

Top  Previous  Next

The DTWAIN_SetPDFTextElementString sets one of the string characteristics within a DTWAIN_PDFTEXTELEMENT.

 

DTWAIN_BOOL DTWAIN_SetPDFTextElementString (

DTWAIN_PDFTEXTELEMENT

TextElement,

LPCTSTR

strArg,

LONG

Item );

 

Parameters

TextElement

The DTWAIN_PDFTEXTELEMENT to set.

 

strArg

Value that will be used to set the DTWAIN_PDFTEXTELEMENT

 

Item

The item within the DTWAIN_PDFTEXTELEMENT to set


Return Values

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

 

Character specific version

ANSI version:

DTWAIN_SetPDFTextElementStringA

Unicode version:

DTWAIN_SetPDFTextElementStringW


Comments

The DTWAIN_SetPDFTextElementString sets the various string characteristics of TextElement.


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


Value of Item

Values set within the DTWAIN_PDFTEXTELEMENT

DTWAIN_PDFTEXTELEMENT_FONTNAME

strArg is the name of one of the supported fonts (for example, "Helvetica")

DTWAIN_PDFTEXTELEMENT_TEXT

strArg is the text that will be shown on the page

 

For DTWAIN_PDFTEXTELEMENT_FONTNAME, the available font names can be found in the DTWAIN_AddPDFText topic.