All Questions
19
questions
0
votes
0
answers
19
views
2012 Mozilla pdf.js- Preventing window.history.replaceState in pdf.js from Reloading State in AngularJS App
I am working on an AngularJS application that integrates with pdf.js to display PDF documents. However, I'm encountering an issue where pdf.js calls window.history.replaceState, which in turn causes ...
0
votes
0
answers
63
views
how to save/restore/reload stamp annotations , pdf.js / mozilla lib
how to save/restore/reload stamp annotations from my database ..
I need to save STAMP_ANNOTATIONS and in Database and reload it when reOpen the the document and and render it will show ..
how to ...
3
votes
1
answer
2k
views
Adding Annotation with PDF.js
PDF.js is currently adding the ability to add annotation to a PDF, with an expected release on 1 May 23, with little to no documentation at all and no examples... I'm having a hard time putting things ...
0
votes
0
answers
278
views
Mozilla PDF.js Name of file in printing dialogs
Please someone can help me, how to set a name of file in printing dialog of browser?
I use Mozilla PDF.js version v3.5.141
PDF files is send to default viewer.html as base64.
I can change title in ...
0
votes
0
answers
2k
views
Render pdf before complete loading in pdf.js
How to start rendering pdf files before they are completely loaded on pdf.js . I am using pdf.js in following way - example.com/pdf.js/web/viewer.html?file=<pdf_file_url>. Thank you.
14
votes
3
answers
31k
views
How to use PDF.js in Angular 2/4/5?
I'm trying to develop PDfViewer Application using Mozilla's PDF.js (example here). It would be great if there is any github project as a reference.
Thanks inadvance!!
1
vote
0
answers
435
views
Mozilla security error: Failed to load worker script
I am trying to implement a flip book application using pdf-flipbook master. In localhost its working fine in both mozilla and chrome. But when I try to deploy in physical server I am getting this ...
1
vote
0
answers
641
views
PDF not showing JPEG image
When I am integrating pdf.js mozilla library with QT webkit I am getting error when pdf has jpeg image it is not showing the image
pdf.viewer.js calling readFromStorage function and runhandlers ...
0
votes
3
answers
5k
views
PDF.js - Password Callback Issue When Wrong Password is Entered
I am using pdf.js for my project and I am facing issue with encrypted pdf's. I am using PDF.js passwordCallback function to provide the password.
PDFJS.getDocument(file, null, passwordCB, null).then(...
12
votes
5
answers
24k
views
Load pdf on foreign url with pdf.js
I am trying to load pdf from another server to the viewer of pdf.js in my server.I got error
"PDF.js v1.4.20 (build: b15f335)
Message: file origin does not match viewer's"
I already checked ...
1
vote
0
answers
538
views
Use PDF.js viewer on part of page
How can I use the standard viewer UI of PDF.js for rendering a PDF in a website where the document viewer only takes up part of the page (like the hello world example)?
Which properties should I pass ...
3
votes
0
answers
768
views
How to tell JavaFX WebView to ignore 'use strict' directive?
I am trying to integrate the mozilla viewer in a JavaFx WebView by using the following code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web....
9
votes
1
answer
5k
views
Modifying viewer.js file
According to Mozilla's pdfjs plugin, I can view my pdfs by passing a query param to viewer.html as shown below:
http://localhost/MyProject/viewer.html/?file=file.pdf
This is working fine. But I have ...
11
votes
6
answers
18k
views
How to improve display quality in pdf.js
I'm using open source library for PDF documents from mozilla(pdf.JS).
When i'm trying to open pdf documents with bad quality, viewer displays it with VERY BAD quality.
But if I open it in reader, or ...
9
votes
2
answers
19k
views
pdf.js : how to properly set the initial scale?
I'm try to adapt pdf.js (complete version) to my needs, I just want to set the initial scale to 'page-fit' whatever the previous scale. So I try to modify viewer.js to achieve this ...
First the ...