Questions tagged [ng2-pdfjs-viewer]
56 questions
1
vote
1 answer
How can I call a shortcode in a shortcode?
I wanted to call the following shortcode in the wordpress page editor:
[pdfjs-viewer url=/wp-content/uploads/pdfs/[wpcf7_session_id]/vertrag.pdf viewer_width=100% viewer_height=1500px fullscreen=true fullscreen_text='Im Vollbildmodus anschauen'…

user1664377
- 393
- 1
- 3
- 13
1
vote
1 answer
PDF text search in Angular 5+
I am trying to achieve something like below.
I want the list of matching text should be listed in right side bar. I am sure it can be done using PDFTron but I am looking for alternatives.
Is it possible to implement using ng2-pdf-viewer?
Any help…

Siva
- 21
- 3
1
vote
0 answers
ng2-pdf-viewer is not loaded all pdf pages how to solve this?
I upload less than 2 page pdf document, the pdf viewer is working and load all page like 2 pages quickely. but upload more than 2 pages (ex: 51 pages) the pdf viewer is working but load first two pages only, remaining pages are shown loading icon.…

Arun Kumar
- 75
- 1
- 10
1
vote
1 answer
How to implement PDFViewerApplication and PDFViewerApplicationOptions in ng2-pdfjs-viewer
Am using ng2-pdfjs-viewer in my ANGULAR site to view PDF. But my client requested to add some More Site Related links in the toolbar like Contact Us, Navigate to some other site. I thought we can use PDFViewerApplication and…

Manikandan Thangaraj
- 1,594
- 8
- 24
- 44
1
vote
1 answer
View all documents in ng2-pdf-viewer
In npm ng2-pdf-viewer is it possible that we can view images, excel, and other documents. I have base64 string of all documents but I want to view not only pdf but all documents. Is it possible? If so, can anyone help me?

Viveka
- 175
- 2
- 12
1
vote
0 answers
ng2-pdf-viewer latest version (6.3.2) is not working at 60.0.312 version of chrome
I am trying to use the latest version of ng2-pdf-viewer(6.3.2) component to display PDFs at chrome 60.0.312 version, but it is not displaying the PDF and I don't get any error at console. The same ng2-pdf-viewer version works fine at the latest…

Balaji P
- 11
- 2
1
vote
0 answers
ng2-pdfjs-viewer: PDF is all black
I have a Problem with ng2-pdfjs-viewer.
Sometimes the PDF I try to display is all black.
I figured out, that it appears to be black whenever the PDf was created with j&k DPU-X.
If the PDF was created by OmniPage CSDK 19 it works just fine.
So the…

Kay
- 11
- 1
1
vote
1 answer
Custom pdf rendering in ng2-pdf-viewer for large pdf documents?
I am using the ng2-pdf-viewer to display a pdf in my angular app. However, the viewer waits for the pdf to be downloaded completely and then displays it. The server sends me the pdf data in a byte array form.
Is there a way to show the pdf while it…

ashley
- 61
- 7
1
vote
1 answer
Invalid PDF Structure with ng2-pdfjs-viewer
I am trying to the load the PDF in ng2-pdfjs-viewer but I get "Invalid PDF Structure, undefined error". The backend is returning the data to me in a Blob format but when I feed to the UI it gives the above error:
HTML Code:

Manali
- 11
- 2
1
vote
1 answer
ng2-pdfjs-viewer for extracting text
Is there any possibility of using ng2-pdfjs-viewer for extracting solely the text of a pdf file, e.g. as a string? I want to extract text and regex it for cutting out certain paragraphs depending on the text inside of them.
Thanks in advance

M.S
- 13
- 3
1
vote
2 answers
ng2-pdfjs-viewer - Error: Cannot match any routes
When running my application with ng serve everything works fine. But after building it with ng build --prod I get ...
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment:
'assets/pdfjs/web/viewer.html'
Error: Cannot…

heinob
- 19,127
- 5
- 41
- 61
1
vote
1 answer
Text content copy works wrongly after rendering Pdf using SVG
I have tried to generate an app which gets pdf blob and shows it on the screen using pdfjs lib.
I works correctly but when i try to copy the text content, it gets unrelated data.
When i copy the text, it copies it as .
You can check it…

Erdi Atalay
- 153
- 1
- 1
- 8
1
vote
1 answer
Converting base64 string to uint8Array or Blob in Typescript/Angular8
I'm fairly new to working with Base64 encoded string/uint8Array, or Blob. I'm using a pdf viewer library from this repo https://github.com/intbot/ng2-pdfjs-viewer for our Angular 8 webapp.
I'm sending a fairly large Base64 string(550KB to the…

lakshmanvvs
- 81
- 2
- 11
1
vote
2 answers
How to give path correctly to ng2-pdf-viewer
Problem:
I have created an angular application. There I am using ng2-pdf-viewer. I accessed it on an HTML file like this.

Tharindu Sandaruwan
- 555
- 9
- 29
1
vote
1 answer
PDFJS: Text layer rendering twice
Here's the context:
pdfjs-dist: v2.2.228
angualar/core: 8.2.0 (hybrid Env with an AngularJs 1.5.X)
Objective: to upgrade pdfjs-dist to the latest versions (2.3.200 or at least 2.2.X)
I upgraded from pdfjs-dist 2.0.4xx, and here's what is being…

Catalin
- 121
- 1
- 9