We are trying to place stamps on top right of pdfs generated using code below -
Document pdfDocument = new Document(mergedPdf);
PdfFileStamp fileStamp = new PdfFileStamp(pdfDocument);
FileStream imageStream = new FileStream(imgPath, FileMode.Open);
Aspose.Pdf.Facades.Stamp stamp = new Aspose.Pdf.Facades.Stamp();
stamp.BindImage(imageStream);
stamp.SetOrigin(430, 680);
stamp.IsBackground = false;
fileStamp.AddStamp(stamp);
imageStream.Close();
pdfDocument.Save(mergedPdf);
Requirement : We want the stamp to be in the foreground and we want to be able to see the text in the background.
Our stamp image is png and pdf background is white , as a result we cant see the text in the background .
Hi attaching the pdfs (both with and without stamp)… I want the stamp to be on top right and infront of the text (in a translucent fashion), so that the text under the stamp is still visible.courtstamp.png (24.6 KB)
Please see attached the snapshot of the stamp from your output file. It hides the text below it. This isn’t expected. We want the text to be visible and stamp to be on top of it , kindof like what happens in physically stamped pages.
We have further extend the functionality for Sample.png (228.1 KB)
printing stamp on scanned pdf(top right). but stamp got cut (Y-axis of the stamp got affected) in between two pages.
i refer the thread of aspose and found one old link [Aspose Old Link](https://forum.aspose.com/t/problem-with-stamping/133401). is this link make any sense or this issue is fixed now. i am using Aspose.pdf version[17.3.0.0]
It is quite an old thread. Kindly send the complete details of the scenario, including source PDF and code. We will test your extended scenario in our environment, and share our findings with you. Your response is awaited.
Code which we are using for adding stamp on uploaded file. this code is working fine for normal PDF but for scanned PDF stamp got corrupted between 2 pages.
**C# Code**
Document pdfDocument = new Document(mergedPdf);
PdfFileStamp fileStamp = new PdfFileStamp(pdfDocument);
FileStream imageStream = new FileStream(imgPath, FileMode.Open);
Aspose.Pdf.Facades.Stamp stamp = new Aspose.Pdf.Facades.Stamp();
stamp.BindImage(imageStream);
stamp.SetOrigin(480, 771);
stamp.SetImageSize(50.0f, 50.0f);
stamp.IsBackground = false;
fileStamp.AddStamp(stamp);
imageStream.Close();
pdfDocument.Save(mergedPdf);
We managed to replicate the problem of displaced image in our environment. It has been logged under the ticket ID PDFNET-44578 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. Furthermore, we recommend our clients share all resources of the scenario. Please send us your source image file.
Thank you for sharing an image. We have logged this image under the same ticket ID PDFNET-44578, and will let you know once a significant progress has been made in this regard.
I am afraid that no significant progress has been made against resolution of your issue because of other pending issues in the queue. Since your issue has been reported and logged under free support model, it will be investigated and resolved on first come first serve basis. We will surely let you know in case we make some progress towards its resolution. Please spare us little time.
I regretfully share that the issue resolution may take months and even long due to long queue of pending issues which were logged prior to your issue. In case your issue is a blocker and needs to be resolved on urgent basis, you can please check paid support option where issues have high priority and are resolved on urgent basis.