VadimDez/ng2-pdf-viewer

Render all pages without scrollbar and with working links

Urdar opened this issue · 1 comments

Urdar commented
Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x ] Bug report -> please search issues before submitting
- [ ] Feature request
- [x ] Documentation issue or request

Desired outcome: To render all pages in the PDF, without the container scrollbar, and without breaking the internal links.

I have tried several approaches, all culminating to set height of container >= pdf heigh in order to get the container scrollbar to disappear. Doing this breaks the internal links.

Example, https://stackblitz.com/edit/angular-vwxumi?file=src/app/pdf-test/pdf-test.component.html
[style.height]="'50vh'" makes the links work, but adds container scrollbar.
[style.height]="'5000px'" makes the scrollbar disappear, but links do not work any more.

Maybe this is the wrong approach? Please help me achieve the desired outcome

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.