Free Support Forum - aspose.com

Two PDFs with different sizes but same in Aspose

Dear all,

I have two PDF files that are not at same dimensions in Acrobat Reader (PDFs attached with screenshot).

  • PDF 1 : A4 TEST.pdf is 210x297 mm
  • PDF 2 : A4-not-A4.pdf is 215,9x279,4 mm

However using Aspose.PDF both files have same PageInfo.width and height (same as Aspose.Pdf.PageSize.A4.Width and Aspose.Pdf.PageSize.A4.Height)

Did I miss something ? How can I have the real dimensions of the PDF #2 ?
Thanks in advance,

A4 TEST.pdf (80.7 KB)
A4-not-A4-properties.png (37.3 KB)
A4 TEST-properties.png (30.2 KB)
A4-not-A4.pdf (136.0 KB)

@olivier.vermander

Thank you for contacting support.

We have worked with the data shared by you and have been able to notice the problem with Height and Width properties of the page. A ticket with ID PDFNET-45596 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.