alekswebnet / pdfjs-viewer-element

The simplest integration of PDF.js default viewer using the iframe element and web component
https://alekswebnet.github.io/pdfjs-viewer-element/
29 stars 2 forks source link

release pdfjs-dist with viewer.html #34

Open prabirshrestha opened 2 months ago

prabirshrestha commented 2 months ago

Since pdfjs-dist doesn't ship with viwer.html is it possible to release another package that ships all the files?

Similar to https://www.npmjs.com/package/pdfjs-dist-ei-11-with-viewer and https://www.npmjs.com/package/@awlsn/pdfjs-full.

This would allow using npm instead of downloading and checking which makes it easy for getting started with node modules.

alekswebnet commented 2 months ago

@prabirshrestha I don't plan to release a whole PDF.js prebuilt. You can install any of these packages (or release your own) and pass the link to the viewer using viewer-path. See this demo - https://github.com/alekswebnet/pdfjs-viewer-element/blob/master/demo/viewer-prebuilt-from-npm-package.html