|
Add the Text Watermark and rotate the text to specific page of existing PDF File without displaying or decoding any of the images..
Public Function PDFEditAddWatermarkText2( _ ByVal strSourceFile As String, _ ByVal strOutputFile As String, _ ByVal strText As String, _ ByVal iStartPage As Integer, _ ByVal iEndPage As Integer, _ ByVal iFontSize As Integer, _ ByVal strFontName As String, _ ByVal bFontBold As Bool, _ ByVal bFontItalic As Bool, _ ByVal iRotation As Integer, _ ByVal iX As Integer, _ ByVal iY As Integer, _ ByVal iTextRed As Integer, _ ByVal iTextGreen As Integer, _ ByVal iTextBlue As Integer ) As Bool
|
Parameter
strSourceFile The source of PDF File.
strOutputFile The output of PDF File.
strText The string of text.
iStartPage Specifies start of page number. The first page is 0. If you want to apply to all pages, set iStartPage and iEndPage =-1.
iEndPage Specifies end of page number.
iFontSize Specifies the font size.
strFontName Specifies the font name.
bFontBold true - bold, false - no bold.
bFontItalic true - italic, false - no italic.
iRotation the value of degree. 0 - 360.
The iLeft, iTop unit is Centimeters. 10000 = 1 CM. iX Specifies the x-coordinate of the upper-left corner of the text to draw.
iY Specifies the x-coordinate of the upper-top corner of the text to draw.
iTextRed Specifies the color value with red component of text (0-255).
iTextGreen Specifies the color value with green component of text (0-255).
iTextBlue Specifies the color value with blue component of text (0-255).
Return Value Return true if successful, otherwise return false.
Example
|
Visual Basic Syntax ImageViewer1.PDFEditAddWatermarkText2 "c:\sourcepdf.pdf", 1, "c:\output.pdf", "This is my sample text" -1, -1, 20 ,"Arial", false, false,0,10000,50000, 255, 0, 0
|
|
|