I have a PdfDocument (InputDocument) which I opened with PdfReader.Open, I want to take a certain page from this document and apply it to some other PdfDocument (OutputDocument).
The problem that the images on OutputDocument gets what looks like their brightness increased and doesn't look like the original InputDocument.
Can I copy the settings from InputDocument and apply it to OutputDocument or can I somehow make sure the images look the same?
Code:
// Create and read a input document
// targetFileInfo is a FileInfo object
PdfDocument InputDocument = PdfReader.Open(targetFileInfo.FullName, PdfDocumentOpenMode.Modify);
PdfDocument OutputDocument = new PdfDocument();
// Get page 0 from InputDocument and save it
OutputDocument.Pages.Add(InputDocument.Pages[0]);
OutputDocument.Save(@"C:\TestPdf.pdf");
I added two images which shows the difference between the two.