sandanat / vue-pdf-app

VUEjs v2 PDF viewer based on Mozilla's PDFJS
MIT License
225 stars 103 forks source link

Empty/Blank print preview #87

Open jcdevz-dev opened 3 years ago

jcdevz-dev commented 3 years ago

https://codesandbox.io/s/vue-2-vue-pdf-app-wz5kv?file=/src/views/ToolbarConfiguration.vue

Configuration:

Steps to reproduce the problem: On the Basic tab, click the print icon once and cancel. After that, navigate to Toolbar configuration tab and click the print icon. If the preview does not became empty, try to navigate back to basic tab and click the print icon.

What is the expected behavior?

not empty print preview

What went wrong?

empty print preview

Attachments (screenshots, links, etc)

image image

LeoNog96 commented 2 years ago

I have the same problem

DiegoFSFlor commented 2 years ago

@jcdevz-dev did you solve this problem?

Here it is with the same problem

jasonfish568 commented 2 years ago

Encountered the same problem, but after checking the demo code, I found that I did not include import in main.js. After adding the code into main.js the print function starts working.

adrianoGaspar commented 1 year ago

I have the same problem. I tried including the import in main.js as @txlife suggested, but it didn't work. Has anyone managed to resolve this?

jasonfish568 commented 1 year ago

After a year doing another project I came back to this repo, wondering are you guys still having this issue? As I improved some of my code this time, I found out that having one general for the entire App could solve the problem.

dianahusin commented 1 year ago

Having the same issue till now. Anyone have any solution for this issue?

djascorp commented 1 year ago

I have the the same problem