I’d like to set the background color for a PdfPageStamp to white. Using Aspose.PDF .NET 11.6.0.
var fragmentDoc = new Document(path) {Background = Color.White}; fragmentDoc.Flatten(); fragmentDoc.Optimize(); Page fragmentPage = fragmentDoc.Pages[1]; fragmentPage.Background = Color.White; fragmentDoc.ProcessParagraphs(); var stamp = new PdfPageStamp(fragmentPage) { Width = BlockWidth, Height = BlockHeight, Background = false, PdfPage = {Background = Color.White} }; return stamp;
Setting the color on the doc or the page doesn’t take effect. Even if I call process paragraphs.