Directory

← Back

Pdf Viewer

Component for displaying PDF files in the browser

Author

Rating

Popularity

2700+

This is the server-side component of <vcf-pdf-viewer> Web Component. The component uses PDF.js library to display pdf files.

This component is part of Vaadin Component Factory.

Features

  • Display a pdf file.
  • Display a thumbnail's viewer.
  • Set zoom
  • Navigate to a certain page.
  • Open or close thumbnail's viewer.
  • Add a listener on change page when clicking on thumbnail.
  • Download the pdf file

Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing

Sample code

    PdfViewer pdfViewer = new PdfViewer();
    StreamResource resource = new StreamResource("example.pdf", () -> getClass().getResourceAsStream("/pdf/example.pdf"));
    pdfViewer.setSrc(resource);
    add(pdfViewer);    

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

Bug fixes:

Prevent download and print buttons from added multiple times (#45)

Released
2024-01-05
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 24
Vaadin 24.1
Vaadin 24.2
Vaadin 21 in 1.0.0
Vaadin 20 in 1.0.0
Vaadin 19 in 1.0.0
Vaadin 18 in 1.0.0
Vaadin 17 in 1.0.0
Vaadin 16 in 1.0.0
Vaadin 15 in 1.0.0
Vaadin 14 in 1.0.0
Vaadin 22 in 2.0.0
Vaadin 23 in 2.0.0
Browser
Firefox
Safari
Google Chrome
iOS Browser
Android Browser
Microsoft Edge

Pdf Viewer - Vaadin Add-on Directory

Component for displaying PDF files in the browser Pdf Viewer - Vaadin Add-on Directory
This is the server-side component of [`` Web Component](https://github.com/vaadin-component-factory/vcf-pdf-viewer). The component uses [PDF.js](https://github.com/mozilla/pdf.js) library to display pdf files. This component is part of Vaadin Component Factory. ## Features * Display a pdf file. * Display a thumbnail's viewer. * Set zoom * Navigate to a certain page. * Open or close thumbnail's viewer. * Add a listener on change page when clicking on thumbnail. * Download the pdf file #### Sponsored development Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: [Support](https://vaadin.com/support) and [Pricing](https://vaadin.com/pricing)
Online