acfb54a836
Current pdf_viewer definitions result in errors like the following when trying to use them in a ts project: [error] TypeScript error node_modules/.pnpm/pdfjs-dist@2.10.377/node_modules/pdfjs-dist/web/pdf_viewer.d.ts:1:15 - error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing 'pdfjs-dist/types/web/pdf_viewer.component.js' instead. 1 export * from "pdfjs-dist/types/web/pdf_viewer.component.d.ts"; Import/export statements in typescript should not include file extensions. |
||
---|---|---|
.. | ||
legacy | ||
lib | ||
web | ||
CODE_OF_CONDUCT.md | ||
README.md | ||
webpack.js |
PDF.js
PDF.js is a Portable Document Format (PDF) library that is built with HTML5. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.
This is a pre-built version of the PDF.js source code. It is automatically generated by the build scripts.
For usage with older browsers or environments, without support for modern
features such as e.g. async
/await
, ReadableStream
, optional chaining, and
nullish coalescing; please see the legacy
folder.
See https://github.com/mozilla/pdf.js for learning and contributing.