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 Integer

 

Parameter

strSourceFile
The source of PDF File.

iWidth
Return the width of PDF File.

iHeight
Return the height of PDF File.


No Return Value



Example

   

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