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");
}