Skip to content

Commit 855c608

Browse files
authored
Merge pull request #31 from alekswebnet/alekswebnet-patch-1
Update README.md
2 parents 7c67b48 + c38a51c commit 855c608

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
</p>
44
<h1 align="center">pdfjs-viewer-element</h1>
55

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/).
6+
The simplest integration of PDF.js viewer using the `iframe` element and web component.
7+
The package provides 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/).
8+
9+
See [examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage in Vue, React, Svelte, or simple HTML pages.
810

911
⚠️ `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.
1012

@@ -17,11 +19,9 @@ The prebuilt comes with each PDF.js release. Supported releases:
1719
[v4.0.189](https://github.com/mozilla/pdf.js/releases/tag/v4.0.189)
1820

1921

20-
To use the package you should download and **place the prebuilt** files to some directory of your project.
21-
22-
Then specify the path to the directory with `viewer-path` property (`/pdfjs` by default).
22+
To use the package you should download and **place the prebuilt** files in the project.
2323

24-
See [examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage in Vue, React, Svelte or simple HTML page.
24+
Then specify the path to the directory with the `viewer-path` property (`/pdfjs` by default).
2525

2626
## Status
2727

@@ -86,9 +86,9 @@ Using browser:
8686

8787
`pagemode` - Page mode `thumbs | bookmarks | attachments | layers | none`
8888

89-
`viewer-css-theme` - Apply automatic, light or dark theme `AUTOMATIC | LIGHT | DARK`
89+
`viewer-css-theme` - Apply automatic, light, or dark theme `AUTOMATIC | LIGHT | DARK`
9090

91-
`viewer-extra-styles` - Add your CSS rules to viewer application
91+
`viewer-extra-styles` - Add your CSS rules to the viewer application
9292

9393
Play with attributes on [Api docs page](https://alekswebnet.github.io/pdfjs-viewer-element/#api).
9494

@@ -138,4 +138,4 @@ viewerApp.eventBus.on('pagesloaded', () => {
138138
```
139139

140140
## License
141-
[MIT](http://opensource.org/licenses/MIT)
141+
[MIT](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)