Dear Team,
In one of our requirements we need to change the content & background color of header and footer in the PDF document. The input PDFs are designed in “Adobe InDesign” tool.
We asked the design team to create the header and footer in PDF as tables/shapes. But somehow we are unable change the background color of the shapes/tables in the PDF using Aspose.PDF.
Below are version, sample PDF (created by using “Adobe InDesgin” tool) & Code.
-
Aspose.PDF - Version 23.6.0 (C#)
-
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(baseDir + “\InDesign.pdf”);
Aspose.Pdf.Text.TableAbsorber absorber = new Aspose.Pdf.Text.TableAbsorber();
absorber.Visit(doc.Pages[0]);
var tableRef = absorber.TableList[0];
tableRef.BackgroundColor = Aspose.Pdf.Color.Blue; // unable to identity Background color property -
InDesign.pdf (11.5 KB)
Please advise us on how to modify the background color of the PDF’s table/shape