@vaadin-component-factory/vcf-pdf-viewer
v4.0.2
Published
Lit element providing pdf viewer
Readme
<vcf-pdf-viewer>
<vcf-pdf-viewer> is a Web Component that provides a PDF viewer functionality. The component is developed in Lit and uses Mozilla's PDF.js
This component is part of Vaadin Component Factory.
Running demo
Fork the
vcf-pdf-viewerrepository and clone it locally.Make sure you have npm installed.
When in the
vcf-pdf-viewerdirectory, runnpm installto install dependencies.Run
npm startto open the demo.
Development & publishing
DO NOT run npm run build before publishing a new release.
The pdfjs/dist files committed in this repository are manually edited to ensure correct module resolution. Running the build script will overwrite these files, generating incompatible file paths that will cause the component to fail when trying to resolve dependencies.
Only run npm run build if you are intentionally modifying the pdfjs dependency and are prepared to manually fix the resulting path references.
Contributing
To contribute to the component, please read the guideline first.
License
Apache License 2.0.
