ng2-pdfjs-viewer 26.0.1 → 26.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/package.json +3 -3
- package/pdfjs/web/ng2-customization.css +7 -0
package/README.md
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://raw.githubusercontent.com/intbot/ng2-pdfjs-viewer/master/lib/
|
|
3
|
+
<img src="https://raw.githubusercontent.com/intbot/ng2-pdfjs-viewer/master/lib/pdf-viewer-banner.png" alt="#1 Angular PDF Viewer — ng2-pdfjs-viewer: AI-enabled, feature-rich and comprehensive. 8.3M+ downloads, 0 runtime dependencies, 8 years (since 2018), Angular 10–22." width="880" />
|
|
4
4
|
|
|
5
5
|
# ng2-pdfjs-viewer
|
|
6
6
|
|
|
7
7
|
**A complete PDF experience in one Angular component — view, annotate, sign, fill forms, search, and read aloud, powered by Mozilla PDF.js.**
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/ng2-pdfjs-viewer)
|
|
10
|
+
[](https://www.npmjs.com/package/ng2-pdfjs-viewer)
|
|
11
|
+
[](https://www.npmjs.com/package/ng2-pdfjs-viewer)
|
|
12
|
+
[](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/BILL-OF-MATERIALS.md)
|
|
13
|
+
[](https://github.com/mozilla/pdf.js)
|
|
14
|
+
[](https://angular.dev)
|
|
15
|
+
[](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/LICENSE)
|
|
16
|
+
[](https://github.com/intbot/ng2-pdfjs-viewer)
|
|
16
17
|
[](https://scorecard.dev/viewer/?uri=github.com/intbot/ng2-pdfjs-viewer)
|
|
17
18
|
|
|
18
19
|
[**Live demo**](https://angular-pdf-viewer-demo.vercel.app/) · [**Documentation**](https://angular-pdf-viewer-docs.vercel.app/) · [**API reference**](https://angular-pdf-viewer-docs.vercel.app/docs/api/component-inputs) · [**Changelog**](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CHANGELOG.md)
|
|
@@ -22,11 +23,11 @@
|
|
|
22
23
|
---
|
|
23
24
|
|
|
24
25
|
Drop a production PDF viewer into any Angular app with a single tag. ng2-pdfjs-viewer wraps
|
|
25
|
-
|
|
26
|
+
**PDF.js 6** in one declarative `<ng2-pdfjs-viewer>` component: rendering, navigation,
|
|
26
27
|
search, printing, theming, annotations, e-signatures, AcroForms, read-aloud, and a bring-your-own
|
|
27
28
|
AI assistant — all driven by typed `@Input()`s and `@Output()` events, no iframe plumbing of your own.
|
|
28
29
|
|
|
29
|
-
Shipping since **2018**, **
|
|
30
|
+
Shipping since **2018**, **8.3+ million downloads**, mobile-first, and built & verified on **Angular 22**
|
|
30
31
|
while keeping a wide `>=10` peer range so existing apps upgrade without churn.
|
|
31
32
|
|
|
32
33
|
```bash
|
|
@@ -43,7 +44,7 @@ That's the whole integration. [Wire up the assets](#-quick-start) and you have a
|
|
|
43
44
|
|
|
44
45
|
| | |
|
|
45
46
|
|---|---|
|
|
46
|
-
| 📄 **View anything** | Crisp
|
|
47
|
+
| 📄 **View anything** | Crisp, high-fidelity rendering, zoom, navigation, thumbnails, outline, printing — embedded, in a new tab, or a popout window. |
|
|
47
48
|
| ✍️ **Annotate & sign** | Highlight, draw, free-text, and stamp editors; opt-in draw/type/upload **signature** editor and threaded comments. Export and restore edits for a full server round-trip. |
|
|
48
49
|
| 🧾 **Fill forms** | Two-way AcroForm binding — read and write field values from your component, save the filled document as a blob. |
|
|
49
50
|
| 🔎 **Search in code** | Programmatic `search()` with totals, per-page counts, and next/previous navigation — build your own find UI. |
|
|
@@ -197,13 +198,13 @@ See [CONTRIBUTING.md](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CON
|
|
|
197
198
|
|
|
198
199
|
## 📄 License
|
|
199
200
|
|
|
200
|
-
[Apache-2.0
|
|
201
|
+
[Apache-2.0 (Commons Clause)](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/LICENSE). Free to use, modify, and self-host; the Commons
|
|
201
202
|
Clause restricts selling the software itself as a hosted/commercial product.
|
|
202
203
|
|
|
203
204
|
## 🙏 Acknowledgments
|
|
204
205
|
|
|
205
206
|
Built on the excellent [Mozilla PDF.js](https://github.com/mozilla/pdf.js), and shaped over the
|
|
206
|
-
years by a community of contributors and
|
|
207
|
+
years by a community of contributors and 8.3+ million downloads' worth of real-world use.
|
|
207
208
|
|
|
208
209
|
---
|
|
209
210
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng2-pdfjs-viewer",
|
|
3
|
-
"version": "26.0.
|
|
4
|
-
"description": "The most comprehensive Angular PDF viewer, powered by Mozilla PDF.js 6 — view, annotate, sign, fill forms, search, and read aloud from one component.
|
|
3
|
+
"version": "26.0.2",
|
|
4
|
+
"description": "The most comprehensive Angular PDF viewer, powered by Mozilla PDF.js 6 — view, annotate, sign, fill forms, search, and read aloud from one component. 8.3M+ downloads, mobile-first, production-ready.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aneesh Goapalakrishnan",
|
|
7
7
|
"email": "codehippie1@gmail.com"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"accessibility",
|
|
52
52
|
"open-source"
|
|
53
53
|
],
|
|
54
|
-
"license": "Apache-2.0
|
|
54
|
+
"license": "Apache-2.0 (Commons Clause)",
|
|
55
55
|
"readme": "README.md",
|
|
56
56
|
"exports": {
|
|
57
57
|
"./package.json": {
|
|
@@ -166,6 +166,12 @@ body #outerContainer.sidebar-right.viewsManagerOpen #loadingBar {
|
|
|
166
166
|
/* Light theme defaults */
|
|
167
167
|
.ng2-theme-light,
|
|
168
168
|
.ng2-theme-light-active {
|
|
169
|
+
/* Pin the UA color-scheme so PDF.js's light-dark() colours (toolbar/menu
|
|
170
|
+
icons, form controls, scrollbars) resolve to the SELECTED theme instead of
|
|
171
|
+
the OS preference. Without this, when the app theme differs from the OS
|
|
172
|
+
theme the icons inherit :root's `color-scheme: light dark` and become
|
|
173
|
+
invisible (e.g. light icons on a light toolbar). */
|
|
174
|
+
color-scheme: light;
|
|
169
175
|
--ng2-default-bg: #d4d4d7; /* PDF.js original grey background */
|
|
170
176
|
--ng2-default-text: #000000;
|
|
171
177
|
--ng2-default-toolbar: #f9f9f9;
|
|
@@ -175,6 +181,7 @@ body #outerContainer.sidebar-right.viewsManagerOpen #loadingBar {
|
|
|
175
181
|
/* Dark theme defaults */
|
|
176
182
|
.ng2-theme-dark,
|
|
177
183
|
.ng2-theme-dark-active {
|
|
184
|
+
color-scheme: dark;
|
|
178
185
|
--ng2-default-bg: #1e1e1e;
|
|
179
186
|
--ng2-default-text: #ffffff;
|
|
180
187
|
--ng2-default-toolbar: #333333;
|