pdf-browser
Renders a PDF using the browser's native viewer.
Vaadin 10 Java integration of the <pdf-browser-viewer> web component (https://github.com/IngressoRapidoWebComponents/pdf-browser-viewer).
Usage
StreamResource streamResource = new StreamResource(
"report.pdf", () -> getClass().getResourceAsStream("/report.pdf")); // file in src/main/resources/
PdfBrowserViewer viewer = new PdfBrowserViewer(streamResource);
viewer.setHeight("100%");
layout.add(viewer);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Updated to lrnwebcomponents/pdf-browser-viewer 2.7.10 and Vaadin 14.5.3.
- Released
- 2021-04-30
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 14+
- Vaadin 10 in 1.0.0-alpha
- Vaadin 23+ in 3.2.0
- Browser
- N/A