Aspect ratio of FSPDFViewCtrl

42 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 answers

0
Tamás Sengel 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()