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

PDF Blank #44

Closed
irzafaikar opened this issue Apr 21, 2021 · 2 comments
Closed

PDF Blank #44

irzafaikar opened this issue Apr 21, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@irzafaikar
Copy link

Configuration:

  • Google Chrome 88.0.4324.150
  • Ubuntu 20.10
  • vue-pdf-app latest version

Steps to reproduce the problem:

Only follow the example in github.

What is the expected behavior?

PDF will show in the browser.

What went wrong?

PDF not showing. But its load in network tab.

Attachments (screenshots, links, etc)

Screenshot from 2021-04-21 13-56-23
Screenshot from 2021-04-21 13-55-14

@irzafaikar irzafaikar added the bug Something isn't working label Apr 21, 2021
@irzafaikar
Copy link
Author

I'm sorry, this is css issue. I set the style to this one.
Screenshot-20210422024131-256x126

@sandanat
Copy link
Owner

Hi @irzafaikar !
Yes, your solution works fine.
However a package already has a height 100%
So it is better to specify a height of parent container

<template>
  <div style="height: 100vh">
    <vue-pdf-app />
  </div>
</template>

Or specify a height directly

<template>
  <vue-pdf-app style="height: 100vh" />
</template>

Explanation is in this discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants