Display PDFs
-
I'm having an issue with displaying PDFs, so I decided to download the jsReport studio (https://github.com/jsreport/jsreport-studio) and see how they are displayed there. It doesn't run. When I do an npm install, it fails on restoring items.
Is anyone else having this issue?
Thanks!
-
hi! i'm not sure what is the failure for you when using jsreport studio as standalone, can you describe the steps that you are using?
i think if you want to understand how to display the pdf propertly in your app, you can check our browser client and check the code behind it](https://github.com/jsreport/jsreport-browser-client-dist/blob/master/src/jsreport.js) to understand how to handle it in your app.
-
Hmm. Interesting. I was looking at this page. https://github.com/jsreport/jsreport-studio/blob/master/src/components/Preview/Preview.js Specifically how you use an iframe to embed the pdf in the online studio. I will look at the one you suggested and see if I can tell what I'm doing wrong.
As far as getting it to work, I did a clone of jsreport-studio to a directory and then just ran 'npm install' and that reported errors. Maybe I messed up and that isn't a stand alone app that can run?
Thanks!
-
As far as getting it to work, I did a clone of jsreport-studio to a directory and then just ran 'npm install' and that reported errors. Maybe I messed up and that isn't a stand alone app that can run?
it should work, if you are still curious about jsreport-studio.. what version of npm do you have? we use npm5 all the time and the install works always, are you using npm 5 too? also maybe it would help more if you share the exact error message that you get after npm install.