Document pdfDoc = new Document();
PdfFileEditor pdfFileEditor = new PdfFileEditor();
//pdfDoc.OptimizeResources(GetAsposeOptimizationOption());
int tempPagecnt = pdfDocTemp.Pages.Count;
int[] cnt = new int[tempPagecnt];
for (int tempPageCount = 1; tempPageCount <= tempPagecnt; tempPageCount++)
{
pdfDoc.Pages.Add(pdfDocTemp.Pages[tempPageCount]);
cnt[tempPageCount - 1] = tempPageCount;
}
// Resize contents of resultant PDF
pdfFileEditor.ResizeContents(pdfDoc, cnt, PdfFileEditor.ContentsResizeParameters.PageResize(Aspose.Pdf.PageSize.PageLetter.Width, Aspose.Pdf.PageSize.PageLetter.Height));
I resized a scanned pdf file, but the width and height is saved oppositely.
It looks like a bug.
How can I do for this?
If there is no method, I want to know a property can check this pdf file is scanned file or not.