Questions tagged [ng2-pdf-viewer]

13 questions
1
vote
0 answers

nf2-pdf-view - how to show scrollbars

I have an Angular app with ng2-pdf-viewer version 6.4.1, but I couldn't make it show scrollbars. It can only be scrolled using the mouse wheel. I tried applying several CSS options, but it didn't work. In the inspector it looks like this: The…
user1563232
  • 361
  • 3
  • 17
1
vote
0 answers

Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'vertical') - PDF VIEWER

TypeError: Cannot read properties of undefined (reading 'vertical') at appendText. Version using - "ng2-pdf-viewer": "^7.0.1" I'm getting this error while viewing a pdf. I've implemented pdf viewer inside a modal and while user click on view button…
1
vote
0 answers

How to solve "Can't import the named export 'CommonModule' from non EcmaScript module (only default export is available)"

I'm trying to use ng2-pdf-viewer package. I have added this module to app.module.ts as like that: import { PdfViewerModule } from 'ng2-pdf-viewer'; imports: [ PdfViewerModule, ] But I got these types of errors: Error:…
sundowatch
  • 3,012
  • 3
  • 38
  • 66
0
votes
0 answers

How to synchronize the scroll behavior while comparing two different pdf version documents in Angular 4+?

I have loaded two different pdf versions documents side by side using ng2-pdf-viewer in my angular application. two version documents have different content for some paragraphs. My Task is: while scrolling up/down the left document I have to show…
Santhosh
  • 1,053
  • 1
  • 20
  • 45
0
votes
0 answers

Terminate worker in pdfjs and ng2-pdf-viewer

i am implementing a small app with ionic angular. One part of this app is to upload, show and read out pdf files. So step by step The user is on page upload-file and can upload a file If file is uploaded and the src property is set to something…
0
votes
1 answer

ng2-pdf-viewer in angular not showing checkbox icon

We are using ng2-pdf-viewer npm package for rendering pdf. we have checkboxes in pdf but while viewing pdf we are not able to view yes icon instead we are getting cross icon when open in browser when open using ng2-pdf-viewer
Mayur2402
  • 1
  • 2
0
votes
2 answers

Display local PDF with ng2-pdf-viewer

I am trying to display a PDF with ng2-pdf-viewer but it does not show. The PDF is on my computer, inside the project in the assets folder. my src folder tree Here is my html

Angular 10 PDF Viewer

Grim
  • 18
  • 4
0
votes
0 answers

PDF file only displays on Samsung devices and not on iPhones when using ng2-pdf-viewer in an ionic with angular app

I am trying to preview a PDF file (using external URL) inside modal view component in an ionic with angular app, I am using ng2-pdf-viewer plugin. The PDF kdisplyed only on samsung device either after build ionic cordova to Android & IOS or using…
0
votes
0 answers

ng2-pdf-viewer / pdf.js, render all pages in a PDF without container scrollbar but with working internal links

Desired result: To render all pages in the PDF without the pdf-viewer container scrollbar and without breaking the internal links. The PDF in the demo has only two pages, actual PDF could have > 15. I have tried several approaches, all culminating…
Urdar
  • 67
  • 7
0
votes
0 answers

Search with multiple phrases with ng2-pdf-viewer pdf.js

There is a similar question that was asked about this subject a long time ago but it looks that nobody has found a solution yet: Angular 8 Multi phrase search using ng2-pdf-viewer I'm basically trying to do the same but with more specs. Case 1.…
0
votes
0 answers

was the print() removed from the latest ng2-pdf-viewer?

I am viewing a pdf file using v9 of ng2-pdf-viewer to display a local pdf file. everything works fine until I tried to print. I get an compile error trying to use the print() on the pdf object. apparently it doesn't exist anymore. How do I print the…
MichaelE
  • 757
  • 14
  • 42
0
votes
0 answers

pdf is not loading until I scroll the pdf slightly

I am using ng2-pdf-viewer. pdf is not loading in viewer until I scroll the page slightly. First time only vertical and horizontal scroll of pdf display, once I scroll the pdf then pdf get visible. Here is the code:
shilpa
  • 43
  • 6
0
votes
1 answer

Displaying a pdf using ng2-pdf-viewer in Angular

I am trying to use ng2-pdf-viewer to display a pdf. I am obtaining the pdf as a response from a post request. The functionality is that when I click on Dispute for Dognosis the pdf should be displayed.UI I get the following error in my console…
H-Bar
  • 51
  • 4