Directory

← Back

pdf-browser

Renders a PDF using the browser's native viewer.

Author

Rating

Popularity

700+

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); ```
Author Homepage
Original web component
Source code

pdf-browser version 1.0.0-alpha

pdf-browser version 1.0.0-alpha1
Fixed width and height setting.

pdf-browser version 2.0.0
Updated to Vaadin 14.0.2 (compatibility mode)

pdf-browser version 3.0.0
Supports Vaadin 14

pdf-browser version 3.0.1
Fixes #8 Problem with @lrnwebcomponents/pdf-browser-viewer version. Updates to Vaadin 14.3.4.

pdf-browser version 3.1.0
Updated to lrnwebcomponents/pdf-browser-viewer 2.7.10 and Vaadin 14.5.3.

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

Online