I am creating a merge document from 1 or more existing .pdf files to use to stamp the header and footer information of a final document. This currently works fine.
Recently, one of the intermediated document's creators began adding comments as a means of revising the document. Now, when I merge, those comments are not visible on my final merged document.
I have tried using the following:
MergeDocument document = new MergeDocument();
var pdfDocumentWithAllFields = new PdfDocument(sInputFile);
MergeDocument doc = new MergeDocument(pdfDocumentWithAllFields, MergeOptions.All);
byte[] pdfData = doc.Draw();
PdfDocument pdfDocWithNoFields = new PdfDocument(pdfData);
importPDF(pdfDocumentWithAllFields, pdfDocWithNoFields, document);
stampPage(document, 0);
stampFooter00(document, 0);
stampFooter0(document, 0);
stampHeader0(document, 0);
stampId(document, 0);
for (int x = 1; x < document.Pages.Count; x++)
{
stampPage(document, x);
stampFooter(document, x);
stampHeader(document, x);
stampId(document, x);
}
//Mark doc as resized
CustomPropertyList list = document.CustomProperties;
list.Add("isResized", "true");
document.Draw(sOutputFile);
Since the number of pages and comments in the documents vary, am I able to have some kind of flag that says "make comments visible" or do I have to find each comment individually?
Thank you for your time and consideration.