0

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.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

0

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()
Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223