GetPdfOpenPageLayout 

#include “BlackIceDEVMODE.h”

 

BOOL             GetPdfOpenPageLayout (BlackIceDEVMODE* pBlackIceDevMode, int* pPageLayout);

Description
Returns the selected page layout.   pPageLayout  specifies how the pages of the printed multipage PDF will be displayed in the PDF viewer.

Parameters

BlackIceDEVMODE* pDevMode              - pointer to the BlackIceDEVMODE structure.

int* pPageLayout                                             - pointer to the variable, that will contain one of the following values:

BLF_PDF_OPEN_PAGE_LAYOUT_DEFAULT // 0: The printed PDF will use the PDF viewer’s settings by default.

BLF_PDF_OPEN_PAGE_LAYOUT_SINGLE  // 1:  The PDF viewer application displays only one page at the time on the screen.                                                    

BLF_PDF_OPEN_PAGE_LAYOUT_SINGLE_CONTINUOUS // 2:  The PDF viewer displays the pages in one column.

BLF_PDF_OPEN_PAGE_LAYOUT_TWO_CONTINUOUS_LEFT // 3: The PDF viewer displays the pages in two column and the odd pages are positioned to the left.

BLF_PDF_OPEN_PAGE_LAYOUT_TWO_CONTINUOUS_RIGHT // 4: The PDF viewer displays the pages in two column and the odd pages are positioned to the right.

BLF_PDF_OPEN_PAGE_LAYOUT_TWO_LEFT          // 5: The PDF viewer application displays two pages next to each other at the time, and the odd pages are positioned to the left.

LF_PDF_OPEN_PAGE_LAYOUT_TWO_RIGHT          // 6: The PDF viewer displays two pages next to each other at the time, and the odd pages are positioned to the right.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None