Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture the current page's width in page change evt ? #299

Open
gn00979905 opened this issue Apr 19, 2021 · 1 comment
Open

Capture the current page's width in page change evt ? #299

gn00979905 opened this issue Apr 19, 2021 · 1 comment

Comments

@gn00979905
Copy link

Hi everyone, I would like to know how to capture the current page's width in page change event?
For some page will be very big size of paper, I need to detect it.
Thank you very much!

@gn00979905
Copy link
Author

I figured out. In 'page change' event:
var pageview=PDFViewerApplication.pdfviewer.getPageView(evt.pageNumber-1).pdfPage.getViewport(1);
var pagewidth = pageview.width;

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

No branches or pull requests

1 participant