Bakckground not display on writing on an existing PDF


i’m trying to write in an existing PDF with a background but it doesn’t work in two of my pdf and i don’t know why, i put my merge PDF in attachment , it’s the 2 and 3 pages. Thanks for reply.

Hi Matthieu,

Thanks for contacting support.

I have tested the scenario using Aspose.Pdf for .NET 9.7.0 where I have used the following code snippet and as per my observations, the background color is properly being added. Can you please try using the latest release and in case the problem still persists, please share the code snippet so that we can again test the scenario at our end. We are sorry for your inconvenience.


load source PDF file

Document doc = new Document("c:/pdftest/testMAD.pdf");

// add background color for PDF

doc.Background = Aspose.Pdf.Color.Pink;

// save updated file


Okay, have you got an evaluation version for Aspose Pdf .NET 9.7.0 so i can test please ?

Hi Matthieu,

Please visit the following link to download Aspose.Pdf for .NET 9.7.0 and in order to test the API without any limitations, you may also consider requesting a 30 days temporary license. For further details, please visit Get a temporary license