Skip to content

Commit 72f1c85

Browse files
authored
Update README.md
1 parent 9a31e82 commit 72f1c85

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and wo
1010
See [demo pages](https://github.com/alekswebnet/pdfjs-viewer-element/tree/master/demo) for various usecases.
1111
See [live examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage with frameworks.
1212

13-
⚠️ `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.
13+
## How it works
1414

15-
The prebuilt comes with each PDF.js release. Supported all v4 and v3 [releases](https://github.com/mozilla/pdf.js/releases).
15+
**⚠️ This is an important part !!!**
16+
17+
**You should download and place the PDF.js prebuilt files in the project.**
1618

17-
To use the package you should download and **place the prebuilt** files in the project.
19+
`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.
20+
21+
The prebuilt comes with each PDF.js release. Supported all v4 and v3 [releases](https://github.com/mozilla/pdf.js/releases).
1822

19-
Then specify the path to the directory with the `viewer-path` property (`/pdfjs` by default).
23+
Then specify the path to the directory with the `viewer-path` property (`/pdfjs` by default) and PDF file URL with `src` property (should refer to the [same origin](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#can-i-load-a-pdf-from-another-server-cross-domain-request)).
2024

2125
## Status
2226

0 commit comments

Comments
 (0)