GetPdfAOpenMagnification

#include “BlackIceDEVMODE.h”

 

BOOL             GetPdfAOpenMagnification (BlackIceDEVMODE* pBlackIceDevMode, int* pMagnification);

Description
Returns the zoom settings.   pMagnification specifies the zoom settings what are used in the viewer when opening the printed PDF/A document.

Parameters

BlackIceDEVMODE* pDevMode              - pointer to the BlackIceDEVMODE structure.

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

BLF_PDF_OPEN_MAGNIFICATION_DEFAULT          // 0: Use the PDF viewer’s default zoom settings

BLF_PDF_OPEN_MAGNIFICATION_FITTOWIDTH // 1: Scale the PDF to fit to the width of the viewing screen

BLF_PDF_OPEN_MAGNIFICATION_FITTOHEIGHT // 2: Scale the PDF to fit to the height of the viewing screen.

BLF_PDF_OPEN_MAGNIFICATION_FITTOWINDOW            // 3: Scales the PDF to fit to the height and width of the viewing window.

BLF_PDF_OPEN_MAGNIFICATION_CUSTOM           // 4: Uses the custom zoom percentage of the opened PDF in the PDF viewer. The custom zoom percentage value can be returned by the GetPdfAOpenZoom function

Return value.

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None