You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,8 @@
3
3
</p>
4
4
<h1align="center">pdfjs-viewer-element</h1>
5
5
6
-
A custom element, based on [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) and supported in all [major browsers](https://caniuse.com/custom-elementsv1), works with most used [JS frameworks](https://custom-elements-everywhere.com/).
7
-
8
-
See [examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage in Vue, React and Svelte or static HTML page.
6
+
Probably the simplest integration of PDF.js viewer.
7
+
The package provide a custom element, based on [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html), supported in all [major browsers](https://caniuse.com/custom-elementsv1), and works with most [JS frameworks](https://custom-elements-everywhere.com/).
9
8
10
9
⚠️ `pdfjs-viewer-element` requires PDF.js [prebuilt](http://mozilla.github.io/pdf.js/getting_started/), that includes the generic build of PDF.js and the viewer.
11
10
@@ -20,7 +19,9 @@ The prebuilt comes with each PDF.js release. Supported releases:
20
19
21
20
To use the package you should download and **place the prebuilt** files to some directory of your project.
22
21
23
-
Then specify the path to this directory with `viewer-path` property (`/pdfjs` by default).
22
+
Then specify the path to the directory with `viewer-path` property (`/pdfjs` by default).
23
+
24
+
See [examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage in Vue, React, Svelte or simple HTML page.
24
25
25
26
## Status
26
27
@@ -45,6 +46,8 @@ Using module bundlers:
45
46
npm install pdfjs-viewer-element
46
47
# With yarn
47
48
yarn add pdfjs-viewer-element
49
+
# With pnpm
50
+
pnpm add pdfjs-viewer-element
48
51
```
49
52
50
53
```javascript
@@ -87,7 +90,7 @@ Using browser:
87
90
88
91
`viewer-extra-styles` - Add your CSS rules to viewer application
89
92
90
-
For more clarity, see the[Api docs page](https://alekswebnet.github.io/pdfjs-viewer-element/#api).
93
+
Play with attributes on[Api docs page](https://alekswebnet.github.io/pdfjs-viewer-element/#api).
0 commit comments