Skip to content

Commit 1bc10f3

Browse files
committed
docs: update readme
1 parent aa4c937 commit 1bc10f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ pdfViewer.setSrc(resource);
4141
pdfViewer.openThumbnailsView();
4242
add(pdfViewer);
4343
```
44+
45+
#### Since version 5.0.0 - DownloadHandler support
46+
```java
47+
PdfViewer pdfViewer = new PdfViewer();
48+
pdfViewer.setSrc(DownloadHandler.forClassResource(getClass(), "/pdf/example.pdf"));
49+
add(pdfViewer);
50+
```
51+
4452
## Missing features or bugs
4553

4654
You can report any issue or missing feature on [GitHub](https://github.com/vaadin-component-factory/vcf-pdf-viewer/issues).

0 commit comments

Comments
 (0)