DTWAIN_SetPDFPageSizeString

Top  Previous  Next

The following function is available only with DTWAIN / PDF.

 

The DTWAIN_SetPDFPageSizeString sets the current page size of the PDF page.

 

DTWAIN_BOOL DTWAIN_SetPDFPageSize (

DTWAIN_SOURCE

Source,

LONG

PageSize,

LPCTSTR

CustomWidth,

LPCTSTR

CustomHeight );

 

Parameters

Source

An open TWAIN Source.

 

PageSize

The current page size,

 

CustomWidth

Custom width in points.

 

CustomHeight

Custom height in points.

 

 

Return Values

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

 

Comments

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

 

For example:

DTWAIN_SetPDFPageSizeString( Source, DTWAIN_PDF_CUSTOMSIZE, "500.0", "500.0")