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

Free Support Forum - aspose.com

PDF Page resize

Can I re size PDF from Legal to letter without loosing quality and content?How?

Hi Pramod,

Thanks for contacting support.

I am pleased to share that Aspose.Pdf for .NET supports the feature to set page dimensions for resultant document. For further details, please visit Update Page Dimensions

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 following code snippet (once the page size is changed to letter, you can set zoom factor for page).


instantiate PageEditor instance

Aspose.Pdf.Facades.PdfPageEditor editor = new PdfPageEditor();

// bind source PDF file


// set zoom factor as 50% zoom

editor.Zoom = 0.5f;

// save updated document

editor.Save(<span style=“font-size:9.5pt;
line-height:115%;font-family:Consolas;mso-fareast-font-family:“Malgun Gothic”;
dimensions updated”);

It is working fine for few PDFs but it is corrupting some PDF(Error attached)

Hi Pramod,

Can you please share the resource/input PDF and code snippet so that we can test the scenario at our end. We apologize for this inconvenience.