Free Support Forum - aspose.com

Acrobat reader point vs pdf point

Hi,


One of my user have pointed out that the points system used in pdf documents do not match the point system used by Acrobat Reason

1. What 's the reason?
2. What’s the conversion rate between the system so I can show both system?

I was to recreate the difference via code

using the same PDF file:
1.
using (var pdfDoc = new Document(fileStream))
{
foreach (Page page in pdfDoc.Page)
{
page.PageInfo.Width; ====> 595!
page.PageInfo.Height; ====> 842!
}
}
2.
using (var pdfFileInfo = new PdfFileInfo(fileStream))
{
for(var i=1; i<=pdfFileInfo.NumberOfPages;i++)
{
pdfFileInfo.GetPageWidth(i); ====>612!
pdfFileInfo.GetPageHeight(i); ====>792!
}
}

please explain the difference…

Hi Dvir,


Thanks for contacting support.

I have tested the scenario using one of my sample PDF files and as per my observations, Page.PageInfo and PdfFileInfo instances are returning same Width and Height values. Furthermore, the page height and width properties use points as the basic unit, where 1 inch = 72 points and 1 cm = 1/2.54 inch = 0.3937 inch = 28.3 points.

I have attached the file I was testing when I noticed the discrepancies


Hi Dvir,


Thanks for sharing the resource file.

I have tested the scenario and have observed that different page dimensions are being returned when using Document and PdfFileInfo instances. For
the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38870. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We apologize for your inconvenience.