Scanner ActiveX Control

PDFDrawFillRectangle

 

Draw filled rectangle on the specific page of PDF file.

Public Function PDFDrawFillRectangle( _
   ByVal iPageNo As String, _
   ByVal iLeft As Integer, _
   ByVal iTop As Integer, _
   ByVal iWidth As Integer, _
   ByVal iHeight 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 filled rectangle. The first page is zero index.

The iLeft, iTop, iWidth, iHeight, iBorderWidth unit is Centimeters. 10000 = 1 CM.
iLeft
 specifies the x-coordinate of the upper-left corner of the rectangle to be filled.

iTop
 specifies the y-coordinate of the upper-left corner of the rectangle to be filled.

iWidth
 specifies the width of the rectangle to be filled.

iHeight
 specifies the height of the rectangle to be filled.

iBorderWidth
 specifies the width of the border.

iRedColor
 The color value with red component of filled rectangle color (0-255).

iGreenColor
 The color value with green component of filled rectangle color (0-255).

iBlueColor
 The color value with blue component of filled rectangle color (0-255).

Return Value

Return true if successful.
Return false if failed.


Example

   

Visual Basic Syntax
Scanner1.PDFInitAnnotation
Scanner1.PDFDrawFillRectangle 0, 10000, 20000, 80000, 40000, 1000, 0, 255, 0
Scanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1