@syncfusion/ej2-angular-pdfviewer 20.3.60 → 20.4.38-ngcc
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/@syncfusion/ej2-angular-pdfviewer.es5.js +270 -0
- package/@syncfusion/ej2-angular-pdfviewer.es5.js.map +1 -0
- package/@syncfusion/ej2-angular-pdfviewer.js +251 -0
- package/@syncfusion/ej2-angular-pdfviewer.js.map +1 -0
- package/CHANGELOG.md +1696 -0
- package/README.md +147 -37
- package/dist/ej2-angular-pdfviewer.umd.js +455 -0
- package/dist/ej2-angular-pdfviewer.umd.js.map +1 -0
- package/dist/ej2-angular-pdfviewer.umd.min.js +11 -0
- package/dist/ej2-angular-pdfviewer.umd.min.js.map +1 -0
- package/ej2-angular-pdfviewer.d.ts +5 -0
- package/ej2-angular-pdfviewer.metadata.json +1 -0
- package/package.json +17 -34
- package/postinstall/tagchange.js +18 -0
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +2 -2
- package/src/pdfviewer/pdfviewer-all.module.d.ts +0 -6
- package/src/pdfviewer/pdfviewer.component.d.ts +0 -3
- package/src/pdfviewer/pdfviewer.module.d.ts +0 -6
- package/styles/bootstrap-dark.css +20 -0
- package/styles/bootstrap.css +20 -0
- package/styles/bootstrap4.css +20 -0
- package/styles/bootstrap5-dark.css +20 -0
- package/styles/bootstrap5.css +20 -0
- package/styles/fabric-dark.css +20 -0
- package/styles/fabric.css +20 -0
- package/styles/fluent-dark.css +20 -0
- package/styles/fluent.css +20 -0
- package/styles/highcontrast-light.css +20 -0
- package/styles/highcontrast.css +20 -0
- package/styles/material-dark.css +20 -0
- package/styles/material.css +20 -0
- package/styles/pdfviewer/bootstrap-dark.css +20 -0
- package/styles/pdfviewer/bootstrap-dark.scss +1 -4
- package/styles/pdfviewer/bootstrap.css +20 -0
- package/styles/pdfviewer/bootstrap.scss +1 -4
- package/styles/pdfviewer/bootstrap4.css +20 -0
- package/styles/pdfviewer/bootstrap4.scss +1 -4
- package/styles/pdfviewer/bootstrap5-dark.css +20 -0
- package/styles/pdfviewer/bootstrap5-dark.scss +1 -4
- package/styles/pdfviewer/bootstrap5.css +20 -0
- package/styles/pdfviewer/bootstrap5.scss +1 -4
- package/styles/pdfviewer/fabric-dark.css +20 -0
- package/styles/pdfviewer/fabric-dark.scss +1 -4
- package/styles/pdfviewer/fabric.css +20 -0
- package/styles/pdfviewer/fabric.scss +1 -4
- package/styles/pdfviewer/fluent-dark.css +20 -0
- package/styles/pdfviewer/fluent-dark.scss +1 -4
- package/styles/pdfviewer/fluent.css +20 -0
- package/styles/pdfviewer/fluent.scss +1 -4
- package/styles/pdfviewer/highcontrast-light.css +20 -0
- package/styles/pdfviewer/highcontrast-light.scss +1 -4
- package/styles/pdfviewer/highcontrast.css +20 -0
- package/styles/pdfviewer/highcontrast.scss +1 -4
- package/styles/pdfviewer/material-dark.css +20 -0
- package/styles/pdfviewer/material-dark.scss +1 -4
- package/styles/pdfviewer/material.css +20 -0
- package/styles/pdfviewer/material.scss +1 -4
- package/styles/pdfviewer/tailwind-dark.css +20 -0
- package/styles/pdfviewer/tailwind-dark.scss +1 -4
- package/styles/pdfviewer/tailwind.css +20 -0
- package/styles/pdfviewer/tailwind.scss +1 -4
- package/styles/tailwind-dark.css +20 -0
- package/styles/tailwind.css +20 -0
- package/esm2020/public_api.mjs +0 -3
- package/esm2020/src/index.mjs +0 -5
- package/esm2020/src/pdfviewer/pdfviewer-all.module.mjs +0 -62
- package/esm2020/src/pdfviewer/pdfviewer.component.mjs +0 -143
- package/esm2020/src/pdfviewer/pdfviewer.module.mjs +0 -25
- package/esm2020/syncfusion-ej2-angular-pdfviewer.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-pdfviewer.mjs +0 -231
- package/fesm2015/syncfusion-ej2-angular-pdfviewer.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-pdfviewer.mjs +0 -231
- package/fesm2020/syncfusion-ej2-angular-pdfviewer.mjs.map +0 -1
- package/styles/_all.scss +0 -1
- package/styles/pdfviewer/_all.scss +0 -2
- package/styles/pdfviewer/_bootstrap-dark-definition.scss +0 -536
- package/styles/pdfviewer/_bootstrap-definition.scss +0 -536
- package/styles/pdfviewer/_bootstrap4-definition.scss +0 -582
- package/styles/pdfviewer/_bootstrap5-dark-definition.scss +0 -1
- package/styles/pdfviewer/_bootstrap5-definition.scss +0 -530
- package/styles/pdfviewer/_fabric-dark-definition.scss +0 -533
- package/styles/pdfviewer/_fabric-definition.scss +0 -535
- package/styles/pdfviewer/_fluent-dark-definition.scss +0 -1
- package/styles/pdfviewer/_fluent-definition.scss +0 -537
- package/styles/pdfviewer/_fusionnew-definition.scss +0 -530
- package/styles/pdfviewer/_highcontrast-definition.scss +0 -535
- package/styles/pdfviewer/_highcontrast-light-definition.scss +0 -531
- package/styles/pdfviewer/_layout.scss +0 -196
- package/styles/pdfviewer/_material-dark-definition.scss +0 -534
- package/styles/pdfviewer/_material-definition.scss +0 -532
- package/styles/pdfviewer/_material3-definition.scss +0 -530
- package/styles/pdfviewer/_tailwind-dark-definition.scss +0 -1
- package/styles/pdfviewer/_tailwind-definition.scss +0 -539
- package/styles/pdfviewer/_theme.scss +0 -4130
- package/styles/pdfviewer/icons/_bootstrap-dark.scss +0 -475
- package/styles/pdfviewer/icons/_bootstrap.scss +0 -480
- package/styles/pdfviewer/icons/_bootstrap4.scss +0 -482
- package/styles/pdfviewer/icons/_bootstrap5-dark.scss +0 -1
- package/styles/pdfviewer/icons/_bootstrap5.scss +0 -489
- package/styles/pdfviewer/icons/_fabric-dark.scss +0 -488
- package/styles/pdfviewer/icons/_fabric.scss +0 -492
- package/styles/pdfviewer/icons/_fluent-dark.scss +0 -1
- package/styles/pdfviewer/icons/_fluent.scss +0 -488
- package/styles/pdfviewer/icons/_fusionnew.scss +0 -489
- package/styles/pdfviewer/icons/_highcontrast-light.scss +0 -475
- package/styles/pdfviewer/icons/_highcontrast.scss +0 -475
- package/styles/pdfviewer/icons/_material-dark.scss +0 -477
- package/styles/pdfviewer/icons/_material.scss +0 -480
- package/styles/pdfviewer/icons/_material3.scss +0 -489
- package/styles/pdfviewer/icons/_tailwind-dark.scss +0 -489
- package/styles/pdfviewer/icons/_tailwind.scss +0 -489
- package/syncfusion-ej2-angular-pdfviewer.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,62 +1,172 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Angular PDF Viewer Component
|
|
2
2
|
|
|
3
|
-
Syncfusion [Angular PDF Viewer](https://www.syncfusion.com/angular-ui-components/angular-pdf-viewer?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
3
|
+
The Syncfusion [Angular PDF Viewer](https://www.syncfusion.com/angular-ui-components/angular-pdf-viewer?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm) component enables you to view, annotate, prepare and fill forms, and print PDF files from your web applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://ej2.syncfusion.com/angular/documentation/pdfviewer/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm">Getting started</a> .
|
|
7
|
+
<a href="https://ej2.syncfusion.com/angular/demos/?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm#/material/pdfviewer/default">Online demos</a> .
|
|
8
|
+
<a href="https://www.syncfusion.com/angular-components/angular-pdf-viewer?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm">Learn more</a>
|
|
9
|
+
</p>
|
|
6
10
|
|
|
7
|
-
>
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/angular/angular-pdf-viewer.png" alt="Angular PDF Viewer Component"/>
|
|
13
|
+
</p>
|
|
8
14
|
|
|
9
|
-
>
|
|
15
|
+
<p align="center">
|
|
16
|
+
Trusted by the world's leading companies
|
|
17
|
+
<a href="https://www.syncfusion.com">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
|
|
19
|
+
</a>
|
|
20
|
+
</p>
|
|
10
21
|
|
|
11
22
|
## Setup
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
### Create an Angular Application
|
|
14
25
|
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
You can use [Angular CLI](https://github.com/angular/angular-cli) to setup your Angular applications. To install the Angular CLI, use the following command.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @angular/cli
|
|
17
30
|
```
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
Create a new Angular application using the following Angular CLI command.
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
34
|
+
```bash
|
|
35
|
+
ng new my-app
|
|
36
|
+
cd my-app
|
|
37
|
+
```
|
|
24
38
|
|
|
25
|
-
|
|
39
|
+
### Adding Syncfusion PDF Viewer package
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
All Syncfusion Angular packages are available in [npmjs.com](https://www.npmjs.com/~syncfusionorg). To install the Angular PDF Viewer package, use the following command.
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
4. [ASP.NET Core PDF Viewer](https://www.syncfusion.com/aspnet-core-ui-controls/pdf-viewer?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
33
|
-
5. [ASP.NET MVC PDF Viewer](https://www.syncfusion.com/aspnet-mvc-ui-controls/pdf-viewer?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
43
|
+
```bash
|
|
44
|
+
ng add @syncfusion/ej2-angular-pdfviewer
|
|
45
|
+
```
|
|
34
46
|
|
|
35
|
-
|
|
47
|
+
The above command does the below configuration to your Angular app.
|
|
36
48
|
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* **Selection** - Select and copy text from PDF file.
|
|
41
|
-
* **Search** - Search a text easily across the PDF document.
|
|
42
|
-
* **Navigation** - Easy navigation with the help of Bookmarks, thumbnails, hyperlinks and table of contents.
|
|
43
|
-
* **View modes** - fit to page, fit to visible and fit to width.
|
|
44
|
-
* **Print** - Print the entire document or a specific page directly from the browser.
|
|
49
|
+
* Adds `@syncfusion/ej2-angular-pdfviewer` package and its peer dependencies to your `package.json` file.
|
|
50
|
+
* Imports the `PdfViewerModule` in your application module `app.module.ts`.
|
|
51
|
+
* Registers the Syncfusion UI default theme (material) in the `angular.json` file.
|
|
45
52
|
|
|
46
|
-
|
|
53
|
+
This makes it easy to add the Syncfusion Angular PDF Viewer module to your project and start using it in your application.
|
|
54
|
+
|
|
55
|
+
### Adding CSS references for PDF Viewer
|
|
56
|
+
|
|
57
|
+
Add CSS references needed for a PDF Viewer in **src/styles.css** from the **../node_modules/@syncfusion** package folder.
|
|
58
|
+
|
|
59
|
+
```css
|
|
60
|
+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
|
|
61
|
+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
|
|
62
|
+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
|
|
63
|
+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
|
|
64
|
+
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
|
|
65
|
+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
|
|
66
|
+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
|
|
67
|
+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
|
|
68
|
+
@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
|
|
69
|
+
@import "../node_modules/@syncfusion/ej2-angular-pdfviewer/styles/material.css";
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Add PDF Viewer component
|
|
73
|
+
|
|
74
|
+
In **src/app/app.component.ts**, use `<ejs-pdfviewer>` selector in the `template` attribute of the `@Component` directive to render the Syncfusion Angular PDF Viewer component.
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
|
|
78
|
+
import './styles.css';
|
|
79
|
+
import {
|
|
80
|
+
PdfViewerComponent,
|
|
81
|
+
LinkAnnotationService,
|
|
82
|
+
BookmarkViewService,
|
|
83
|
+
MagnificationService,
|
|
84
|
+
ThumbnailViewService,
|
|
85
|
+
ToolbarService,
|
|
86
|
+
NavigationService,
|
|
87
|
+
TextSearchService,
|
|
88
|
+
TextSelectionService,
|
|
89
|
+
PrintService,
|
|
90
|
+
AnnotationService,
|
|
91
|
+
FormFieldsService,
|
|
92
|
+
FormDesignerService
|
|
93
|
+
} from '@syncfusion/ej2-angular-pdfviewer';
|
|
94
|
+
|
|
95
|
+
@Component({
|
|
96
|
+
selector: 'app-root',
|
|
97
|
+
template: `<div class="content-wrapper">
|
|
98
|
+
<ejs-pdfviewer id="pdfViewer"
|
|
99
|
+
[serviceUrl]='service'
|
|
100
|
+
[documentPath]='document'
|
|
101
|
+
style="height:640px;display:block">
|
|
102
|
+
</ejs-pdfviewer>
|
|
103
|
+
</div>`,
|
|
104
|
+
encapsulation: ViewEncapsulation.None,
|
|
105
|
+
providers: [
|
|
106
|
+
LinkAnnotationService,
|
|
107
|
+
BookmarkViewService,
|
|
108
|
+
MagnificationService,
|
|
109
|
+
ThumbnailViewService,
|
|
110
|
+
ToolbarService,
|
|
111
|
+
NavigationService,
|
|
112
|
+
TextSearchService,
|
|
113
|
+
TextSelectionService,
|
|
114
|
+
PrintService,
|
|
115
|
+
AnnotationService,
|
|
116
|
+
FormFieldsService,
|
|
117
|
+
FormDesignerService
|
|
118
|
+
],
|
|
119
|
+
})
|
|
120
|
+
export class AppComponent implements OnInit {
|
|
121
|
+
public service: string =
|
|
122
|
+
'https://ej2services.syncfusion.com/production/web-services/api/pdfviewer';
|
|
123
|
+
public document: string = 'PDF_Succinctly.pdf';
|
|
124
|
+
ngOnInit(): void {
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
47
128
|
|
|
48
|
-
|
|
129
|
+
## Supported frameworks
|
|
49
130
|
|
|
50
|
-
|
|
51
|
-
* New [GitHub issue](https://github.com/syncfusion/ej2-pdfviewer/issues/new?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm).
|
|
52
|
-
* Ask your query in Stack Overflow with tag `syncfusion`, `ej2`.
|
|
131
|
+
PDF Viewer component is also offered in the following list of frameworks.
|
|
53
132
|
|
|
54
|
-
|
|
133
|
+
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/> [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/react.svg" height="50" />](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)<br/> [React](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/vue.svg" height="50" />](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github)<br/> [Vue](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github) |
|
|
134
|
+
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
55
135
|
|
|
56
|
-
|
|
136
|
+
## Key features
|
|
137
|
+
|
|
138
|
+
* [View PDF Document](https://ej2.syncfusion.com/angular/documentation/pdfviewer/getting-started/) - Open and display both the normal and the protected PDF files with AES and RC4 encryption.
|
|
139
|
+
* [Annotations](https://ej2.syncfusion.com/angular/documentation/pdfviewer/annotation/text-markup-annotation/) - Annotate with text markup, shapes, stamps, ink, and sticky notes.
|
|
140
|
+
* [Form Fields](https://ej2.syncfusion.com/angular/documentation/pdfviewer/form-designer/create-fillable-PDF-forms/create-programmatically/) - Form filling and form designing can be done.
|
|
141
|
+
* [Signature](https://ej2.syncfusion.com/angular/documentation/pdfviewer/handwritten-signature/) - Hand-written and digital signatures are allowed.
|
|
142
|
+
* [Toolbar](https://ej2.syncfusion.com/angular/documentation/pdfviewer/toolbar/) - Built-in-toolbar and custom toolbars to perform user interaction of PDF Viewer functionalities.
|
|
143
|
+
* [Navigation](https://ej2.syncfusion.com/angular/documentation/pdfviewer/navigation/) - Easy navigation with the help of bookmarks, thumbnails, hyperlinks, and table of contents.
|
|
144
|
+
* [Magnification](https://ej2.syncfusion.com/angular/documentation/pdfviewer/magnification/) - Fit to page, fit to width, and automatic (fits to the visible area).
|
|
145
|
+
* [Search](https://ej2.syncfusion.com/angular/documentation/pdfviewer/text_search/) - Search a text easily across the PDF document.
|
|
146
|
+
* [Core Interactions](https://ej2.syncfusion.com/angular/documentation/pdfviewer/interaction_mode/) - Allows scrolling, zooming, panning, selection, and page navigation.
|
|
147
|
+
* [Print](https://ej2.syncfusion.com/angular/documentation/pdfviewer/print/) - Print the entire document or a specific page directly from the browser.
|
|
148
|
+
* [Globalization](https://ej2.syncfusion.com/angular/documentation/pdfviewer/globalization/) - Provides inherent support to localize the UI.
|
|
149
|
+
|
|
150
|
+
## Support
|
|
151
|
+
|
|
152
|
+
Product support is available through the following mediums.
|
|
153
|
+
|
|
154
|
+
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
155
|
+
* [Community forum](https://www.syncfusion.com/forums/angular-js2?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
156
|
+
* [GitHub issues](https://github.com/syncfusion/ej2-angular-ui-components/issues/new)
|
|
157
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/angular?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
158
|
+
* Live chat
|
|
57
159
|
|
|
58
160
|
## Changelog
|
|
59
161
|
|
|
60
|
-
Check the changelog [here](https://github.com/syncfusion/ej2-pdfviewer/blob/master/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
162
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-pdfviewer/blob/master/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
163
|
+
|
|
164
|
+
## License and copyright
|
|
165
|
+
|
|
166
|
+
> This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [Angular UI components](https://www.syncfusion.com/angular-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
|
|
167
|
+
|
|
168
|
+
> A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
|
|
169
|
+
|
|
170
|
+
See [LICENSE FILE](https://github.com/syncfusion/ej2/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm) for more info.
|
|
61
171
|
|
|
62
|
-
|
|
172
|
+
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
|