You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set page ranges (like 3-5) for a 7 page PDF document which is already rendered in the PDF viewer. How to achieve this with [page] attribute ?
The text was updated successfully, but these errors were encountered:
The [(page)] attribute controls which page is shown first when the PDF is loaded (or when the attribute changes). Hence it takes a simple number.
What do you want to achieve with the page range? Does "3-5" mean that the first pages are excluded from the PDF viewer, so you can't scroll to these pages?
Yes.. 3-5 range means user will have to see the 3rd, 4th & 5th pages only from original 7 page document.
I am expecting same as how google chrome print range works.
After an hour of Googling, I believe that Mozilla's PDF.js library doesn't support that feature. ngx-extended-pdf-viewer is a simple wrapper around PDF.js, so that's bad news.
However, I can offer a workaround. Have you discovered the Hummus library already? Among many things, it can generate PDF files consisting of a few pages of the original file. As far as I can see, it's a server-side library.
I want to set page ranges (like 3-5) for a 7 page PDF document which is already rendered in the PDF viewer. How to achieve this with [page] attribute ?
The text was updated successfully, but these errors were encountered: