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.
Pdf Viewer component provides support to the following features:
From version 2.5.x:
mvn clean install
mvn jetty:run
This deploys demo at http://localhost:8080
PdfViewer pdfViewer = new PdfViewer();
StreamResource resource = new StreamResource("example.pdf", () -> getClass().getResourceAsStream("/pdf/example.pdf"));
pdfViewer.setSrc(resource);
pdfViewer.openThumbnailsView();
add(pdfViewer);
You can report any issue or missing feature on GitHub.
Apache License 2.0.