Directory

← Back

pdf-browser

Renders a PDF using the browser's native viewer.

Author

Contributors

Rating

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);

Compatibility

(Loading compatibility data...)

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

Upgrades to Vaadin 23.2.3. Fixes #12 - Reduce dependencies (thanks for your contribution Gregor Dschung!)

Released
2022-10-05
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 23+
Vaadin 14+ in 3.1.0
Vaadin 10 in 1.0.0-alpha1
Browser
N/A
Online