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
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# pdfjs-viewer-element
2
2
3
-
A web component for viewing pdf files in the browser. The package is based on [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) build and works with any framework.
3
+
A custom element, based on [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html). Works in all [major browsers](https://caniuse.com/custom-elementsv1) and with most [JS frameworks](https://custom-elements-everywhere.com/). See [examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage in the different frameworks.
4
4
5
-
⚠️ `pdfjs-viewer-element`uses PDF.js [prebuilt](http://mozilla.github.io/pdf.js/getting_started/), that includes the generic build of PDF.js and the viewer. To use the package you should download and **place the prebuilt** files to some directory of your project. Then specify the path to this directory with `viewer-path` property (`/pdfjs` by default).
5
+
⚠️ `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. To use the package you should download and **place the prebuilt** files to some directory of your project. Then specify the path to this directory with `viewer-path` property (`/pdfjs` by default).
6
6
7
7
## Status
8
8
@@ -49,9 +49,9 @@ Using browser:
49
49
50
50
`src` - Path to pdf file
51
51
52
-
`viewer-path` - Path to PDF.js prebuilt
52
+
`viewer-path` - Path to PDF.js [prebuilt](http://mozilla.github.io/pdf.js/getting_started/)
53
53
54
-
`locale` - Language of the interface, see [all l10n files](https://github.com/mozilla/pdf.js/tree/master/l10n)
54
+
`locale` - Specifies which language to use in the viewer UI. For a list of the available locales, see [all l10n files](https://github.com/mozilla/pdf.js/tree/master/l10n)
55
55
56
56
`text-layer` - Text layer, that is used for text selection
57
57
@@ -68,6 +68,4 @@ Using browser:
68
68
For more clarity, see the [Api docs page](https://alekswebnet.github.io/pdfjs-viewer-element/#api).
69
69
70
70
## License
71
-
For this package - [MIT](http://opensource.org/licenses/MIT).
72
-
73
-
For the `pdf.js` library - https://github.com/mozilla/pdf.js/blob/master/LICENSE.
0 commit comments