Questions tagged [pdf.js.express]

6 questions
3
votes
1 answer

How to delete highlight annotation from pdf with pdf js express in react

I am using pdf js express to draw highlight annotation in pdf. But when I couldn't delete the annotation from the pdf. I am using this code to create highlight: const { Annotations, annotManager } = instance; citations.forEach((citation) => { …
1
vote
0 answers

Pdf.js Express/PdfTron - Double Click Event Listener

i am using PDF.JS from https://pdfjs.express/ and currently i am stuck at registering events on the pdf. What am i looking for? As soon as the user double clicks a word in the pdf document, i want to retrieve e.g. the clicked word or maybe even all…
Creative crypter
  • 1,348
  • 6
  • 30
  • 67
0
votes
0 answers

How to add another parameter to the file parameter in pdf.js

I'm using pdf Js to preview my pdf file, but I want to add a parameter tokenStr after my pdf url, but this does not take effect. This is my pdf url…
段小言
  • 12
  • 3
0
votes
1 answer

How can I make it read all my pages and not just one PDF.JS

Good night people, I tell you.. I am working in node and express and I am getting the following error It turns out that my pdf at the moment has 3 pages, but it can vary. What I need to do is find a way to read the number of sheets that the PDF has,…
0
votes
1 answer

PDF files and JavaScript: how to check if PDF is native or scanned

I am developing a front-end application using JavaScript / HTML / CSS. This application allows the user to upload PDF files. I am looking for a way, using JavaScript, to discriminate whether a pdf file is native or scanned. A native PDF is a PDF of…
0
votes
1 answer

How to display PDF thumbnails in JSP pages

I tried to use the following js, but it didn't seem feasible. PDF.js 'Hello, world!' example How can I fix it? function dispPhoto(file,suffix) { var $thumbArea = $('#thumbnail'+suffix); $thumbArea.empty(); $('#fileName'+suffix).html( "" ); …
DJQTDJ
  • 71
  • 1
  • 9