espresso3389/flutter_pdf_render

Get current page size synchronously

Opened this issue · 4 comments

Is there a way to get the current pdf page size synchronously?
As getPage recently became async, it can't be used in synchronous methods anymore. Is there another way?

try to use controller.currentPageNumber

try to use controller.currentPageNumber

And how would I get the page size from there?

controller.pageCount

controller.pageCount

What I meant ist size of the current page as in width and height.