PDFXResolution example for Visual Basic
'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.
Dim RasterIO As New LEADRasterIO
'Unlock PDF support, you will need the actual key
LEADRasterView1.Raster.UnlockSupport L_SUPPORT_PDF, "TestKey"
'Set horizontal resolution
RasterIO.PDFXResolution = 150
'Set vertial resolution
RasterIO.PDFYResolution = 150
'Set Display depth
RasterIO.PDFDisplayDepth = 8
' No font anti-aliasing
RasterIO.PDFTextAlpha = 1
' No graphics anti-aliasing
RasterIO.PDFGraphicsAlpha = 1
' Use fonts installed by the PDF module
RasterIO.PDFUseLibFonts = True
'Load the PDF file
RasterIO.Load LEADRasterView1.Raster, "c:\temp\Test.pdf", 0, 0, 1