@ducaisoft
Please use following code snippet to change the Page Background Color:
foreach (var page in document.Pages)
{
page.Background = Color.White;
}
You can find text from PDF using TextFragmentAbsorber and change color of found TextFragments as following:
Document pdfDocument = new Document(dataDir + "ExtractTextPage.pdf");
TextFragmentAbsorber tfa = new TextFragmentAbsorber();
pdfDocument.Pages.Accept(tfa);
TextFragmentCollection tfc = tfa.TextFragments;
foreach (TextFragment tf in tfc)
{
tf.TextState.ForegroundColor = Aspose.Pdf.Color.Black;
}
In case you face any issue, please let us know.