Get Page Size/Dimensions inside PDF document using Aspose.PDF in VB

Hi, Support:

Is it a bug for pdf.dll v20.7? that’s to say:
A pic with size(5840x3780) is converted to pdf, then aspose.pdf.dll v20.7 open it, but the Size W and H is not the right ones? Why?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Pos = InStrRev(System.Windows.Forms.Application.ExecutablePath, “”)
Dim AppPath = Microsoft.VisualBasic.Left(System.Windows.Forms.Application.ExecutablePath, Pos - 1)
Dim Pdf2 As Aspose.Pdf.Document = New Aspose.Pdf.Document(AppPath & “\Test.pdf”)
Dim W as integer = Pdf2.Pages(1).Rect.Width
end sub
The value of W should be 5480, whereas it’s 1315. why?
Test.pdf (1.2 MB)


We would like to share with you that Aspose.PDF mimics the behavior of Adobe Reader and if you check your PDF by opening it in Adobe Reader, you will notice that the value is 18.26in which is (18.26 x 72) 1314.72 points. So, the API is showing the value correctly.pagesize.png (18.1 KB)