anvithks/hugo-embed-pdf-shortcode

Scroll through pages

Oravishayrizi opened this issue ยท 9 comments

I use the Embed-pdf-shortcode for displaying my CV on my personal website.

I wonder if there could be an option in which the few pages will display automatically one after the other (as a long page) without the need to press next/previous.

Hey there @Oravishayrizi !
Great to know that you are using it to display your cv.
The shortcode uses pdfjs by Mozilla so ideally it should support everything that is supported by it.
Let me see if I can enable that or provide a configure option.
It would be great if you could raise a feature request issue.

Please do share the link to your website / page.

Hi, thank you for your reply and sorry for the long delay.
Where should I raise a feature request?(I'm quite a newbie)

Here's a link to my cv page on my website

I've embedded my CV in my portfolio page without the pagination. Currently you'll have to scroll through the entire page. You can add a inner scrollable by adding overflow-y-scroll to the css. Hope it helps.

Link to repo: https://github.com/SuryaThiru/portfolio

I've embedded my CV in my portfolio page without the pagination. Currently you'll have to scroll through the entire page. You can add a inner scrollable by adding overflow-y-scroll to the css. Hope it helps.

Link to repo: https://github.com/SuryaThiru/portfolio

Thanks @SuryaThiru . Would you consider raising a PR for this?

@anvithks Unfortunately, I am unable to find the time to do so at the moment. But, I hope my implementation can be a reference for those who wish to.

The solution by SuryaThiru works, here is how I installed it:

Done!

Thank you @RoneoOrg .@SuryaThiru if it's alright can I or @RoneoOrg add this to Hugo Embed Pdf? I can share a reference to your repo in the code.

Thank you @RoneoOrg .@SuryaThiru if it's alright can I or @RoneoOrg add this to Hugo Embed Pdf? I can share a reference to your repo in the code.

Please do! I wanted to get it sorted myself but couldn't find the time to. I'm glad you guys were able to resolve this.

Here is a repo where the full PDF is displayed without pagination:

https://github.com/RoneoOrg/hugo-embed-pdf-shortcode-roneo

See especially the commit RoneoOrg@a4c6c7b