Hi
I wanted to add Horizontal Line ( footer) to the Existing PDF document
I am trying the following code below to get that..but the Line is not coming properly. Please suggest me how to add a line to the existing PDF document.
Dim textStamp1 As New Aspose.Pdf.TextStamp("___________________________________________________________________________________")
'set properties of the stamp
textStamp1.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Left
textStamp1.VerticalAlignment = Aspose.Pdf.VerticalAlignment.Bottom
textStamp1.TextState.FontStyle = Aspose.Pdf.Text.FontStyles.Bold
textStamp1.BottomMargin = 30
Dim textStamp2 As New Aspose.Pdf.TextStamp(" Classification: Test")
'set properties of the stamp
textStamp2.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Left
textStamp2.VerticalAlignment = Aspose.Pdf.VerticalAlignment.Bottom
textStamp2.TextState.FontStyle = Aspose.Pdf.Text.FontStyles.Bold
textStamp2.TextState.FontSize = 10
textStamp2.TextState.Font = Aspose.Pdf.Text.FontRepository.FindFont("Times New Roman")
textStamp2.BottomMargin = 15
'create page number stamp
Dim pageNumberStamp As New Aspose.Pdf.PageNumberStamp()
'whether the stamp is background
pageNumberStamp.Background = False
pageNumberStamp.TextState.FontSize = 15
pageNumberStamp.TextState.FontStyle = Aspose.Pdf.Text.FontStyles.Bold
pageNumberStamp.Format = "Page - # "
pageNumberStamp.BottomMargin = 15
pageNumberStamp.HorizontalAlignment = HorizontalAlignment.Center
pageNumberStamp.StartingNumber = 1
for Each pg As Aspose.Pdf.Page In finalPDF.Pages
pg.AddStamp(pageNumberStamp)
pg.AddStamp(textStamp1)
pg.AddStamp(textStamp2)
Next