Questions tagged [ng2-pdfjs-viewer]

56 questions
5
votes
1 answer

Use ng2-pdfjs-viewer to display pdf using s3 signed url

I am required to display a pdf that is returned by a s3 signed url as a file object. I am trying to use the ng2-pdfjs-viewer to display. But it doesnt seem to work. I tried using the s3 url directly to pdfSrc but it doesn't work. component.html: …
Steffi M
  • 95
  • 1
  • 7
4
votes
1 answer

How to hide all toolbars in ng2-pdfjs-viewer

I am using ng2-pdfjs-viewer to view pdf, but i want to remove toolbar and only want page display area, i can i do that.
Suraj Kumar
  • 281
  • 6
  • 13
2
votes
1 answer

onDocumentLoad not triggered

Is anyone else finding that the ng2-pdfjs-viewer Angular library doesn't ever trigger the onDocumentLoad function ?
Mike Gledhill
  • 27,846
  • 7
  • 149
  • 159
2
votes
1 answer

angular 7 How to reduce production build size

How to reduce production build size. production build : ng build --prod angular.json config file: main.js(4.3mB) has pdf.js(303kB), pdf_viewer.js(100kB) apart from these a seperate pdf.worker.js(739kB) is also present. cpexcel.js and xlsx.js are…
shrvn
  • 73
  • 7
2
votes
0 answers

Warning: Indexing all PDF Objects when rendering PDF Documents with Angular and ng2-pdf-viewer

My backend creates a PDF based on a formular I submitted. The next page should show the Pdf Documents. I use ng2-pdf-viewer for that purpose. My problem is, that every time I run it the very first time I start my browser I always get the…
kaum
  • 21
  • 1
  • 4
2
votes
1 answer

ng2-pdfjs-viewer Pass Object from component to html

I'm using ng2-pdfjs-viewer and I can pass a pdf file http url but I can't use interpolation nor passing a variable to pdfSrc option inside html tag for rendering a pdf from a rest service response. How can I pass a Uint8array or base64 object from…
2
votes
1 answer

How to highlight synctex output values on ng2-pdf-viewer

I have an angular 6 application for tex compilation and pdf output. Ace editor is used for creating tex files. It can be compiled at the realtime using pdflatex. Output pdf is shown using ng2-pdf-viewer . Inorder to implement synctex (sync between…
Yadu Chandran
  • 177
  • 13
2
votes
1 answer

ng2-pdfjs-viewer Internet Explorer 11 unexpected server response (500) while retrieving PDF

I'm using ng2-pdfjs-viewer to display a PDF that a user has uploaded to my server. Each time the user clicks the file in their view, the file is retrieved from the server and made into a blob and given to ng2-pdfjs-viewer to display in an…
2
votes
1 answer

How to display empty ng2-pdfjs-viewer when no file provided

I'm using ng2-pdfjs-viewer to display pdfs in my angular page: Behavior : i get src from server, when it's not empty or null it's working correctly, but when null or emty ng2-pdfjs-viewer…
a.oub-c
  • 41
  • 6
2
votes
0 answers

Unable to get position according to pdf page

I am using ng2-pdf-viewer for displaying pdf. I need to drop a signature filed upon this pdf and need to get the coordinates of signature where it is dropped. Coordinates must be according to pdf page, not according to Dom i.e bottom-left corner of…
Hari Om
  • 79
  • 6
2
votes
2 answers

how to add comments and annotations in PDF viewer in angular

I am a beginner of Angular. I am working on a sample application wherein I want to load a PDF file, view, edit and save it. In addition, I also want to perform annotations like write comments, adding shapes, images, etc. I had come across this…
2
votes
1 answer

Window.print result from ng2-pdfjs-viewer is different on Chrome and IE11

We generate PDFs and show in Chrome and IE11 with the ng2-pdfjs-viewer component. Both of them show the same results and it's fine. But when we try to print documents, results of printing are different: after Chrome the resulting document looks the…
2
votes
1 answer

Print preview using PDFJS and angular 7

I just started using ng2-pdfjs-viewer(https://www.npmjs.com/package/ng2-pdfjs-viewer) and trying to provide a print preview of a pdf document to the user using angular 7. I configured and was able to show the document, but couldn't show the print…
James
  • 169
  • 7
2
votes
1 answer

Integrating PDFJS in Angular

I'm creating a new component in Angular to show PDF file , in order to that ,I used ng2-pdfjs-viewer following these steps in the link "https://www.npmjs.com/package/ng2-pdfjs-viewer" but it's not working. I don't know exactly where the…
youssef elhayani
  • 625
  • 8
  • 28
1
vote
0 answers

Problem rendering a PDF file on mobile using ng2-pdf-viewer [Angular 12]

I'm using ng2-pdf-viewer to display a PDF file and it works perfectly on a desktop, but I'm having trouble displaying it on mobiles. As soon as I test it on an Android device I'm met with a blank that only shows a blue button to download the file.…
CaosKaiser
  • 11
  • 3
1
2 3 4