|
Export the specific PDF page and rescale specific size to BMP, JPEG, TIF, GIF, PNG image file. You must set PDFUseAdvancedViewer= true first before use this method.
Public Function PDFEditGetBitmapBySize( _ ByVal strPDFFile As String, _ ByVal iPage As Integer, _ ByVal iScale As double, _ ByVal strOutputImageFile As String ) As Bool
|
Parameter
strPDFFile The source of PDF File.
iPage export specific PDF Page. First page is 1.
iScale the scale ratio of PDF page. 0.5 = 50% of original size, 2.0 = 200% of original size.
strOutputImageFile the output image file, support output BMP, JPEG, TIF, GIF, PNG image file. if the file extension is bmp, it will output bmp
Return Value Return true if successful, otherwise return false.
Example
|
Visual Basic Syntax ImageViewer1.PDFUseAdvancedViewer=true ImageViewer1.PDFEditGetBitmapBySize "c:\sourcepdf.pdf", 1, 1.3, "c:\output.jpg"
|
|
|