-
For example, as the browser browsed pdf components by default, you could go to a specific page and scroll to other pages, rather than having to change the page and not scroll to other pages of pdf. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Also, as I scroll, how do I know which page belongs to the total number of pages |
Beta Was this translation helpful? Give feedback.
-
Hi @YTaoger, Sorry, I don't really understand your message. Could you rephrase? |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, maybe it's my expression. |
Beta Was this translation helpful? Give feedback.
-
4.mp4@hrynko Excuse me, in the video, notice the change of the top page, according to the page scroll, the current page number will also change, how to achieve this effect in |
Beta Was this translation helpful? Give feedback.
-
@hrynko Hi, I wonder, why not use disableAutoFetch from pdf.js. I'm having a problem loading PDF fragments. How can I optimize it? |
Beta Was this translation helpful? Give feedback.
You can set an ID to the
vue-pdf-embed
component, so that it is assigned to the container element and each page has an ID as<PROVIDED_ID>-<PAGE_NUMBER>
. You can then leverage the anchor links for navigation and the intersection observer to display the current page number.You can find some more insight in this article.