Replies: 1 comment
-
EmbedPDF doesn't have this functionality, but base PDF.js does: import * as pdfjs from "pdfjs-dist"; However, this make take time since JS actually renders the PDF. A fast solution for many large PDFs would be to use Python and export the page counts to a file: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wanting to embed a PDF in my site without using the Scroller element as I want more control over how/when each page is rendered.
I think I can do this by using the RenderLayer directly in the Viewport but I need the total number of pages so I know how many RenderLayers to use.
Beta Was this translation helpful? Give feedback.
All reactions