Skip to content

Commit 08ace93

Browse files
committed
Fix readme
1 parent 0f47fd1 commit 08ace93

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ Supported in all [major browsers](https://caniuse.com/custom-elementsv1), and wo
1414

1515
## Features
1616

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
2425

2526
## Docs
2627

@@ -59,7 +60,7 @@ import 'pdfjs-viewer-element'
5960

6061
## Attributes
6162

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
6364

6465
`iframe-title` - The title of the `iframe` element, required for better accessibility
6566

0 commit comments

Comments
 (0)