pdf-browser | Vaadin

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

Install

Link to this version
StableReleased 05 October 2022Apache License 2.0
Framework Support
Vaadin platform 23+
Install with
Release notes - Version 3.2.0

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