Questions tagged [ng2-pdfjs-viewer]
56 questions
0
votes
0 answers
Angular/ionic 5 with ng2-pdfjs-viewer. Issues with large pdf files
Currently using ng2-pdfjs-viewer in our ionic 5/angular 8 app with cordova (android app).
All pdf files are downloaded into the device and then we use ng2-pdfjs-viewer to show the content. It works fine with small pdfs, but it does not work (no…

adriana r
- 1
- 1
0
votes
0 answers
Load local PDF with ng2-pdf-viewer
I just want to show a PDF that is found within the project directory.
I did read the online documentation render-local-pdf-file but still, I was not able to make this work.
Here is my code:
import { Component } from '@angular/core';
@Component({
…

Georgios
- 861
- 2
- 12
- 30
0
votes
1 answer
Get the tag "a" from iframe
This is my code, i need to get the tag "a" from the iframe but when i get it i get an empty array like this: Empty array
const frame = this.pdfViewer.iframe.nativeElement
const frameArray =…
user13215374
0
votes
1 answer
Search with accented characters in pdf.js
I am using ng2-pdf-viewer library to display some pdfs. I was asked to include a search bar for these pdfs and I did by using this command available in PdfFindController from pdf.js
this.pdfFindController.executeCommand('find', {
…

César Castro Aroche
- 595
- 1
- 9
- 20
0
votes
0 answers
No component factory found for t. Did you add it to @NgModule.entryComponents?
I have created a component to preview docx and pdf files natively in my project(angular 6).To preview pdf, I have used ng2-pdf-viewer and to preview docx, docx file is converted to html in the backend and send to angular. Preview for docx and pdf is…

Ninad Hatankar
- 25
- 6
0
votes
1 answer
Is there any way to add outline to text with destinations, so that it can viewed in getOutline of ng2-pdf-viewer
To display the outlines using ng2-pdf-viewer in which the pdf is generated using the pdfmake library. Is there any options to put some text as outline text in pdfmake while definnig the document definition?

Anand Paul
- 355
- 5
- 17
0
votes
0 answers
Is there any hack to control the in pdf search of ng2-pdfjs-viewer using angular component
I have created a pdfviewer component using ng2-pdfjs-viewer. I want to search for words in pdf using the angular component class.
Metadata from pdf will be displayed in a form, user will click on metadata field and will see first occurrence of that…

Rkmr039
- 175
- 2
- 6
0
votes
1 answer
How to get clicked portion coordinates in pdf with ng2-pdf-viewer
I have a requirement to get a position of an element from the pdf . Currently, I am using ng2pdf viewer.
stackblitz: when I clicked on the image inside pdf I need the coordinates of the clicked…

Mohamed Sahir
- 2,482
- 8
- 40
- 71
0
votes
1 answer
bootstrap modal with pdf-viewer in angular 4 failing in few case
Video to understand the problem
I am using angular 5 and ng2-pdf-viewer. In this following modal, when I come from another page, it loads correctly. but afterward, it creates strange issues like the video. And the perfect solution occurs when the…

Abdur Rahim
- 3,975
- 14
- 44
- 83
0
votes
1 answer
Events are not triggered when open pdf in external window
I have a problem with events, when open pdf in external window. They are not triggered even with 'viewerId' attribute. Here is my code:
HTML
{{ document.description…
0
votes
0 answers
window.requestAnimationFrame is not a function
I am using angular universal for my project, and for showing the pdf using ng2-pdf-viewer plugins but it is giving me the error Unhandled Promise rejection: window.requestAnimationFrame is not a function while i have already imported windows and…

Faraz Ahmad
- 13
- 3