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
+37-18Lines changed: 37 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,22 @@ Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and wo
10
10
See [demo pages](https://github.com/alekswebnet/pdfjs-viewer-element/tree/master/demo) for various usecases.
11
11
See [live examples](https://alekswebnet.github.io/pdfjs-viewer-element/#demo) of usage with frameworks.
12
12
13
+
# Features
14
+
15
+
- Simple PDF.js viewer integration to any web application
16
+
- PDF.js viewer options and parameters support, access to the viewer application instance
17
+
- Ability to customize viewer styles and themes
18
+
13
19
## How it works
14
20
15
-
**⚠️ This is an important part !!!**
21
+
**⚠️ This is an important part, please read this firstly !!!**
16
22
17
23
**You should download and place the PDF.js prebuilt files in the project.**
18
24
19
25
`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
26
21
-
The prebuilt comes with each PDF.js release. Supported all v4 and v3 [releases](https://github.com/mozilla/pdf.js/releases).
27
+
The prebuilt comes with each PDF.js release.
28
+
All v4 and v3 [releases](https://github.com/mozilla/pdf.js/releases) are supported.
22
29
23
30
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)).
`disable-worker` - Disables the worker, `true` to enable.
77
96
78
-
`text-layer` - Text layer, that is used for text selection `off | visible | shadow | hover`
97
+
`text-layer` - Disables or reveals the text layer that is used for text selection,`off | visible | shadow | hover`.
79
98
80
-
`page` - Page number
99
+
`disable-font-face` - Disables standard `@font-face` font loading and uses the internal font renderer instead, `true` to enable.
81
100
82
-
`nameddest` - Go to a named destination
101
+
`disable-range` - Disables HTTP range requests when fetching the document, `true` to enable.
83
102
84
-
`search` - Search text
103
+
`disable-stream` - Disables streaming when fetching the document, `true` to enable.
85
104
86
-
`phrase` - Search by phrase
105
+
`disable-auto-fetch`- Disables auto fetching of the document; only gets necessary data to display the current view. Note: streaming also needs to be disabled for this to have any effect, `true` to enable.
87
106
88
-
`zoom` - Zoom level
107
+
`verbosity`- Specifies the verbosity level of console messages. `0` - only errors, `1` - warnings and errors, `5` - warnings, errors and information messages.
0 commit comments