Available in the LEADTOOLS Imaging toolkit. |
PDFXResolution Example for C++ 4.0 and later
void CPdfTestDlg::OnPdfTest()
{
/*
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.*/
/*Set horizontal resolution*/
m_Lead1.SetPDFXResolution (150);
/*Set vertical resolution */
m_Lead1.SetPDFYResolution (150);
/*Set Display depth*/
m_Lead1.SetPDFDisplayDepth(8);
/* No font anti-aliasing */
m_Lead1.SetPDFTextAlpha (1);
/* No graphics anti-aliasing */
m_Lead1.SetPDFGraphicsAlpha (1);
/* Use fonts installed by the PDF module */
m_Lead1.SetPDFUseLibFonts (TRUE);
/* Load the PDF file */
m_Lead1.Load ("c:\\Test.pdf", 0, 0, 1);
}