#include “BlackIceDEVMODE.h”
BOOL SetPdfAOpenMagnification (BlackIceDEVMODE* pBlackIceDevMode, int iMagnification);
Description
Sets the selected zoom mode. iMagnification 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 iMagnification - the zoom mode, can be 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 set by the SetPdfAOpenZoom function
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None