Water mark not added in output file

Hi

We are using Aspose.Total Api for .net,i use folloeing code for add image in pdf file.
Aspose.Pdf.dll version is 10.2.0.0 .net 4.0 in asp.net


Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Open document
Dim pdfLicense As Aspose.Pdf.License = New Aspose.Pdf.License()
pdfLicense.SetLicense(ConfigurationManager.AppSettings(“AsposeLic”))
Dim pdfDocument As New Document(“D:\ddd\ddd.pdf”)

'Create image stamp
Dim imageStamp As New ImageStamp(“C:\inetpub\wwwroot\OCR\images\img_OCR3Logo.png”)
imageStamp.Background = True
imageStamp.XIndent = 100
imageStamp.YIndent = 100
'imageStamp.Height = 300
'imageStamp.Width = 300
imageStamp.Rotate = Rotation.on180
’ imageStamp.Opacity = 0.5
'Add stamp to particular page
pdfDocument.Pages(1).AddStamp(imageStamp)

'Save output document
pdfDocument.Save(“D:\ddd\Logo.pdf”)
End Sub

In above code image not added in output file,image path correct,pdf file path also correct,just now i ask online support,he ask to remove Opacity ,but still same.

Pls reply asap

Regards
Aravind

Hi Sorry,it work fine,i am specify for 1st page only.


Regards
Aravind

Hi Aravind,


Thanks for your inquiry. It is good to know that you have manged to resolve the issue at your own.

Please keep using our API and feel free to contact us for any query or concern, we will be more than happy to extend our support.

Best Regards,