Closed juanmacaballeror closed 5 years ago
Code snippets do not really help us to look into the issue since it doesn't run. Please provide a running example on, for example, JSBin or JSFiddle.
Hi timvandermeij , the first thank you very much.
I tried to play it in jsfiddle and it gives me an error. I'll pass it to you in case you can take a look and see if it helps you that may be happening; "https://jsfiddle.net/u2n8kad3/16/" I have also tried it in another way but there was no way; "https://jsfiddle.net/pkj20huz/7/"
Thank you very much and apologize for any inconvenience Greetings from Madrid-Spain
I think you need to include Angular in the "Resources" section of JSFiddle. Most likely they have documentation on how to do this.
Good morning Tim, Sorry I sent you the wrong link. "https://jsfiddle.net/z7swdkjm/55/" I do not see what the problem is, if it's from the library pdfjs-view Thank you very much again
you can see the project code in gitlab https://gitlab.com/JuanmaCaballero/pdfJsViewer.git
Gentlemen,
As much as I like being included in computing projects, I think you have the wrong email for one of your teammates.
Very Respectfully, Nicholas Gardocki
On Mon, Jul 23, 2018 at 8:17 AM, juanmacaballeror notifications@github.com wrote:
you can see the project code in gitlab https://gitlab.com/JuanmaCaballero/pdfJsViewer.git
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mozilla/pdf.js/issues/9903#issuecomment-407038097, or mute the thread https://github.com/notifications/unsubscribe-auth/Akqh2xkBGa50gfX8H9a8wMmrxQmJqr-xks5uJb7hgaJpZM4VX5rH .
I have wrapped all code in a code block to hopefully exclude @ngdoc from this conversion from now on. I can't remove you, but you can click the "Unsubscribe" button on the right-hand side of the GitHub page to remove yourself from this conversion and you shouldn't receive messages again.
Hi Tim,
I already done it. Have you been able to see the code to know why it does not paint the pdf? Thank you very much
No, I think it's some kind of race condition in the library, not in PDF.js itself. Try using e.g., https://github.com/mozilla/pdfjs-dist to see if it's indeed the library that's causing the issue.
As indicated in https://github.com/mozilla/pdf.js/issues/9903#issuecomment-407547285, this doesn't seem to be caused the PDF.js library; should the issue simply be closed?
Hi guys,
I'm trying through base64 to paint a pdf with the pdf.js viewer (pdfjs-viewer data = "" ...). I've been with it for several days and I can not. I have a project with angularjs v1.6 and Yeoman and grunt. The feeling that I have is that when starting the project with a "grunt serve" I get up the application and I get the error "offsetParent is not set - can not scroll". As I read in other issues, the container div with the style "position: relative" was solved but it is not my case. I also have implementing in the style; "pdfjs-viewer { position: absolute; top: 30px; bottom: 0; left: 0; right: 0; margin: auto; width: 80%; overflow: auto; } " The strange thing is, as I said, when the server starts it does not load the pdf, but if I refresh the screen (F5) it loads the data well.
Could you please help me?
Thank you very much
P.D; sorry for my english, I'm spanish
My code;
attached image of the first load and when I refresh the screen
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):