Image Viewer CP ActiveX Control

PDFEditCrop

 

Crop specific part of PDF file without displaying or decoding any of the images.
 

Public Function PDFEditCrop( _
   ByVal strSourceFile  As String, _
   ByVal iLeft As Integer, _
   ByVal iTop As Integer, _
   ByVal iRight As Integer, _
   ByVal iBottom As Integer, _
   ByVal strOutputFile As String)
 As Bool

 

Parameter

strSourceFile
The source of PDF File.

iLeft ( unit is Centimeters. 10000 = 1 CM)
Specifies the logical left-coordinate of the starting point of the crop rectangle.

iTop
Specifies the logical top-coordinate of the starting point of the crop rectangle.

iRight
Specifies the right coordinate of the crop rectangle.

iBottom
Specifies the bottom coordinate of the crop rectangle.

strOuputFile
The Output PDF File.


Return Value
Return true if successful, otherwise return false.


Example

   

Visual Basic Syntax
ImageViewer1.PDFEditCrop "c:\sourcepdf.pdf", 0, 0,320,240, "c:\output.pdf"