Category "pdf.js"

Karma fails to load test file: "Failed to fetch dynamically imported module"

I'm trying to test my LitElement components with Karma but importing PDF.JS is causing the test file not to be loaded. Example of the LitElement component file

pdf.js get password-protected file content

I want to retrieve the content of a password-protected file as a File object using PDF.js library. I tried to get the raw data from the promise and convert it t

PDF reader for Java as PDF.js

We have a project where we use pdf.js to render a PDF into webpage and it creates HTML container elements for the PDF pages. The content of the PDF is split as

PDF.JS in ASP- How to Open PDF in Viewer located in a folder different than viewer.js

In PDF.js, using viewer.js and viewer.html, I can specify a PDF by assigning the filename in defaultURL.value, but the PDF must exist in the same folder as view

pdf.js text layer position accuracy

I'm using pdf.js and RecogitoJS to build a PDF annotation interface. This seems to work fairly ok. Except there's a small offset between the rendered canvas ima

Using pdf.js on a node server

I want to convert a pdf to an image server-side, using node.js. My input for this task is pdf's url, and the desired output is a base64 string, representing an