About 595 results
Open links in new tab
  1. Electron : window['pdfjs-dist/build/pdf.hjs'] undefined

    Aug 17, 2021 · pdfjsLib stays undefined in the Electron app version of the application. However, in the browser version, there is still no issue. Hence, we can't work with PDFs anymore in the app. Who …

  2. import * as pdfjsLib from "pdfjs-dist/build" issues. - GitHub

    Feb 4, 2024 · Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component …

  3. How to build an Electron PDF viewer with PDF.js

    Oct 21, 2024 · In this post, you’ll learn how to build an Electron PDF viewer with PDF.js. Electron is an open source framework maintained by GitHub and written in many languages, including JavaScript. …

  4. Can't get PDF.js to work - laracasts.com

    I am trying to use PDF.js to display PDF files in a view. However the view method in PdfController is never reached. Why? Route: show () method: \Illuminate\Log\ log ()-> info ('Hitting show()'); // Pass …

  5. Pdf.js: No "GlobalWorkerOptions.workerSrc" specified.

    Jan 21, 2019 · You should try this: const pdfjs = await import('pdfjs-dist/build/pdf'); const pdfjsWorker = await import('pdfjs-dist/build/pdf.worker.entry'); pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorker; ...

  6. web/pdf_viewer.js cannot load build/pdf.js #9239 - GitHub

    Dec 5, 2017 · First of all, why are you importing the pdfjs-dist/build/pdf.worker.js file? That file cannot be loaded in the main thread, and should (as the name suggests) only be used in a Web Worker. For …

  7. How to use and extend Mozilla's PDF.js Viewer

    Jul 30, 2021 · Here's an overview of the pieces you'll need: Copy this file into your application — this contains all the DOM for the viewer interface. In other words, the toolbar containing search, …

  8. Cannot read property 'GlobalWorkerOptions' of undefined when using pdf.js

    Jan 16, 2020 · This happens because window['pdfjs-dist/build/pdf'] is undefined. I see you are however loading the pdf.js script in your window, so you'll need to figure out where "pdfjs-dist/build/pdf" is …

  9. PDF Viewer - CodePen

    toastr.options.progressBar = true; const url = "https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi …

  10. javascript - pdf.js not loading pdf file - Stack Overflow

    Jan 1, 2020 · // Loaded via <script> tag, create shortcut to access PDF.js exports. var pdfjsLib = window['pdfjs-dist/build/pdf']; // The workerSrc property shall be specified.