Questions tagged [pdf.js]
pdf.js is an HTML5-based Portable Document Format (PDF) renderer.
pdf.js
1,305
questions
1
vote
1
answer
36
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
47
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
54
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
26
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
30
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
50
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
84
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
604
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
54
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
119
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
53
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(){
...
0
votes
1
answer
46
views
PDF.js lost Event Listener after new file opened using open method
I'm using PDF.js
Adding references straightforward
<link rel="resource" type="application/l10n" href="/locale/locale.json"> <script src="build/pdf.js&...
0
votes
0
answers
51
views
OJS PDF.js PDF Viewer
enter image description here
I have a problem with pdf.js (plugin in OJS for pdf viewer) when using HTTP the document can be displayed, but when switching to HTTPS the document does not display and an ...