yurydelendik / pdfjs-react

Simple example of using PDF.js components with React.
85 stars 38 forks source link

Pagination #4

Open shreyasb07 opened 5 years ago

shreyasb07 commented 5 years ago

Hi Yury,

This is an amazing project! I've seen many examples, but have found your's to be very helpful! However, I was wondering if we could have a pagination option instead of viewing all the pages one below the other? Probably by using some state management? Looking forward to hearing from you soon!

yurydelendik commented 5 years ago

@shreyasb07 yeah, you will need some additional state management. The final solution is a mix of:

shreyasb07 commented 5 years ago

Hi Yury @yurydelendik ,

Thank you for your prompt reply! I tried referring to the above 2 links you've provided. However, I could still see all of the pages one below the other! I'd really appreciate your help on this!