Questions tagged [pdf.js]
pdf.js is an HTML5-based Portable Document Format (PDF) renderer.
pdf.js
1,307
questions
0
votes
0
answers
30
views
Why doesn't work PDF file open by PDF.js viewer [with URL]?
I downloaded manually the PDF.js viewer, and it was working perfectly in program XAMPP, but when I uploaded to a web server, it broke down. I uploaded also the web, the build folders and the LICSENSE ...
-1
votes
0
answers
14
views
CSP Compatibilty with deubbger.js
I am using PDF.js and I have come across the debugger.js file, which is used for debugging purposes. I have a few questions regarding its functionality and compatibility with Content Security Policy (...
1
vote
1
answer
37
views
How can I make links work in pdf when using PDF.js
I am going of one of their last example, and modified it a bit. The problem that I am facing is that I can't click on any of the links. How would you make it so I can (couldn't find documentation). I ...
0
votes
1
answer
54
views
Zoom pdf.js on mobile view browser
I created a pdf display on the web with pdf.js and it worked normally, the pdf appeared and I could click next and previous, but when the mobile pdf display became small, I couldn't change the ...
1
vote
1
answer
57
views
Application migration from Rhel7 to Rhel9
I am currently using SeedDMS 5.1.21 application on Rhel7, php 7.2.24 and postgresql, I am able to run application and view documents. But as Rhel7 support is going to end so I am migrating the ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
21
views
Print event listeners onafterprint and onbeforeprint work normally but not inside onload
The following code should print a PDF by
opening it in a popup window,
starting the print dialogue window and
closing the popup as soon as the print window is closed.
It works as expected in Chrome (...
0
votes
0
answers
31
views
Getthe exact left and top position of the text content using pdf.js
I am developing a pdf editor similar to https://www.sejda.com/. Is there a way to determine the exact to position the text content (left and top)?
I am currently using pdf.js to convert the pdf to a ...
0
votes
0
answers
54
views
Received "uncaught type error cannot read properties of undefined (reading pdfjsLib.GlobalWorkerOptions)" with PDFJS
I downloaded from github PDFJS 4.3.146 and installed according to github instructions USING NPM and NPX. I also installed node.js. I then loaded the generated pdf.js into a VisualStudio 2022 project ...
0
votes
0
answers
94
views
PDF viewer (with zoom and performance) in MAUI/Blazor with
I am trying to show a simple PDF in our web view based MAUI app on an Android device. It's seems harder than necessary. A version with canvas does work, but performance is terrible.
Internet and AI ...
1
vote
1
answer
656
views
PDFjs-dist - TypeError: Promise.withResolvers is not a function - Webpack Node JS
I've got the following "service" which is trying to extract the text from a PDF file but when it runs I am getting the same error every time no matter whether I point it at the main build (...
0
votes
0
answers
41
views
PdfJs: Black rectangle when rendering some pdf page
When I render some page from my pdf file show a black rectangle over the text. I cant find the reason of this behavior.
The rectangle can be anywhere in any size. Some times is just a few line, some ...
0
votes
0
answers
57
views
PDFjs rendering greyscale on Safari
i've been having lots of trouble with PDF js, especially on Safari. I've tried to switch to use the legacy version, but now on my test site, it just displays a blank canvas. But locally it works fine?
...
0
votes
2
answers
120
views
I want to extract Bengali text from a PDF [closed]
I want to convert a Bengali PDF to a text file. The current tool I'm using, poppler-utils' pdftotext, doesn't provide accurate results because the PDF uses Kalpurush font. Are there any tools that ...
0
votes
0
answers
54
views
PDF.Js Viewer add image programmatically to PDF
I'm Using PDF.JS
I want to make a custom button that add image/s previously stored as base64 on hidden field loaded with the page and add it to pdf viewer by a custom function
EX:
function AddStamp(){
...