Bonjour, est ce qu'il est possible de créer une page pdf A3 en prenant deux page A4 provenant de deux autre pdf ? il faudrait pouvoir faire une rotation sur les deux A4 quand on l'insere dans le A3
Merci
Hello, is it possible to create a A3 pdf page by taking two A4 pages from two other pdf? it should be able to rotate on both A4 when inserted in the A3
Thank you
2 A4 in A3
Re: 2 A4 in A3
Support · Dec 13, 2017Hello,
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.