Image Viewer CP ActiveX Control

PDFEditGetFileInfo

 

Return the width and height value of PDF file. It is useful before you use PDFEditCrop()
 

Public Function PDFEditGetFileInfo( _
   ByVal strSourceFile  As String, _
   ByVal iWidth As Integer,_
   ByVal iHeight As Integer
)
 As Bool

 

Parameter

strSourceFile
The source of PDF File.

iWidth
Return the width of PDF File.

iHeight
Return the height of PDF File.


Return Value
Return true if successful, otherwise return false.


Example

   

Visual Basic Syntax
Dim iwidth As Long
Dim iheight As Long
ImageViewer1.PDFEditGetFileInfo "c:\sourcepdf.pdf", iwidth,iheight