DenoDDeno
Powered by
patwasalinguistP
Deno•13mo ago
patwasalinguist

Importing pdfjs?

Hi, I’m trying to figure out how to use pdfjs with deno.

There seem to be several related packages on npmjs.com:

https://www.npmjs.com/package/pdfjs
https://www.npmjs.com/package/pdfjs-dist
https://www.npmjs.com/package/@bundled-es-modules/pdfjs-dist

But I haven't been able to get any of them to work with permutations like:

import * as pdfjsLib from 'npm:pdfjs-dist';

etc.

Any suggestions?
npm
pdfjs
A Portable Document Format (PDF) generation library targeting both the server- and client-side.. Latest version: 2.5.3, last published: a year ago. Start using pdfjs in your project by running
npm i pdfjs
npm i pdfjs
. There are 52 other projects in the npm registry using pdfjs.
pdfjs
npm
pdfjs-dist
Generic build of Mozilla's PDF.js library.. Latest version: 4.10.38, last published: a month ago. Start using pdfjs-dist in your project by running
npm i pdfjs-dist
npm i pdfjs-dist
. There are 1912 other projects in the npm registry using pdfjs-dist.
pdfjs-dist
npm
@bundled-es-modules/pdfjs-dist
mirror of pdfjs-dist, bundled and exposed as ES module. Latest version: 3.6.172-alpha.1, last published: 2 years ago. Start using @bundled-es-modules/pdfjs-dist in your project by running
npm i @bundled-es-modules/pdfjs-dist
npm i @bundled-es-modules/pdfjs-dist
. There are 14 other projects in the npm registry using @bundled-es-modules/pdfjs-dist.
@bundled-es-modules/pdfjs-dist
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Importing submodules
monkeymom2Mmonkeymom2 / help
3y ago
Importing Tesseract.js
rabbit_rabbitRrabbit_rabbit / help
12mo ago
Issues importing FullCalendar
JoshJJosh / help
2y ago