Combining PDF Files Into One

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v12)  /  Combining PDF Files Into One

DynamicPDF CoreSuite for .NET (v12) Forum

 May 29 2025 11:45 AM
I'm creating a 2 page PDF document using two separate PDF documents.

MergeDocument document = new MergeDocument();
PdfDocument pdfdoc = new PdfDocument(@"Page1.pdf");
document.Append(pdfdoc);

ImportedPage 2ndPDFPage = new ImportedPage(@"Page2.pdf", 1);
document.Pages.Add(2ndPDFPage);
document.Draw(@"FinalPDF.pdf");


Some of the fields in both pages have the same field name. The final PDF document renames the duplicate fields in the 2nd page to include
a parentheses(2). So for example,

Page 1  has field named      description
Page 2  (which has a field named "description" also ) will result in a field being  renamed  description(2)
in the final PDF file.

Is there a way to prevent that other then making sure there are no similar field names in both Pages?
 May 29 2025 12:23 PM
According to Microsoft Copilot....

"It looks like ceTe.DynamicPDF automatically renames duplicate field names when merging documents. Unfortunately, there isn't a built-in way to prevent this behavior other than ensuring unique field names across pages."

All times are US Eastern Standard time. The time now is 2:03 AM.