Aspect ratio of FSPDFViewCtrl

69 Views Asked by At

Do you know a way to fetch the aspect ratio of a PDF loaded into FSPDFViewCtrl? I could not find any appropriate methods or properties.

1

There are 1 best solutions below

0
On

Since aspect ratios can differ from page to page, it's only possible to fetch the ratio of a specific page by dividing its width by its height:

let ratio = page.getWidth() / page.getHeight()