Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling issue when trying to putting pdf viewer to right of html content #804

Closed
ja74687 opened this issue Jun 16, 2021 · 6 comments
Closed
Labels

Comments

@ja74687
Copy link

ja74687 commented Jun 16, 2021

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
- [ ] Documentation issue or request

#422
Hey bug returned in version 7.0.1 when i back to 6.4.1 everything i ok :)

@jorahsh
Copy link

jorahsh commented Jun 16, 2021

I'm also seeing something very similar to this:
image

Here is the html in Angular:
image
And I'm even using the position: relative trick on the parent div element in the scss file:
image

I just updated from 6.3.2 to 7.0.1 when I updated the project to Angular 11.
image
image

For some reason, the pdf data will load, but not display. It's also not throwing any errors.

@ja74687
Copy link
Author

ja74687 commented Jun 17, 2021

How you load src, I load blob from rest API and work :)

@ja74687
Copy link
Author

ja74687 commented Jun 17, 2021

Maybe try downgrade to 6.4.1 run: npm i [email protected] --save

@jorahsh
Copy link

jorahsh commented Jun 17, 2021

Originally the type I was setting src to was an ArrayBuffer from a rest API. I tried Uint8Array and URL string. As I mentioned above, the file data loads but it is not rendering for any of these types. I switched to using version 6.4.1 of ng2-pdf-viewer and version 2.5.207 of pdfjs-dist and it fixes this issue.

@stale
Copy link

stale bot commented Aug 16, 2021

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.

@stale stale bot added the stale label Aug 16, 2021
@VadimDez VadimDez removed the stale label Aug 25, 2021
@stale
Copy link

stale bot commented Oct 26, 2021

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.

@stale stale bot added the stale label Oct 26, 2021
@stale stale bot closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants