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

Free Support Forum - aspose.com

Resize a PDF document does not resize content

sample.zip (117.9 KB)
Hello,

I have Aspose.PDF v21.10.1

I am using below code to resize PDF document.
But the final document does not resize the image correctly.
The image is cut off.

I have attached the docs.
p1.pdf = src doc
final_6x9.pdf = the final output document

// source document
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(@“c:\p1.pdf”);

using (Aspose.Pdf.Facades.PdfPageEditor pEdit = new Aspose.Pdf.Facades.PdfPageEditor())
{
pEdit.BindPdf(pdfDoc);

pEdit.PageSize = new Aspose.Pdf.PageSize(432, 648);

pEdit.Save(@"c:\temp\final_6x9.pdf");

}

@tony.woods.bell.ca

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET-51172. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hello,

is there any update on this issue?

if not, can you provide a work around?

Thank you

@tony.woods.bell.ca

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.