Stamping Logos on PDF in EPS, PDF, or SVG Formats

Hello,

I am trying to stamp a logo on 1st page of PDF file. This seems to be possible using PNG and JPG for the logo file.

However, I need to stamp this logo while it is in SVG, PDF, EPS format to preserve its quality.

Is this possible via ASPOSE.pdf? Can you share code snippet with me please?

Thanks,
Mohamed

@Mohamed.Hakeem

Yes, you can achieve your requirement using Aspose.PDF. Please read the following article.
Add Image stamps in PDF using C#

If you face any issue, please ZIP and attach your input PDF along with image file here for testing. We will investigate the issue and provide you more information on it.

Thanks Tahir!

We are already using the same code and it is working well with JPG and PNG but it gives “Out of Memory” error in the second line when using SVG image

ImageStamp imageStamp = new ImageStamp(imagePath);

attached the PDF file and the SVGimage used

Please let me know your findings.Files.zip (5.3 MB)

@Mohamed.Hakeem

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET- 51856. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.