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

Free Support Forum - aspose.com

Aspose.Pdf.ImageStamp does not contain a definition for Quality

Hi,

when I try to test sample code of Aspose given in Adding Image Stamp in PDF File - Control Image Quality when Adding a Stamp:


Document doc = new Document(“PdfWithText.pdf”);
ImageStamp stamp = new ImageStamp(“butterfly.jpg”);
stamp.Quality = 10;
doc.Pages[1].AddStamp(stamp);
doc.Save(“out.pdf”);



I got an error: ‘Aspose.Pdf.ImageStamp’ does not contain a definition for ‘Quality’ and no extension method ‘Quality’ accepting a first argument of type ‘Aspose.Pdf.ImageStamp’ could be found (are you missing a using directive or an assembly reference?)


What should I add to the code to resolve this problem?

I resolved it, I apologize for your inconvenience.


I tested this code with library version Aspose.Pdf_9.0.0. I read on your forum that a quality property was added for Image stamp as of Aspose.Pdf for .NET 9.1.0.

Hi Patryk,


Thank you very much for your feedback. It is good to know that you have manged to resolve the issue.

Please feel free to contact us for any further assistance, we will be more than happy to extend our support.

Best Regards,