We are trying replace our “QuickPDF” component with “Aspose.PDF” and we have an issue with the way Aspose.PDF loads incorrect values for Aspose.Pdf.PageInfo object’s Height/Width/Orientation properties. I am guessing even margins are also loaded incorrectly here.
In order to replicate, just load the pdf file attached here.
CoverPage-1-1414835.pdf (31.5 KB) .
Below is the code snippet we used.
Document pdf = new Document(pdfFilePath);
Refer attached screenshots below which show incorrect values that we get for Height/Width/Orientation/Margin properties in Debug mode both at pdf.PageInfo and pdf.Pages.PageInfo level.
Refer the screenshots below.
We believe below are the correct values which you can also verify by just going to pdf document properties window.
Height: 8.5 inch (8.5*72 = 612 points)
Width: 11 inch (11*72 = 792 points)
Please review and give us a solution as soon as you can.
We are using 22.9.0 version.