Hi Pramod,
Hi Pramod,
Adding more to my previous comments, when updating page dimensions, there are chances that some page contents are trimmed due to change in page size. However you may consider setting zoom factor for page contents using the following code snippet (once the page size is changed to letter, you can set zoom factor for page).
C#
// instantiate PageEditor instance
Aspose.Pdf.Facades.PdfPageEditor editor = new PdfPageEditor();
// bind source PDF file
editor.BindPdf("");
// set zoom factor as 50% zoom
editor.Zoom = 0.5f;
// save updated document
editor.Save("page dimensions updated");
It is working fine for few PDFs but it is corrupting some PDF(Error attached)
Hi Pramod,