PDFXResolution example for C++ 5.0 and later
//This example does the following :
// 1- Changes the horizontal and vetical PDF resolutions to 150 dpi .
// 2- Sets the pixel depth to 8 .
// 3- Disables both font and graphics anti-aliasing.
// 4- Forces the PDF module to use it's own installed fonts.
// 5- Loads a PDF file using the new settings.
ILEADRasterIO *pRasterIO=NULL;
//unlock PDF support, you will need the actual key
m_LEADRasterView1.GetRaster().UnlockSupport(L_SUPPORT_PDF, "TestKey");
CoCreateInstance(CLSID_LEADRasterIO, NULL,
CLSCTX_ALL, IID_ILEADRasterIO,
(void**)&pRasterIO);
//Set horizontal resolution
pRasterIO->put_PDFXResolution(150);
//Set vertial resolution
pRasterIO->put_PDFYResolution(150);
//Set Display depth
pRasterIO->put_PDFDisplayDepth (8);
//No font anti-aliasing
pRasterIO->put_PDFTextAlpha (1);
//No graphics anti-aliasing
pRasterIO->put_PDFGraphicsAlpha (1);
//Use fonts installed by the PDF module
pRasterIO->put_PDFUseLibFonts (TRUE);
//Load the PDF file
pRasterIO->Load(m_LEADRasterView1.GetRaster(), "c:\\temp\\Test.pdf", 0, 0, 1);
pRasterIO->Release();