PDFSaveUseDPI example for Visual C++ 5.0 and later

ILEADRasterIO *pRasterIO=NULL;
   CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
                    IID_ILEADRasterIO, (void**)&pRasterIO);
   //Use image DPI when saving as PDF
   pRasterIO->PDFSaveUseDPI = TRUE;
   //Save image as Raster PDF with CCITT G4 compression
   pRasterIO->Save(m_LEADRasterView1.GetRaster(),
                   "c:\\temp\\tmp.pdf",
                   FILE_RAS_PDF_G4, 1,
                   (QFactorConstants)1, SAVE_OVERWRITE);
   pRasterIO->Release();