Replies: 1 comment 1 reply
-
you can detect the current page number in the scroll event by using IntersectionObserver. and you can get the total page number on the Document onLoadSuccess.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to build a table of contents for a PDF that is somewhat unpredictable in structure. Is there a way to get the page number for a Link src target? There's no
render()
onLink
, so it can't be done in the same way you can get the current page number.(Fantastic library btw!)
Beta Was this translation helpful? Give feedback.
All reactions