Scanner ActiveX Control

PDFDrawLine

 

Draw line on the specific page of PDF file.

Public Function PDFDrawLine( _
   ByVal iPageNo As String, _
   ByVal iDestX1 As Integer, _
   ByVal iDestY1 As Integer, _
   ByVal iDestX2 As Integer, _
   ByVal iDestY2 As Integer, _
   ByVal iBorderWidth As Integer, _
   ByVal iRedColor As Integer, _
   ByVal iGreenColor As Integer, _
   ByVal iBlueColor As Integer
) As bool

 

Parameter

iPageNo
 specifies page no. for draw line. The first page is zero index.

The iDestX1, iDestY1, iDestX2, iDestY2 unit is Centimeters. 10000 = 1 CM.
iDestX1
 The x-coordinate of the first point.

iDestY1
 The y-coordinate of the first point.

iDestX2
 The x-coordinate of the second point.

iDestY2
 The y-coordinate of the second point.


Return Value

Return true if successful.
Return false if failed.


Example

   

Visual Basic Syntax
Scanner1.PDFInitAnnotation
Scanner1.PDFDrawLine 0, 10000, 10000, 50000, 50000, 1000, 255, 0, 255
Scanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1