vaadin-component-factory / vcf-pdf-viewer-flow

Vaadin Addon for providing pdf viewing functionality
Apache License 2.0
9 stars 6 forks source link
addon pdf-viewer vaadin

Pdf Viewer component for Vaadin Flow

This is the server-side component of <vcf-pdf-viewer> Web Component. The component uses PDF.js library to display pdf files.

This component is part of Vaadin Component Factory.

Description

Pdf Viewer component provides support to the following features:

From version 2.5.x:

Development instructions

How to use it - Example

PdfViewer pdfViewer = new PdfViewer();
StreamResource resource = new StreamResource("example.pdf", () -> getClass().getResourceAsStream("/pdf/example.pdf"));
pdfViewer.setSrc(resource);
pdfViewer.openThumbnailsView();
add(pdfViewer);    

Missing features or bugs

You can report any issue or missing feature on GitHub.

License

Apache License 2.0.