CombinePDF_SetRotatePage

 

CombinePDF_SetRotatePage(lPageNumber As Integer, bRotate As Boolean)

 

Description

The CombinePDF_SetRotatePage and CombinePDF_SetRotateAllPages functions can be used to specify which pages should be rotated by the CombinePDFPagesToDIB function, if the bAutoRotateToPortrait parameter of the CombinePDFPagesToDIB function is set to FALSE.

 

Parameters

 

Integer

lPageNumber

0 based index of the Page to set the rotation for.

Boolean

bRotate

TRUE: rotate the page, FALSE: do not rotate the page.

 

 

Pages are rotated 90 degrees clockwise.

 

Return value

None

 

Example

To rotate all pages in the document except the first and second pages:

 

BiPDF.CombinePDF_SetRotateAllPages(true);

BiPDF.CombinePDF_SetRotatePage(0, false);

BiPDF.CombinePDF_SetRotatePage(1, false);

// The bAutoRotateToPortrait parameter must be set to false:

BiPDF.CombinePDFPagesToDIB(filename, password, xdpi, ydpi, false, flags);