Closed Danieliessen closed 3 years ago
Duplicate of #13200
Solved by using 2.3.200 version...
Solved by using 2.3.200 version...
This worked thanks
On my side solved by using the legacy build
const pdfjsLib = require("pdfjs-dist/legacy/build/pdf.js");
pdfjs version: (3.2.146) node version: (14.21.3)
@rrrokhtar This lib is wonderful!!! 🥇 I discovered it recently and it helped me a lot, but unfortunately it stopped working recently. I can't get the URLs anymore.
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
Create a component that requests pdfjs-dist
import pdfjsLib from "pdfjs-dist/build/pdf"; import { PDFViewer } from "pdfjs-dist/web/pdf_viewer"; import "pdfjs-dist/web/pdf_viewer.css";
What is the expected behavior? Well, it works.
What went wrong? Error:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): The application does not launch.