Skip to content

Commit 0d7920a

Browse files
committed
Update readme
1 parent 83eef09 commit 0d7920a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# pdfjs-viewer-element
22

3-
Custom element that embeds [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) using the `iframe`.
4-
5-
The package provides a custom element, based on PDF.js [viewer options](https://github.com/mozilla/pdf.js/wiki/Viewer-options) and [URL parameters](https://github.com/mozilla/pdf.js/wiki/Debugging-PDF.js#url-parameters) API.
6-
7-
Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and works with most [JS frameworks](https://custom-elements-everywhere.com/).
3+
Standalone, isolated, drop-in [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html).
84

95
[![npm version](https://img.shields.io/npm/v/pdfjs-viewer-element?logo=npm&logoColor=fff)](https://www.npmjs.com/package/pdfjs-viewer-element)
106
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/alekswebnet/pdfjs-viewer-element)
@@ -17,11 +13,12 @@ Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and wo
1713
- Standalone isolated web component with no runtime dependencies
1814
- Drop-in, iframe-based PDF.js default viewer for any web app
1915
- Works with same-origin and cross-origin PDF documents
20-
- Configure via attributes and URL parameters (page, zoom, search, pagemode, locale)
16+
- Configure via attributes (page, zoom, search, pagemode, locale)
2117
- Programmatic access to `PDFViewerApplication` via the `initPromise` public property
2218
- Built-in Paper & Ink default theme, with theme control (automatic/light/dark) and custom CSS injection
19+
- Resource path attributes for PDF.js internals (`worker-src`, `c-map-url`, `icc-url`, `standard-font-data-url`, `wasm-url`, and more)
2320
- Locale override support using PDF.js viewer locales
24-
- Supports all modern browsers and most JS frameworks
21+
- Supports all [major browsers](https://caniuse.com/custom-elementsv1) and most [JS frameworks](https://custom-elements-everywhere.com/).
2522

2623
## Docs
2724

image.webp

251 KB
Loading

0 commit comments

Comments
 (0)