ng2-pdfjs-viewer 25.0.18 → 26.0.0

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.
Files changed (208) hide show
  1. package/LICENSE +231 -231
  2. package/README.md +117 -861
  3. package/fesm2022/ng2-pdfjs-viewer-ai.mjs +106 -0
  4. package/fesm2022/ng2-pdfjs-viewer.mjs +1878 -1110
  5. package/package.json +20 -15
  6. package/pdfjs/build/pdf.mjs +1 -1
  7. package/pdfjs/build/pdf.sandbox.mjs +1 -1
  8. package/pdfjs/build/pdf.worker.mjs +1 -1
  9. package/pdfjs/web/images/altText_add.svg +3 -3
  10. package/pdfjs/web/images/altText_disclaimer.svg +3 -3
  11. package/pdfjs/web/images/altText_done.svg +3 -3
  12. package/pdfjs/web/images/altText_spinner.svg +30 -30
  13. package/pdfjs/web/images/altText_warning.svg +3 -3
  14. package/pdfjs/web/images/annotation-paperclip.svg +6 -6
  15. package/pdfjs/web/images/annotation-pushpin.svg +7 -7
  16. package/pdfjs/web/images/checkmark.svg +5 -0
  17. package/pdfjs/web/images/comment-actionsButton.svg +3 -0
  18. package/pdfjs/web/images/comment-closeButton.svg +3 -0
  19. package/pdfjs/web/images/comment-editButton.svg +8 -0
  20. package/pdfjs/web/images/comment-popup-editButton.svg +5 -0
  21. package/pdfjs/web/images/cursor-editorFreeHighlight.svg +6 -6
  22. package/pdfjs/web/images/cursor-editorFreeText.svg +3 -3
  23. package/pdfjs/web/images/cursor-editorInk.svg +4 -4
  24. package/pdfjs/web/images/cursor-editorTextHighlight.svg +8 -8
  25. package/pdfjs/web/images/editor-toolbar-delete.svg +4 -4
  26. package/pdfjs/web/images/editor-toolbar-edit.svg +3 -3
  27. package/pdfjs/web/images/findbarButton-next.svg +3 -3
  28. package/pdfjs/web/images/findbarButton-previous.svg +3 -3
  29. package/pdfjs/web/images/gv-toolbarButton-download.svg +3 -3
  30. package/pdfjs/web/images/messageBar_closingButton.svg +3 -3
  31. package/pdfjs/web/images/messageBar_info.svg +3 -3
  32. package/pdfjs/web/images/messageBar_warning.svg +3 -3
  33. package/pdfjs/web/images/pages_closeButton.svg +3 -0
  34. package/pdfjs/web/images/pages_selected.svg +7 -0
  35. package/pdfjs/web/images/pages_viewArrow.svg +3 -0
  36. package/pdfjs/web/images/pages_viewButton.svg +3 -0
  37. package/pdfjs/web/images/secondaryToolbarButton-documentProperties.svg +3 -3
  38. package/pdfjs/web/images/secondaryToolbarButton-firstPage.svg +3 -3
  39. package/pdfjs/web/images/secondaryToolbarButton-handTool.svg +3 -3
  40. package/pdfjs/web/images/secondaryToolbarButton-lastPage.svg +3 -3
  41. package/pdfjs/web/images/secondaryToolbarButton-rotateCcw.svg +3 -3
  42. package/pdfjs/web/images/secondaryToolbarButton-rotateCw.svg +3 -3
  43. package/pdfjs/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -3
  44. package/pdfjs/web/images/secondaryToolbarButton-scrollPage.svg +3 -3
  45. package/pdfjs/web/images/secondaryToolbarButton-scrollVertical.svg +3 -3
  46. package/pdfjs/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -3
  47. package/pdfjs/web/images/secondaryToolbarButton-selectTool.svg +3 -3
  48. package/pdfjs/web/images/secondaryToolbarButton-spreadEven.svg +3 -3
  49. package/pdfjs/web/images/secondaryToolbarButton-spreadNone.svg +3 -3
  50. package/pdfjs/web/images/secondaryToolbarButton-spreadOdd.svg +3 -3
  51. package/pdfjs/web/images/toolbarButton-bookmark.svg +3 -3
  52. package/pdfjs/web/images/toolbarButton-currentOutlineItem.svg +3 -3
  53. package/pdfjs/web/images/toolbarButton-download.svg +4 -4
  54. package/pdfjs/web/images/toolbarButton-editorFreeText.svg +5 -5
  55. package/pdfjs/web/images/toolbarButton-editorHighlight.svg +5 -5
  56. package/pdfjs/web/images/toolbarButton-editorInk.svg +4 -4
  57. package/pdfjs/web/images/toolbarButton-editorSignature.svg +6 -6
  58. package/pdfjs/web/images/toolbarButton-editorStamp.svg +8 -8
  59. package/pdfjs/web/images/toolbarButton-menuArrow.svg +3 -3
  60. package/pdfjs/web/images/toolbarButton-openFile.svg +3 -3
  61. package/pdfjs/web/images/toolbarButton-pageDown.svg +3 -3
  62. package/pdfjs/web/images/toolbarButton-pageUp.svg +3 -3
  63. package/pdfjs/web/images/toolbarButton-presentationMode.svg +3 -3
  64. package/pdfjs/web/images/toolbarButton-print.svg +3 -3
  65. package/pdfjs/web/images/toolbarButton-search.svg +3 -3
  66. package/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -3
  67. package/pdfjs/web/images/toolbarButton-viewAttachments.svg +3 -3
  68. package/pdfjs/web/images/toolbarButton-viewLayers.svg +3 -3
  69. package/pdfjs/web/images/toolbarButton-viewOutline.svg +3 -3
  70. package/pdfjs/web/images/toolbarButton-viewThumbnail.svg +3 -3
  71. package/pdfjs/web/images/{toolbarButton-sidebarToggle.svg → toolbarButton-viewsManagerToggle.svg} +3 -3
  72. package/pdfjs/web/images/toolbarButton-zoomIn.svg +3 -3
  73. package/pdfjs/web/images/toolbarButton-zoomOut.svg +3 -3
  74. package/pdfjs/web/locale/ach/viewer.ftl +200 -275
  75. package/pdfjs/web/locale/af/viewer.ftl +179 -262
  76. package/pdfjs/web/locale/an/viewer.ftl +228 -307
  77. package/pdfjs/web/locale/ar/viewer.ftl +779 -627
  78. package/pdfjs/web/locale/ast/viewer.ftl +172 -251
  79. package/pdfjs/web/locale/az/viewer.ftl +228 -307
  80. package/pdfjs/web/locale/be/viewer.ftl +755 -618
  81. package/pdfjs/web/locale/bg/viewer.ftl +388 -451
  82. package/pdfjs/web/locale/bn/viewer.ftl +218 -297
  83. package/pdfjs/web/locale/bo/viewer.ftl +222 -297
  84. package/pdfjs/web/locale/bqi/viewer.ftl +67 -0
  85. package/pdfjs/web/locale/br/viewer.ftl +323 -370
  86. package/pdfjs/web/locale/brx/viewer.ftl +189 -268
  87. package/pdfjs/web/locale/bs/viewer.ftl +588 -273
  88. package/pdfjs/web/locale/ca/viewer.ftl +274 -343
  89. package/pdfjs/web/locale/cak/viewer.ftl +264 -341
  90. package/pdfjs/web/locale/ckb/viewer.ftl +213 -292
  91. package/pdfjs/web/locale/cs/viewer.ftl +763 -621
  92. package/pdfjs/web/locale/cy/viewer.ftl +779 -627
  93. package/pdfjs/web/locale/da/viewer.ftl +729 -615
  94. package/pdfjs/web/locale/de/viewer.ftl +747 -615
  95. package/pdfjs/web/locale/dsb/viewer.ftl +763 -621
  96. package/pdfjs/web/locale/el/viewer.ftl +747 -615
  97. package/pdfjs/web/locale/en-CA/viewer.ftl +747 -610
  98. package/pdfjs/web/locale/en-GB/viewer.ftl +747 -615
  99. package/pdfjs/web/locale/en-US/viewer.ftl +787 -640
  100. package/pdfjs/web/locale/eo/viewer.ftl +747 -615
  101. package/pdfjs/web/locale/es-AR/viewer.ftl +747 -615
  102. package/pdfjs/web/locale/es-CL/viewer.ftl +747 -615
  103. package/pdfjs/web/locale/es-ES/viewer.ftl +747 -615
  104. package/pdfjs/web/locale/es-MX/viewer.ftl +747 -580
  105. package/pdfjs/web/locale/et/viewer.ftl +246 -319
  106. package/pdfjs/web/locale/eu/viewer.ftl +751 -619
  107. package/pdfjs/web/locale/fa/viewer.ftl +322 -378
  108. package/pdfjs/web/locale/ff/viewer.ftl +222 -297
  109. package/pdfjs/web/locale/fi/viewer.ftl +747 -615
  110. package/pdfjs/web/locale/fr/viewer.ftl +743 -611
  111. package/pdfjs/web/locale/fur/viewer.ftl +648 -615
  112. package/pdfjs/web/locale/fy-NL/viewer.ftl +747 -615
  113. package/pdfjs/web/locale/ga-IE/viewer.ftl +180 -263
  114. package/pdfjs/web/locale/gd/viewer.ftl +266 -343
  115. package/pdfjs/web/locale/gl/viewer.ftl +591 -414
  116. package/pdfjs/web/locale/gn/viewer.ftl +746 -614
  117. package/pdfjs/web/locale/gu-IN/viewer.ftl +222 -297
  118. package/pdfjs/web/locale/he/viewer.ftl +747 -615
  119. package/pdfjs/web/locale/hi-IN/viewer.ftl +221 -297
  120. package/pdfjs/web/locale/hr/viewer.ftl +723 -552
  121. package/pdfjs/web/locale/hsb/viewer.ftl +763 -621
  122. package/pdfjs/web/locale/hu/viewer.ftl +747 -615
  123. package/pdfjs/web/locale/hy-AM/viewer.ftl +637 -314
  124. package/pdfjs/web/locale/hye/viewer.ftl +242 -318
  125. package/pdfjs/web/locale/ia/viewer.ftl +747 -615
  126. package/pdfjs/web/locale/id/viewer.ftl +589 -603
  127. package/pdfjs/web/locale/is/viewer.ftl +572 -600
  128. package/pdfjs/web/locale/it/viewer.ftl +747 -615
  129. package/pdfjs/web/locale/ja/viewer.ftl +715 -603
  130. package/pdfjs/web/locale/ka/viewer.ftl +747 -615
  131. package/pdfjs/web/locale/kab/viewer.ftl +626 -595
  132. package/pdfjs/web/locale/kk/viewer.ftl +747 -595
  133. package/pdfjs/web/locale/km/viewer.ftl +242 -273
  134. package/pdfjs/web/locale/kn/viewer.ftl +180 -263
  135. package/pdfjs/web/locale/ko/viewer.ftl +715 -603
  136. package/pdfjs/web/locale/lij/viewer.ftl +222 -297
  137. package/pdfjs/web/locale/lo/viewer.ftl +266 -343
  138. package/pdfjs/web/locale/locale.json +1 -1
  139. package/pdfjs/web/locale/lt/viewer.ftl +242 -318
  140. package/pdfjs/web/locale/ltg/viewer.ftl +221 -296
  141. package/pdfjs/web/locale/lv/viewer.ftl +222 -297
  142. package/pdfjs/web/locale/meh/viewer.ftl +48 -137
  143. package/pdfjs/web/locale/mk/viewer.ftl +747 -265
  144. package/pdfjs/web/locale/ml/viewer.ftl +494 -524
  145. package/pdfjs/web/locale/mr/viewer.ftl +210 -289
  146. package/pdfjs/web/locale/ms/viewer.ftl +222 -297
  147. package/pdfjs/web/locale/my/viewer.ftl +173 -256
  148. package/pdfjs/web/locale/nb-NO/viewer.ftl +747 -614
  149. package/pdfjs/web/locale/ne-NP/viewer.ftl +201 -284
  150. package/pdfjs/web/locale/nl/viewer.ftl +747 -615
  151. package/pdfjs/web/locale/nn-NO/viewer.ftl +747 -609
  152. package/pdfjs/web/locale/oc/viewer.ftl +396 -436
  153. package/pdfjs/web/locale/pa-IN/viewer.ftl +747 -615
  154. package/pdfjs/web/locale/pl/viewer.ftl +754 -618
  155. package/pdfjs/web/locale/pt-BR/viewer.ftl +747 -615
  156. package/pdfjs/web/locale/pt-PT/viewer.ftl +747 -615
  157. package/pdfjs/web/locale/rm/viewer.ftl +639 -615
  158. package/pdfjs/web/locale/ro/viewer.ftl +754 -302
  159. package/pdfjs/web/locale/ru/viewer.ftl +755 -618
  160. package/pdfjs/web/locale/sat/viewer.ftl +278 -355
  161. package/pdfjs/web/locale/sc/viewer.ftl +342 -394
  162. package/pdfjs/web/locale/scn/viewer.ftl +32 -124
  163. package/pdfjs/web/locale/sco/viewer.ftl +238 -314
  164. package/pdfjs/web/locale/si/viewer.ftl +228 -301
  165. package/pdfjs/web/locale/sk/viewer.ftl +763 -621
  166. package/pdfjs/web/locale/skr/viewer.ftl +465 -524
  167. package/pdfjs/web/locale/sl/viewer.ftl +763 -621
  168. package/pdfjs/web/locale/son/viewer.ftl +173 -256
  169. package/pdfjs/web/locale/sq/viewer.ftl +735 -606
  170. package/pdfjs/web/locale/sr/viewer.ftl +755 -451
  171. package/pdfjs/web/locale/sv-SE/viewer.ftl +747 -615
  172. package/pdfjs/web/locale/szl/viewer.ftl +228 -307
  173. package/pdfjs/web/locale/ta/viewer.ftl +198 -273
  174. package/pdfjs/web/locale/te/viewer.ftl +213 -289
  175. package/pdfjs/web/locale/tg/viewer.ftl +741 -615
  176. package/pdfjs/web/locale/th/viewer.ftl +715 -603
  177. package/pdfjs/web/locale/tl/viewer.ftl +228 -307
  178. package/pdfjs/web/locale/tr/viewer.ftl +747 -615
  179. package/pdfjs/web/locale/trs/viewer.ftl +163 -247
  180. package/pdfjs/web/locale/uk/viewer.ftl +727 -618
  181. package/pdfjs/web/locale/ur/viewer.ftl +222 -298
  182. package/pdfjs/web/locale/uz/viewer.ftl +154 -237
  183. package/pdfjs/web/locale/vi/viewer.ftl +715 -603
  184. package/pdfjs/web/locale/wo/viewer.ftl +100 -177
  185. package/pdfjs/web/locale/xh/viewer.ftl +179 -262
  186. package/pdfjs/web/locale/zh-CN/viewer.ftl +715 -603
  187. package/pdfjs/web/locale/zh-TW/viewer.ftl +715 -603
  188. package/pdfjs/web/ng2-customization.css +359 -305
  189. package/pdfjs/web/postmessage-wrapper.js +1 -1985
  190. package/pdfjs/web/viewer.css +1 -6443
  191. package/pdfjs/web/viewer.html +1223 -740
  192. package/pdfjs/web/viewer.mjs +22 -17076
  193. package/pdfjs/web/wasm/jbig2.wasm +0 -0
  194. package/pdfjs/web/wasm/jbig2_nowasm_fallback.js +15 -0
  195. package/pdfjs/web/wasm/openjpeg.wasm +0 -0
  196. package/pdfjs/web/wasm/openjpeg_nowasm_fallback.js +17 -29
  197. package/pdfjs/web/wasm/qcms_bg.wasm +0 -0
  198. package/pdfjs/web/wasm/quickjs-eval.js +16 -0
  199. package/pdfjs/web/wasm/quickjs-eval.wasm +0 -0
  200. package/types/ng2-pdfjs-viewer-ai.d.ts +47 -0
  201. package/types/ng2-pdfjs-viewer.d.ts +625 -0
  202. package/fesm2022/ng2-pdfjs-viewer.mjs.map +0 -1
  203. package/index.d.ts +0 -424
  204. package/pdfjs/postmessage-wrapper.js +0 -1467
  205. package/pdfjs/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  206. package/pdfjs/web/debugger.css +0 -114
  207. package/pdfjs/web/debugger.mjs +0 -627
  208. package/pdfjs/web/viewer.mjs.map +0 -1
package/LICENSE CHANGED
@@ -1,231 +1,231 @@
1
- # Apache License, Version 2.0 with Commons Clause License Condition v 1.0
2
-
3
- ===============================================================================
4
-
5
- COMMONS CLAUSE LICENSE CONDITION
6
-
7
- The Software is provided to you by the Licensor under the License, as defined
8
- below, subject to the following condition.
9
-
10
- Without limiting other conditions in the License, the grant of rights under
11
- the License will not include, and the License does not grant to you, the right
12
- to Sell the Software. For purposes of the foregoing, "Sell" means practicing
13
- any or all of the rights granted to you under the License to provide to third
14
- parties, for a fee or other consideration (including without limitation fees
15
- for hosting or consulting/ support services related to the Software), a product
16
- or service whose value derives, entirely or substantially, from the Software.
17
- Any license notice or attribution required by the License must also include
18
- this Commons Clause License Condition notice.
19
-
20
- Software: ng2-pdfjs-viewer
21
- Copyright (c) 2018-2025 Aneesh Goapalakrishnan
22
- Licensor: Aneesh Goapalakrishnan <codehippie1@gmail.com>
23
-
24
- This software is dual-licensed under the Apache License 2.0 and the Commons
25
- Clause License Condition. The Commons Clause modifies the Apache License 2.0
26
- to prevent commercial competitors from selling products or services that are
27
- substantially derived from this software.
28
-
29
- ===============================================================================
30
-
31
- Apache License
32
- Version 2.0, January 2004
33
- http://www.apache.org/licenses/
34
-
35
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
36
-
37
- 1. Definitions.
38
-
39
- "License" shall mean the terms and conditions for use, reproduction,
40
- and distribution as defined by Sections 1 through 9 of this document.
41
-
42
- "Licensor" shall mean the copyright owner or entity authorized by
43
- the copyright owner that is granting the License.
44
-
45
- "Legal Entity" shall mean the union of the acting entity and all
46
- other entities that control, are controlled by, or are under common
47
- control with that entity. For the purposes of this definition,
48
- "control" means (i) the power, direct or indirect, to cause the
49
- direction or management of such entity, whether by contract or
50
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
51
- outstanding shares, or (iii) beneficial ownership of such entity.
52
-
53
- "You" (or "Your") shall mean an individual or Legal Entity
54
- exercising permissions granted by this License.
55
-
56
- "Source" form shall mean the preferred form for making modifications,
57
- including but not limited to software source code, documentation
58
- source, and configuration files.
59
-
60
- "Object" form shall mean any form resulting from mechanical
61
- transformation or translation of a Source form, including but
62
- not limited to compiled object code, generated documentation,
63
- and conversions to other media types.
64
-
65
- "Work" shall mean the work of authorship, whether in Source or
66
- Object form, made available under the License, as indicated by a
67
- copyright notice that is included in or attached to the work
68
- (an example is provided in the Appendix below).
69
-
70
- "Derivative Works" shall mean any work, whether in Source or Object
71
- form, that is based on (or derived from) the Work and for which the
72
- editorial revisions, annotations, elaborations, or other modifications
73
- represent, as a whole, an original work of authorship. For the purposes
74
- of this License, Derivative Works shall not include works that remain
75
- separable from, or merely link (or bind by name) to the interfaces of,
76
- the Work and Derivative Works thereof.
77
-
78
- "Contribution" shall mean any work of authorship, including
79
- the original version of the Work and any modifications or additions
80
- to that Work or Derivative Works thereof, that is intentionally
81
- submitted to Licensor for inclusion in the Work by the copyright owner
82
- or by an individual or Legal Entity authorized to submit on behalf of
83
- the copyright owner. For the purposes of this definition, "submitted"
84
- means any form of electronic, verbal, or written communication sent
85
- to the Licensor or its representatives, including but not limited to
86
- communication on electronic mailing lists, source code control systems,
87
- and issue tracking systems that are managed by, or on behalf of, the
88
- Licensor for the purpose of discussing and improving the Work, but
89
- excluding communication that is conspicuously marked or otherwise
90
- designated in writing by the copyright owner as "Not a Contribution."
91
-
92
- "Contributor" shall mean Licensor and any individual or Legal Entity
93
- on behalf of whom a Contribution has been received by Licensor and
94
- subsequently incorporated within the Work.
95
-
96
- 2. Grant of Copyright License. Subject to the terms and conditions of
97
- this License, each Contributor hereby grants to You a perpetual,
98
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
99
- copyright license to reproduce, prepare Derivative Works of,
100
- publicly display, publicly perform, sublicense, and distribute the
101
- Work and such Derivative Works in Source or Object form.
102
-
103
- 3. Grant of Patent License. Subject to the terms and conditions of
104
- this License, each Contributor hereby grants to You a perpetual,
105
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
106
- (except as stated in this section) patent license to make, have made,
107
- use, offer to sell, sell, import, and otherwise transfer the Work,
108
- where such license applies only to those patent claims licensable
109
- by such Contributor that are necessarily infringed by their
110
- Contribution(s) alone or by combination of their Contribution(s)
111
- with the Work to which such Contribution(s) was submitted. If You
112
- institute patent litigation against any entity (including a
113
- cross-claim or counterclaim in a lawsuit) alleging that the Work
114
- or a Contribution incorporated within the Work constitutes direct
115
- or contributory patent infringement, then any patent licenses
116
- granted to You under this License for that Work shall terminate
117
- as of the date such litigation is filed.
118
-
119
- 4. Redistribution. You may reproduce and distribute copies of the
120
- Work or Derivative Works thereof in any medium, with or without
121
- modifications, and in Source or Object form, provided that You
122
- meet the following conditions:
123
-
124
- (a) You must give any other recipients of the Work or
125
- Derivative Works a copy of this License; and
126
-
127
- (b) You must cause any modified files to carry prominent notices
128
- stating that You changed the files; and
129
-
130
- (c) You must retain, in the Source form of any Derivative Works
131
- that You distribute, all copyright, patent, trademark, and
132
- attribution notices from the Source form of the Work,
133
- excluding those notices that do not pertain to any part of
134
- the Derivative Works; and
135
-
136
- (d) If the Work includes a "NOTICE" text file as part of its
137
- distribution, then any Derivative Works that You distribute must
138
- include a readable copy of the attribution notices contained
139
- within such NOTICE file, excluding those notices that do not
140
- pertain to any part of the Derivative Works, in at least one
141
- of the following places: within a NOTICE text file distributed
142
- as part of the Derivative Works; within the Source form or
143
- documentation, if provided along with the Derivative Works; or,
144
- within a display generated by the Derivative Works, if and
145
- wherever such third-party notices normally appear. The contents
146
- of the NOTICE file are for informational purposes only and
147
- do not modify the License. You may add Your own attribution
148
- notices within Derivative Works that You distribute, alongside
149
- or as an addendum to the NOTICE text from the Work, provided
150
- that such additional attribution notices cannot be construed
151
- as modifying the License.
152
-
153
- You may add Your own copyright statement to Your modifications and
154
- may provide additional or different license terms and conditions
155
- for use, reproduction, or distribution of Your modifications, or
156
- for any such Derivative Works as a whole, provided Your use,
157
- reproduction, and distribution of the Work otherwise complies with
158
- the conditions stated in this License.
159
-
160
- 5. Submission of Contributions. Unless You explicitly state otherwise,
161
- any Contribution intentionally submitted for inclusion in the Work
162
- by You to the Licensor shall be under the terms and conditions of
163
- this License, without any additional terms or conditions.
164
- Notwithstanding the above, nothing herein shall supersede or modify
165
- the terms of any separate license agreement you may have executed
166
- with Licensor regarding such Contributions.
167
-
168
- 6. Trademarks. This License does not grant permission to use the trade
169
- names, trademarks, service marks, or product names of the Licensor,
170
- except as required for reasonable and customary use in describing the
171
- origin of the Work and reproducing the content of the NOTICE file.
172
-
173
- 7. Disclaimer of Warranty. Unless required by applicable law or
174
- agreed to in writing, Licensor provides the Work (and each
175
- Contributor provides its Contributions) on an "AS IS" BASIS,
176
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
177
- implied, including, without limitation, any warranties or conditions
178
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
179
- PARTICULAR PURPOSE. You are solely responsible for determining the
180
- appropriateness of using or redistributing the Work and assume any
181
- risks associated with Your exercise of permissions under this License.
182
-
183
- 8. Limitation of Liability. In no event and under no legal theory,
184
- whether in tort (including negligence), contract, or otherwise,
185
- unless required by applicable law (such as deliberate and grossly
186
- negligent acts) or agreed to in writing, shall any Contributor be
187
- liable to You for damages, including any direct, indirect, special,
188
- incidental, or consequential damages of any character arising as a
189
- result of this License or out of the use or inability to use the
190
- Work (including but not limited to damages for loss of goodwill,
191
- work stoppage, computer failure or malfunction, or any and all
192
- other commercial damages or losses), even if such Contributor
193
- has been advised of the possibility of such damages.
194
-
195
- 9. Accepting Warranty or Additional Liability. While redistributing
196
- the Work or Derivative Works thereof, You may choose to offer,
197
- and charge a fee for, acceptance of support, warranty, indemnity,
198
- or other liability obligations and/or rights consistent with this
199
- License. However, in accepting such obligations, You may act only
200
- on Your own behalf and on Your sole responsibility, not on behalf
201
- of any other Contributor, and only if You agree to indemnify,
202
- defend, and hold each Contributor harmless for any liability
203
- incurred by, or claims asserted against, such Contributor by reason
204
- of your accepting any such warranty or additional liability.
205
-
206
- END OF TERMS AND CONDITIONS
207
-
208
- APPENDIX: How to apply the Apache License to your work.
209
-
210
- To apply the Apache License to your work, attach the following
211
- boilerplate notice, with the fields enclosed by brackets "[]"
212
- replaced with your own identifying information. (Don't include
213
- the brackets!) The text should be enclosed in the appropriate
214
- comment syntax for the file format. We also recommend that a
215
- file or class name and description of purpose be included on the
216
- same "printed page" as the copyright notice for easier
217
- identification within third-party archives.
218
-
219
- Copyright 2018-2025 Aneesh Goapalakrishnan
220
-
221
- Licensed under the Apache License, Version 2.0 (the "License");
222
- you may not use this file except in compliance with the License.
223
- You may obtain a copy of the License at
224
-
225
- http://www.apache.org/licenses/LICENSE-2.0
226
-
227
- Unless required by applicable law or agreed to in writing, software
228
- distributed under the License is distributed on an "AS IS" BASIS,
229
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
230
- See the License for the specific language governing permissions and
231
- limitations under the License.
1
+ # Apache License, Version 2.0 with Commons Clause License Condition v 1.0
2
+
3
+ ===============================================================================
4
+
5
+ COMMONS CLAUSE LICENSE CONDITION
6
+
7
+ The Software is provided to you by the Licensor under the License, as defined
8
+ below, subject to the following condition.
9
+
10
+ Without limiting other conditions in the License, the grant of rights under
11
+ the License will not include, and the License does not grant to you, the right
12
+ to Sell the Software. For purposes of the foregoing, "Sell" means practicing
13
+ any or all of the rights granted to you under the License to provide to third
14
+ parties, for a fee or other consideration (including without limitation fees
15
+ for hosting or consulting/ support services related to the Software), a product
16
+ or service whose value derives, entirely or substantially, from the Software.
17
+ Any license notice or attribution required by the License must also include
18
+ this Commons Clause License Condition notice.
19
+
20
+ Software: ng2-pdfjs-viewer
21
+ Copyright (c) 2018-2025 Aneesh Goapalakrishnan
22
+ Licensor: Aneesh Goapalakrishnan <codehippie1@gmail.com>
23
+
24
+ This software is dual-licensed under the Apache License 2.0 and the Commons
25
+ Clause License Condition. The Commons Clause modifies the Apache License 2.0
26
+ to prevent commercial competitors from selling products or services that are
27
+ substantially derived from this software.
28
+
29
+ ===============================================================================
30
+
31
+ Apache License
32
+ Version 2.0, January 2004
33
+ http://www.apache.org/licenses/
34
+
35
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
36
+
37
+ 1. Definitions.
38
+
39
+ "License" shall mean the terms and conditions for use, reproduction,
40
+ and distribution as defined by Sections 1 through 9 of this document.
41
+
42
+ "Licensor" shall mean the copyright owner or entity authorized by
43
+ the copyright owner that is granting the License.
44
+
45
+ "Legal Entity" shall mean the union of the acting entity and all
46
+ other entities that control, are controlled by, or are under common
47
+ control with that entity. For the purposes of this definition,
48
+ "control" means (i) the power, direct or indirect, to cause the
49
+ direction or management of such entity, whether by contract or
50
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
51
+ outstanding shares, or (iii) beneficial ownership of such entity.
52
+
53
+ "You" (or "Your") shall mean an individual or Legal Entity
54
+ exercising permissions granted by this License.
55
+
56
+ "Source" form shall mean the preferred form for making modifications,
57
+ including but not limited to software source code, documentation
58
+ source, and configuration files.
59
+
60
+ "Object" form shall mean any form resulting from mechanical
61
+ transformation or translation of a Source form, including but
62
+ not limited to compiled object code, generated documentation,
63
+ and conversions to other media types.
64
+
65
+ "Work" shall mean the work of authorship, whether in Source or
66
+ Object form, made available under the License, as indicated by a
67
+ copyright notice that is included in or attached to the work
68
+ (an example is provided in the Appendix below).
69
+
70
+ "Derivative Works" shall mean any work, whether in Source or Object
71
+ form, that is based on (or derived from) the Work and for which the
72
+ editorial revisions, annotations, elaborations, or other modifications
73
+ represent, as a whole, an original work of authorship. For the purposes
74
+ of this License, Derivative Works shall not include works that remain
75
+ separable from, or merely link (or bind by name) to the interfaces of,
76
+ the Work and Derivative Works thereof.
77
+
78
+ "Contribution" shall mean any work of authorship, including
79
+ the original version of the Work and any modifications or additions
80
+ to that Work or Derivative Works thereof, that is intentionally
81
+ submitted to Licensor for inclusion in the Work by the copyright owner
82
+ or by an individual or Legal Entity authorized to submit on behalf of
83
+ the copyright owner. For the purposes of this definition, "submitted"
84
+ means any form of electronic, verbal, or written communication sent
85
+ to the Licensor or its representatives, including but not limited to
86
+ communication on electronic mailing lists, source code control systems,
87
+ and issue tracking systems that are managed by, or on behalf of, the
88
+ Licensor for the purpose of discussing and improving the Work, but
89
+ excluding communication that is conspicuously marked or otherwise
90
+ designated in writing by the copyright owner as "Not a Contribution."
91
+
92
+ "Contributor" shall mean Licensor and any individual or Legal Entity
93
+ on behalf of whom a Contribution has been received by Licensor and
94
+ subsequently incorporated within the Work.
95
+
96
+ 2. Grant of Copyright License. Subject to the terms and conditions of
97
+ this License, each Contributor hereby grants to You a perpetual,
98
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
99
+ copyright license to reproduce, prepare Derivative Works of,
100
+ publicly display, publicly perform, sublicense, and distribute the
101
+ Work and such Derivative Works in Source or Object form.
102
+
103
+ 3. Grant of Patent License. Subject to the terms and conditions of
104
+ this License, each Contributor hereby grants to You a perpetual,
105
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
106
+ (except as stated in this section) patent license to make, have made,
107
+ use, offer to sell, sell, import, and otherwise transfer the Work,
108
+ where such license applies only to those patent claims licensable
109
+ by such Contributor that are necessarily infringed by their
110
+ Contribution(s) alone or by combination of their Contribution(s)
111
+ with the Work to which such Contribution(s) was submitted. If You
112
+ institute patent litigation against any entity (including a
113
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
114
+ or a Contribution incorporated within the Work constitutes direct
115
+ or contributory patent infringement, then any patent licenses
116
+ granted to You under this License for that Work shall terminate
117
+ as of the date such litigation is filed.
118
+
119
+ 4. Redistribution. You may reproduce and distribute copies of the
120
+ Work or Derivative Works thereof in any medium, with or without
121
+ modifications, and in Source or Object form, provided that You
122
+ meet the following conditions:
123
+
124
+ (a) You must give any other recipients of the Work or
125
+ Derivative Works a copy of this License; and
126
+
127
+ (b) You must cause any modified files to carry prominent notices
128
+ stating that You changed the files; and
129
+
130
+ (c) You must retain, in the Source form of any Derivative Works
131
+ that You distribute, all copyright, patent, trademark, and
132
+ attribution notices from the Source form of the Work,
133
+ excluding those notices that do not pertain to any part of
134
+ the Derivative Works; and
135
+
136
+ (d) If the Work includes a "NOTICE" text file as part of its
137
+ distribution, then any Derivative Works that You distribute must
138
+ include a readable copy of the attribution notices contained
139
+ within such NOTICE file, excluding those notices that do not
140
+ pertain to any part of the Derivative Works, in at least one
141
+ of the following places: within a NOTICE text file distributed
142
+ as part of the Derivative Works; within the Source form or
143
+ documentation, if provided along with the Derivative Works; or,
144
+ within a display generated by the Derivative Works, if and
145
+ wherever such third-party notices normally appear. The contents
146
+ of the NOTICE file are for informational purposes only and
147
+ do not modify the License. You may add Your own attribution
148
+ notices within Derivative Works that You distribute, alongside
149
+ or as an addendum to the NOTICE text from the Work, provided
150
+ that such additional attribution notices cannot be construed
151
+ as modifying the License.
152
+
153
+ You may add Your own copyright statement to Your modifications and
154
+ may provide additional or different license terms and conditions
155
+ for use, reproduction, or distribution of Your modifications, or
156
+ for any such Derivative Works as a whole, provided Your use,
157
+ reproduction, and distribution of the Work otherwise complies with
158
+ the conditions stated in this License.
159
+
160
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
161
+ any Contribution intentionally submitted for inclusion in the Work
162
+ by You to the Licensor shall be under the terms and conditions of
163
+ this License, without any additional terms or conditions.
164
+ Notwithstanding the above, nothing herein shall supersede or modify
165
+ the terms of any separate license agreement you may have executed
166
+ with Licensor regarding such Contributions.
167
+
168
+ 6. Trademarks. This License does not grant permission to use the trade
169
+ names, trademarks, service marks, or product names of the Licensor,
170
+ except as required for reasonable and customary use in describing the
171
+ origin of the Work and reproducing the content of the NOTICE file.
172
+
173
+ 7. Disclaimer of Warranty. Unless required by applicable law or
174
+ agreed to in writing, Licensor provides the Work (and each
175
+ Contributor provides its Contributions) on an "AS IS" BASIS,
176
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
177
+ implied, including, without limitation, any warranties or conditions
178
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
179
+ PARTICULAR PURPOSE. You are solely responsible for determining the
180
+ appropriateness of using or redistributing the Work and assume any
181
+ risks associated with Your exercise of permissions under this License.
182
+
183
+ 8. Limitation of Liability. In no event and under no legal theory,
184
+ whether in tort (including negligence), contract, or otherwise,
185
+ unless required by applicable law (such as deliberate and grossly
186
+ negligent acts) or agreed to in writing, shall any Contributor be
187
+ liable to You for damages, including any direct, indirect, special,
188
+ incidental, or consequential damages of any character arising as a
189
+ result of this License or out of the use or inability to use the
190
+ Work (including but not limited to damages for loss of goodwill,
191
+ work stoppage, computer failure or malfunction, or any and all
192
+ other commercial damages or losses), even if such Contributor
193
+ has been advised of the possibility of such damages.
194
+
195
+ 9. Accepting Warranty or Additional Liability. While redistributing
196
+ the Work or Derivative Works thereof, You may choose to offer,
197
+ and charge a fee for, acceptance of support, warranty, indemnity,
198
+ or other liability obligations and/or rights consistent with this
199
+ License. However, in accepting such obligations, You may act only
200
+ on Your own behalf and on Your sole responsibility, not on behalf
201
+ of any other Contributor, and only if You agree to indemnify,
202
+ defend, and hold each Contributor harmless for any liability
203
+ incurred by, or claims asserted against, such Contributor by reason
204
+ of your accepting any such warranty or additional liability.
205
+
206
+ END OF TERMS AND CONDITIONS
207
+
208
+ APPENDIX: How to apply the Apache License to your work.
209
+
210
+ To apply the Apache License to your work, attach the following
211
+ boilerplate notice, with the fields enclosed by brackets "[]"
212
+ replaced with your own identifying information. (Don't include
213
+ the brackets!) The text should be enclosed in the appropriate
214
+ comment syntax for the file format. We also recommend that a
215
+ file or class name and description of purpose be included on the
216
+ same "printed page" as the copyright notice for easier
217
+ identification within third-party archives.
218
+
219
+ Copyright 2018-2025 Aneesh Goapalakrishnan
220
+
221
+ Licensed under the Apache License, Version 2.0 (the "License");
222
+ you may not use this file except in compliance with the License.
223
+ You may obtain a copy of the License at
224
+
225
+ http://www.apache.org/licenses/LICENSE-2.0
226
+
227
+ Unless required by applicable law or agreed to in writing, software
228
+ distributed under the License is distributed on an "AS IS" BASIS,
229
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
230
+ See the License for the specific language governing permissions and
231
+ limitations under the License.