|   | Add the Text Watermark with alignment and rotate the text to specific page of existing PDF File without displaying or decoding any of the images.
 
| Public Function PDFEditAddWatermarkText1( _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 iHorizAlignment As Integer, _
 ByVal iVertAlignment 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.
 
 iHorizAlignment
 Specifies the horizontal alignment of the text line.
 0 - Left alignment
 1 - Center alignment
 2 - Right alignment
 
 iVertAlignment
 Specifies the vertical alignment of the text line.
 0 - Top alignment
 1 - Center alignment
 2 - Bottom alignment
 
 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 SyntaxImageViewer1.PDFEditAddWatermarkText1 "c:\sourcepdf.pdf", 1, "c:\output.pdf", "This is my sample text" -1, -1, 20 ,"Arial", false, false,0,1,1, 255, 0, 0
 |  |  |