We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Stamp is not generated

Hi,

I am using aspose pdf to stamp pdf file.

I have one problem. i am using following code and i can not generate stamp.

I have attached pdf file and code.

I am trying to generate stamp at second page. it works for if i get stamp origin (1000,25). but when u gave it at (1500,25). it does not work.

Can you let me know how can i solve it?

Dim aStamp As Stamp = New Stamp()
aStamp.BindLogo(New FormattedText(“THIS IS MY TEST DATA FOR VERTICAL TEST STAMP”, System.Drawing.Color.Red, “Castellar”, EncodingType.Winansi, True, 10))
aStamp.IsBackground = False
aStamp.Rotation = 90
aStamp.Opacity = 100
aStamp.Pages = New Integer() {2}
aStamp.SetOrigin(1500, 25)

Dim stamper As PdfFileStamp = New PdfFileStamp(open_path, save_path)
stamper.AddStamp(aStamp)
stamper.Close()

Hi Saumil,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template file and sample code.

I checked your issue with the latest version of Aspose.Pdf for .NET v6.8 and it works fine. Please download and try the latest version and let us know if you still face any issue. I have attached the resultant file for reference.

Thank You & Best Regards,