I have a PDF generated by a third party with incorrect dimensions. They need to be both wider and taller. Using the code below to transform into A4, the page becomes the correct dimensions, but the content is placed in the bottom left corner. Is it possible to decide how the previous content is handled on the crop-up? I would like to have it left side but centered vertically.
pdf.Document pdfDocument = new pdf.Document(path);
PageCollection pageCollection = pdfDocument.Pages;
Page pdfPage = pageCollection[1];
pdfPage.SetPageSize(597.6, 842.4);