Directory

← Back

pdf-browser

Renders a PDF using the browser's native viewer.

Author

Rating

Popularity

600+

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 10 in 1.0.0-alpha
Vaadin 14+ in 2.0.0
Browser
N/A

pdf-browser - Vaadin Add-on Directory

Renders a PDF using the browser's native viewer. pdf-browser - Vaadin Add-on Directory
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); ```
Online