DTWAIN_SetPDFPageScaleString

Top  Previous  Next

The following function is available only with DTWAIN / PDF.

 

The DTWAIN_SetPDFPageScaleString sets the current page scale of the image acquired to PDF files.

 

DTWAIN_BOOL DTWAIN_SetPDFPageScaleString (

DTWAIN_SOURCE

Source,

LONG

PageScale,

LPCTSTR

CustomXScale,

LPCTSTR

CustomYScale );

 

Parameters

Source

An open TWAIN Source.

 

PageScale

The current scaling factor to apply to the acquired image.

 

CustomXScale

Custom x-scaling as a percent.

 

CustomYScaleHeight

Custom y-scaling as a percent.

 

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_SetPDFPageScaleString function works exactly the same way as DTWAIN_SetPDFPageScale, with the exception of the LPCTSTR parameters, which are strings that denote the values to use.  

 

For example:

DTWAIN_SetPDFPageScaleString( Source, DTWAIN_PDF_CUSTOMSCALE, "100", "80")

 

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

PDF File Options