We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Page size issue

Hi Team,

when I am trying to concatenate two pdf, in resultant pdf I am getting different page size of both document…I want to concatenate with same page size …so that resultant document would seem an even document

here are all pdf files…Document.zip (2.0 MB)


You may set the size of page with updated dimensions and then concatenate the PDF files to have exactly same pages. Below is the code snippet and generated PDF file for your kind reference.

        // Open document
        Document pdfDocument = new Document(dataDir + "Data_disclaimer.pdf");

        // Get particular page
        Aspose.Pdf.Page pdfPage = pdfDocument.Pages[1];

        // Set the page size as in Aspose.Pdf, 1 inch = 72 points
        pdfPage.SetPageSize(612, 792);

        // Save the updated document
        pdfDocument.Save(dataDir + "UpdateDimensions_out.pdf");


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