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
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,14 @@ Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and wo
14
14
15
15
## Features
16
16
17
-
- Standalone web component with no runtime dependencies
18
-
- Drop-in, iframe-based PDF.js default viewer for any web app
19
-
- Configure via attributes and URL parameters (page, zoom, search, pagemode, locale, named destination)
20
-
- Programmatic access to `PDFViewerApplication` and `PDFViewerApplicationOptions` via the `initialized` event
21
-
- Theme control (automatic/light/dark) plus custom CSS injection or external stylesheets
22
-
- Locale override support using PDF.js viewer locales
23
-
- Works in modern browsers and most JS frameworks
17
+
✅ Standalone web component with no runtime dependencies
18
+
✅ Drop-in, iframe-based PDF.js default viewer for any web app
19
+
✅ Works with same-origin and cross-origin PDF documents
20
+
✅ Configure via attributes and URL parameters (page, zoom, search, pagemode, locale)
21
+
✅ Programmatic access to `PDFViewerApplication` and `PDFViewerApplicationOptions` via the `initialized` event
22
+
✅ Theme control (automatic/light/dark) plus custom CSS injection or external stylesheets
23
+
✅ Locale override support using PDF.js viewer locales
24
+
✅ Supports all modern browsers and most JS frameworks
24
25
25
26
## Docs
26
27
@@ -59,7 +60,7 @@ import 'pdfjs-viewer-element'
59
60
60
61
## Attributes
61
62
62
-
`src` - PDF file URL, 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)
63
+
`src` - PDF file URL
63
64
64
65
`iframe-title` - The title of the `iframe` element, required for better accessibility
0 commit comments