DTWAIN_SetPDFOrientation

Top  Previous  Next

The following function is available only with DTWAIN / PDF.

 

The DTWAIN_SetPDFOrientation sets the page orientation of an acquired PDF file.

 

DTWAIN_BOOL DTWAIN_SetPDFOrientation (

DTWAIN_SOURCE

Source,

LONG

Orientation );

 

Parameters

Source

An open TWAIN Source.

 

lpszOrientation

Page orientation.

 

 

Return Values

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

 

Comments

The DTWAIN_SetPDFOrientation sets the page orientation of a PDF file.  The Orientation must be either DTWAIN_PDF_PORTRAIT or DTWAIN_PDF_LANDSCAPE. By default, the orientation used is DTWAIN_PDF_PORTRAIT.

 

The orientation is not used if DTWAIN_SetPDFPageSize has been called with the DTWAIN_PDF_VARIABLEPAGE flag.

 

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