Posted by a ceTe Software moderator
Hello,
You can add two A4 page contents to one A3 page using ImportedPageArea class of DynamicPDF Merger for .NET product. You will need to create a A3 page and add to the Document by specifying the orientation. Then import the page contents from existing PDF using ImportedPageArea by specifying the file path and add it to the Page object. You can refer to the documentation on importing page data
here. Also below is the code sample for importing page contents from existing PDF and adding to the new page.
Document document = new Document();
Page page = new Page(PageSize.A3, PageOrientation.Landscape, 0);
document.Pages.Add(page);
//Importing first page of the existing PDF
ImportedPageArea impArea1 = new ImportedPageArea(@"Path for the PDF", 1, 0, 0);
page.Elements.Add(impArea1);
float wd = impArea1.Width;
//Importing second page of the existing PDF
ImportedPageArea impArea2 = new ImportedPageArea(@"Path for the PDF", 2, wd, 0);
page.Elements.Add(impArea2);
document.Draw(@"C:\temp\FinalOutput.pdf");
Thanks,
ceTe Software Support Team.