Merge multiple pdf documents

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Merge multiple pdf documents

DynamicPDF CoreSuite for .NET (v11) Forum

 Mar 20 2021 1:17 PM
Hi,
I have multiple pdf documents and each of those documents can have fields and images. I can fill individual pdfs by using Mergedocumets. My question is how can I merge these MergeDocuments into one?
 Mar 23 2021 1:38 PM
Posted by a ceTe Software moderator
Hello,

You can achieve your requirement by merging all PDFs and then fill in the form fields using the full form field name. Here is a code sample:

            MergeDocument finalDocument = new MergeDocument();
           
            PdfDocument pdf = new PdfDocument(@"C:\FromD\temporary\fw9AcroForm_13.pdf");
            finalDocument.Append(pdf);
            //Append another document.
            PdfDocument pdf1 = new PdfDocument(@"C:\FromD\temporary\AllPageElements.pdf");
            finalDocument.Append(pdf1);
           
            //Once you merge all PDFs then fill fields in the PDF using full form field names.
            finalDocument.Form.Fields["full form field name"].Value = "Value to be filled";
          
            finalDocument.Draw(@"Output PDF file path");

Thanks,
ceTe Software Support Team
 Aug 02 2024 6:09 AM
Perform your skills to find the world's best tool for merging multiple PDF documents, this is the current and most advanced software, Try the Pcinfotools PDF Split and Merge tool, it can quickly combine multiple PDF files into a single PDF document and offers the option to add files or folders to combine multiple PDF files into one, It divides and combines PDF files while preserving formatting and attachments, and it preserves all source file attachments in the output PDF file. It also works with all Microsoft Windows OS Editions. The format, layout, and structure of PDF files are preserved by this software, which ensures that users won't lose any of their original properties, The software encrypts and protects your important data. A separate folder exists for all features, including images, links, heading tags, etc., where you can discover all the attachments of multiple PDF files.

All times are US Eastern Standard time. The time now is 7:08 PM.