Import pdf contents to a new pdf

hi
i want create a new pdf file with a large page (500X400 millimeter) and then import contents from another pdf files.
for example i have 20 pdf files and each file has 1 page. dimension of each page is 100X100 millimeter. so i should create a new pdf with one page. new pdf page size is 500X400. then import contents of each 20 files to the new pdf and layouting contents as matrix {5X4}.
thank you for your help

@mr.bank

Thank you for contacting support.

You may set height and width of a page with PageInfo Class. The basic measuring unit in Aspose.PDF for .NET is point, where 1 inch = 72 points and 1 cm = 1/2.54 inch = 0.3937 inch = 28.3 points.

Document pdf = new Document();
Page pg = pdf.Pages.Add();
pg.PageInfo.Width = x;
pg.PageInfo.Height = y;

Once the page size is set, you can concatenate twenty PDF files into single PDF document containing twenty pages as explained in Concatenate PDF Files and then you can use MakeNUp (“a.pdf”, “b.pdf”, x, y); method to achieve your requirements.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.