Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for .NET (v8.x)  /  2 A4 in A3

Forum Thread - 2 A4 in A3

 Dec 13 2017 8:11 AM
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

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
 Dec 13 2017 12:18 PM
Posted by a ceTe Software moderator

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);

            //Importing first page of the existing PDF
            ImportedPageArea impArea1 = new ImportedPageArea(@"Path for the PDF", 1, 0, 0);
            float wd = impArea1.Width;

            //Importing second page of the existing PDF
            ImportedPageArea impArea2 = new ImportedPageArea(@"Path for the PDF", 2, wd, 0);


ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 7:36 AM.