Skip to content

discussions Search Results · repo:mozilla/pdf.js language:JavaScript

401 results
 (124 ms)

401 results

inmozilla/pdf.js (press backspace or delete to remove)

What is the best way to detect the aspect ratio of each page in order to update the CSS accordingly, as apparently the default behaviour is to stretch the page to match the canvas aspect ratio. Making ...

I m extracting images from a PDF, and they are in uint8clampedarray format. I want to convert the array into base64 format so I can process it later. Here is how I m trying to convert: function uint8ToBase64Async(uint8array) ...

Hi Team, Thank-you to the community for this wonderful library. Problem statement:- I am trying to integrate pdfjs-dist with nextjs. Module details:- pdfjs-dist:- 5.4.394 Nextjs:- 15.5.6 React:- 18.3.1 ...

Is the feature relevant to the Firefox PDF Viewer? No Feature description I’m working on adding a feature to PDF.js that allows serialization and deserialization of PDF annotations for persistent storage ...

Hi there, I m currently having some issues with a custom comment component based on annotations. I want to annotate the PDF and based on those annotations add comments. Since I can t figure out how to ...

nvm its not their

const outlineItem = { action: data.action, attachment: data.attachment, dest: data.dest, url: data.url, unsafeUrl: data.unsafeUrl, newWindow: data.newWindow, setOCGState: data.setOCGState, title: typeof ...

Related: my patch here #18627 and discussion on this issue #14570 Use case: Render-on-demand (i.e. disableStream and disableAutoFetch set, and the server supports ranged requests) on a large document ...

I was wondring if there is any way of extracting from a PDF the boilerplate commands that a PDF viewer would have to execute in order to show the user a PDF (like draw line from (x1, y1) to (x2,y2)). I ...

The full screen button of PDF.JS cannot be restored to its original state after clicking, and the shortcut keys are also useless. help!