PDFXResolution example for C++ Builder
//This example does the following:
// 1- Changes the horizontal and vertical 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.
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
//Unlock PDF support, you will need the actual key
LEADRasterView1->Raster->UnlockSupport (L_SUPPORT_PDF, AnsiToOLESTR("h3tHyr"));
//Set horizontal resolution
pRasterIO->PDFXResolution = 150;
//Set vertial resolution
pRasterIO->PDFYResolution = 150;
//Set Display depth
pRasterIO->PDFDisplayDepth = 8;
//No font anti-aliasing
pRasterIO->PDFTextAlpha = 1;
//No graphics anti-aliasing
pRasterIO->PDFGraphicsAlpha = 1;
//Use fonts installed by the PDF module
pRasterIO->PDFUseLibFonts = True;
//Load the PDF file
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("c:\\temp\\Test.pdf"), 0, 0, -1);
pRasterIO-> Release( );