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).

[C#]

//
instantiate PageEditor instance
<o:p></o:p>

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(<span style=“font-size:9.5pt;
line-height:115%;font-family:Consolas;mso-fareast-font-family:“Malgun Gothic”;
mso-fareast-theme-font:minor-fareast;color:#A31515;background:white;mso-highlight:
white;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA”>“page
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.