Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Get current page size synchronously #124

Open
jjochen opened this issue Aug 28, 2023 · 4 comments
Open

Get current page size synchronously #124

jjochen opened this issue Aug 28, 2023 · 4 comments

Comments

@jjochen
Copy link

jjochen commented Aug 28, 2023

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?

@jjochen jjochen changed the title Get current page size synchronized Get current page size synchronously Aug 28, 2023
@anggaaryas
Copy link

try to use controller.currentPageNumber

@jjochen
Copy link
Author

jjochen commented Nov 27, 2023

try to use controller.currentPageNumber

And how would I get the page size from there?

@anggaaryas
Copy link

controller.pageCount

@jjochen
Copy link
Author

jjochen commented Nov 27, 2023

controller.pageCount

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants