-
Notifications
You must be signed in to change notification settings - Fork 169
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
Unable to show PDF #1080
Comments
I feel you! But I'm also puzzled. Something must have changed. The screenshot indicates something goes wrong during the initialization phase of the PDF viewer. That's all I can say with so little information at hand. Please keep me in the loop. When you manage to solve the bug, I want to know, and if you've got additional insight that might help me to help you, I want you to tell me, too! Best regards + good luck |
Hello Stephan, I have removed node_modules repository, reinstall pdf-viewer with "npm i ngx-extended-pdf-viewer --save". I got the last version 11.0.0-alpha.13. But I get a lot of errers
|
Looks like you've got a problem with the *.mjs files. Unfortunately, I've got a bad headache tonight, so I can't dive deep into it, but maybe this article helps you to find out what's going on: https://medium.com/passpill-project/files-with-mjs-extension-for-javascript-modules-ced195d7c84a |
BTW, which browser are you using? Is is something that happens on certain browsers only? |
We are using Chrome. I can't find more solutions for the problem of .mjs files. I have tried to roll back to 10.5.0, 10.0.0 and 9.5.0, but nothing changed, without errers, no PDF display and all the buttons on pdf viewer don't work. I give you more information about our project, let me know if you can fix the problem. Thank you very much. package.json
angular.json
|
Sounds like a huge project! At first glance, I don't see any problem. Just a few unrelated remarks:
|
I suppose it's a good idea to start a fresh project and to integrate ngx-extended-pdf-viewer. If you're following the tutorial and if you do everything correctly at first try (something I never do!), that's roughly 10, 15 minutes. If the PDF viewer doesn't show, you know there's something wrong with your node.js or npm or Angular installation. Otherwise, you know your project causes the errors. |
@mingli1015 Any news? I suspect you've run into some trouble with npm or the Angular CLI. I didn't hear from you since two weeks, so I assume you've managed to solve the issue. I'm closing the issue now. |
An incompatibility between the Monaco editor and my library? That's a surprise! You say it's caused by the module system? That's something I'm hardly familiar with, but it sounds like I have to dig deeper. Thanks for sharing your insight! |
This ticket seems to be a duplicate of #1427. I've solved the bug with version 15.0.0-alpha.2. Please run a test and confirm it solves your issue. Enjoy! |
@tavogusta19 You've opened a new ticket, so let's continue the discussion over there: #1593. Everybody else: if you've got insight that might help @tavogusta19, please chime in, either here or at #1593. |
hello team, I am generated pdf using base64 stream but why I am getting below dialog in my pdf. |
@WNS-Shubham This looks like a CSS problem. Maybe that's caused by third-party CSS. |
Hi,
I have integrated successfully ngx-extended-pdf-viewer in our application (angular 11) three months ago. But today I suddenly found the PDF does not render in the browser, without errors.
I'm testing with the simple example with a local pdf file, there are no changes.
ngx-extended-pdf-viewer@10.5.0
<ngx-extended-pdf-viewer [src]="'assets/example.pdf'" useBrowserLocale="true" height="80vh"></ngx-extended-pdf-viewer>
The text was updated successfully, but these errors were encountered: