@syncfusion/ej2-angular-pdfviewer 31.2.13 → 31.2.15-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 +279 -0
- package/@syncfusion/ej2-angular-pdfviewer.es5.js.map +1 -0
- package/@syncfusion/ej2-angular-pdfviewer.js +260 -0
- package/@syncfusion/ej2-angular-pdfviewer.js.map +1 -0
- package/LICENSE +10 -0
- package/README.md +101 -105
- package/dist/ej2-angular-pdfviewer.umd.js +522 -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 +8 -21
- package/public_api.d.ts +1 -1
- package/schematics/collection.json +10 -14
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +25 -25
- package/schematics/utils/lib-details.d.ts +4 -4
- package/schematics/utils/lib-details.js +4 -5
- package/schematics/utils/lib-details.ts +4 -4
- package/src/index.d.ts +4 -7
- package/src/pdfviewer/pdfviewer-all.module.d.ts +19 -0
- package/src/pdfviewer/pdfviewer.component.d.ts +105 -0
- package/src/pdfviewer/pdfviewer.module.d.ts +5 -0
- package/styles/bds-lite.css +1 -1
- package/styles/bds-lite.scss +1 -1
- package/styles/bds.css +1 -1
- package/styles/bds.scss +1 -2
- package/styles/bootstrap-dark-lite.css +1 -1
- package/styles/bootstrap-dark-lite.scss +1 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap-dark.scss +1 -2
- package/styles/bootstrap-lite.css +1 -1
- package/styles/bootstrap-lite.scss +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap.scss +1 -2
- package/styles/bootstrap4-lite.css +1 -1
- package/styles/bootstrap4-lite.scss +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap4.scss +1 -2
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark-lite.scss +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5-dark.scss +1 -2
- package/styles/bootstrap5-lite.css +1 -1
- package/styles/bootstrap5-lite.scss +1 -1
- package/styles/bootstrap5.3-lite.css +1 -1
- package/styles/bootstrap5.3-lite.scss +1 -1
- package/styles/bootstrap5.3.css +1 -1
- package/styles/bootstrap5.3.scss +1 -2
- package/styles/bootstrap5.css +1 -1
- package/styles/bootstrap5.scss +1 -2
- package/styles/fabric-dark-lite.css +1 -1
- package/styles/fabric-dark-lite.scss +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric-dark.scss +1 -2
- package/styles/fabric-lite.css +1 -1
- package/styles/fabric-lite.scss +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fabric.scss +1 -2
- package/styles/fluent-dark-lite.css +1 -1
- package/styles/fluent-dark-lite.scss +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent-dark.scss +1 -2
- package/styles/fluent-lite.css +1 -1
- package/styles/fluent-lite.scss +1 -1
- package/styles/fluent.css +1 -1
- package/styles/fluent.scss +1 -2
- package/styles/fluent2-lite.css +1 -1
- package/styles/fluent2-lite.scss +1 -1
- package/styles/fluent2.css +1 -1
- package/styles/fluent2.scss +1 -2
- package/styles/highcontrast-light-lite.css +1 -1
- package/styles/highcontrast-light-lite.scss +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast-light.scss +1 -2
- package/styles/highcontrast-lite.css +1 -1
- package/styles/highcontrast-lite.scss +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/highcontrast.scss +1 -2
- package/styles/material-dark-lite.css +1 -1
- package/styles/material-dark-lite.scss +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material-dark.scss +1 -2
- package/styles/material-lite.css +1 -1
- package/styles/material-lite.scss +1 -1
- package/styles/material.css +1 -1
- package/styles/material.scss +1 -2
- package/styles/material3-dark-lite.css +1 -1
- package/styles/material3-dark-lite.scss +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3-dark.scss +1 -2
- package/styles/material3-lite.css +1 -1
- package/styles/material3-lite.scss +1 -1
- package/styles/material3.css +1 -1
- package/styles/material3.scss +1 -2
- package/styles/pdfviewer/bds.css +1 -0
- package/styles/pdfviewer/bds.scss +1 -0
- package/styles/pdfviewer/bootstrap-dark.css +1 -0
- package/styles/pdfviewer/bootstrap-dark.scss +1 -0
- package/styles/pdfviewer/bootstrap.css +1 -0
- package/styles/pdfviewer/bootstrap.scss +1 -0
- package/styles/pdfviewer/bootstrap4.css +1 -0
- package/styles/pdfviewer/bootstrap4.scss +1 -0
- package/styles/pdfviewer/bootstrap5-dark.css +1 -0
- package/styles/pdfviewer/bootstrap5-dark.scss +1 -0
- package/styles/pdfviewer/bootstrap5.3.css +1 -0
- package/styles/pdfviewer/bootstrap5.3.scss +1 -0
- package/styles/pdfviewer/bootstrap5.css +1 -0
- package/styles/pdfviewer/bootstrap5.scss +1 -0
- package/styles/pdfviewer/fabric-dark.css +1 -0
- package/styles/pdfviewer/fabric-dark.scss +1 -0
- package/styles/pdfviewer/fabric.css +1 -0
- package/styles/pdfviewer/fabric.scss +1 -0
- package/styles/pdfviewer/fluent-dark.css +1 -0
- package/styles/pdfviewer/fluent-dark.scss +1 -0
- package/styles/pdfviewer/fluent.css +1 -0
- package/styles/pdfviewer/fluent.scss +1 -0
- package/styles/pdfviewer/fluent2.css +1 -0
- package/styles/pdfviewer/fluent2.scss +1 -0
- package/styles/pdfviewer/highcontrast-light.css +1 -0
- package/styles/pdfviewer/highcontrast-light.scss +1 -0
- package/styles/pdfviewer/highcontrast.css +1 -0
- package/styles/pdfviewer/highcontrast.scss +1 -0
- package/styles/pdfviewer/material-dark.css +1 -0
- package/styles/pdfviewer/material-dark.scss +1 -0
- package/styles/pdfviewer/material.css +1 -0
- package/styles/pdfviewer/material.scss +1 -0
- package/styles/pdfviewer/material3-dark.css +1 -0
- package/styles/pdfviewer/material3-dark.scss +2 -0
- package/styles/pdfviewer/material3.css +1 -0
- package/styles/pdfviewer/material3.scss +2 -0
- package/styles/pdfviewer/tailwind-dark.css +1 -0
- package/styles/pdfviewer/tailwind-dark.scss +1 -0
- package/styles/pdfviewer/tailwind.css +1 -0
- package/styles/pdfviewer/tailwind.scss +1 -0
- package/styles/pdfviewer/tailwind3.css +1 -0
- package/styles/pdfviewer/tailwind3.scss +1 -0
- package/styles/tailwind-dark-lite.css +1 -1
- package/styles/tailwind-dark-lite.scss +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind-dark.scss +1 -2
- package/styles/tailwind-lite.css +1 -1
- package/styles/tailwind-lite.scss +1 -1
- package/styles/tailwind.css +1 -1
- package/styles/tailwind.scss +1 -2
- package/styles/tailwind3-lite.css +1 -1
- package/styles/tailwind3-lite.scss +1 -1
- package/styles/tailwind3.css +1 -1
- package/styles/tailwind3.scss +1 -2
- package/CHANGELOG.md +0 -4938
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/src/document-editor/documenteditor-all.module.mjs +0 -134
- package/esm2020/src/document-editor/documenteditor.component.mjs +0 -311
- package/esm2020/src/document-editor/documenteditor.module.mjs +0 -25
- package/esm2020/src/document-editor-container/documenteditorcontainer-all.module.mjs +0 -32
- package/esm2020/src/document-editor-container/documenteditorcontainer.component.mjs +0 -73
- package/esm2020/src/document-editor-container/documenteditorcontainer.module.mjs +0 -25
- package/esm2020/src/index.mjs +0 -8
- package/esm2020/syncfusion-ej2-angular-documenteditor.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-documenteditor.mjs +0 -584
- package/fesm2015/syncfusion-ej2-angular-documenteditor.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-documenteditor.mjs +0 -584
- package/fesm2020/syncfusion-ej2-angular-documenteditor.mjs.map +0 -1
- package/schematics/generators/documenteditorcontainer-default/index.d.ts +0 -3
- package/schematics/generators/documenteditorcontainer-default/index.js +0 -8
- package/schematics/generators/documenteditorcontainer-default/index.ts +0 -8
- package/schematics/generators/documenteditorcontainer-default/sample-details.d.ts +0 -5
- package/schematics/generators/documenteditorcontainer-default/sample-details.js +0 -8
- package/schematics/generators/documenteditorcontainer-default/sample-details.ts +0 -5
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -3
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -8
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -25
- package/schematics/generators/documenteditorcontainer-default/samples/__path__/__name@dasherize@if-flat__/assets/data.ts +0 -1423
- package/schematics/generators/documenteditorcontainer-default/schema.d.ts +0 -3
- package/schematics/generators/documenteditorcontainer-default/schema.js +0 -2
- package/schematics/generators/documenteditorcontainer-default/schema.json +0 -125
- package/schematics/generators/documenteditorcontainer-default/schema.ts +0 -3
- package/src/document-editor/documenteditor-all.module.d.ts +0 -48
- package/src/document-editor/documenteditor.component.d.ts +0 -58
- package/src/document-editor/documenteditor.module.d.ts +0 -11
- package/src/document-editor-container/documenteditorcontainer-all.module.d.ts +0 -14
- package/src/document-editor-container/documenteditorcontainer.component.d.ts +0 -48
- package/src/document-editor-container/documenteditorcontainer.module.d.ts +0 -11
- package/styles/document-editor/bds.css +0 -1
- package/styles/document-editor/bds.scss +0 -1
- package/styles/document-editor/bootstrap-dark.css +0 -1
- package/styles/document-editor/bootstrap-dark.scss +0 -1
- package/styles/document-editor/bootstrap.css +0 -1
- package/styles/document-editor/bootstrap.scss +0 -1
- package/styles/document-editor/bootstrap4.css +0 -1
- package/styles/document-editor/bootstrap4.scss +0 -1
- package/styles/document-editor/bootstrap5-dark.css +0 -1
- package/styles/document-editor/bootstrap5-dark.scss +0 -1
- package/styles/document-editor/bootstrap5.3.css +0 -1
- package/styles/document-editor/bootstrap5.3.scss +0 -1
- package/styles/document-editor/bootstrap5.css +0 -1
- package/styles/document-editor/bootstrap5.scss +0 -1
- package/styles/document-editor/fabric-dark.css +0 -1
- package/styles/document-editor/fabric-dark.scss +0 -1
- package/styles/document-editor/fabric.css +0 -1
- package/styles/document-editor/fabric.scss +0 -1
- package/styles/document-editor/fluent-dark.css +0 -1
- package/styles/document-editor/fluent-dark.scss +0 -1
- package/styles/document-editor/fluent.css +0 -1
- package/styles/document-editor/fluent.scss +0 -1
- package/styles/document-editor/fluent2.css +0 -1
- package/styles/document-editor/fluent2.scss +0 -1
- package/styles/document-editor/highcontrast-light.css +0 -1
- package/styles/document-editor/highcontrast-light.scss +0 -1
- package/styles/document-editor/highcontrast.css +0 -1
- package/styles/document-editor/highcontrast.scss +0 -1
- package/styles/document-editor/material-dark.css +0 -1
- package/styles/document-editor/material-dark.scss +0 -1
- package/styles/document-editor/material.css +0 -1
- package/styles/document-editor/material.scss +0 -1
- package/styles/document-editor/material3-dark.css +0 -1
- package/styles/document-editor/material3-dark.scss +0 -2
- package/styles/document-editor/material3.css +0 -1
- package/styles/document-editor/material3.scss +0 -2
- package/styles/document-editor/tailwind-dark.css +0 -1
- package/styles/document-editor/tailwind-dark.scss +0 -1
- package/styles/document-editor/tailwind.css +0 -1
- package/styles/document-editor/tailwind.scss +0 -1
- package/styles/document-editor/tailwind3.css +0 -1
- package/styles/document-editor/tailwind3.scss +0 -1
- package/styles/document-editor-container/bds.css +0 -1
- package/styles/document-editor-container/bds.scss +0 -1
- package/styles/document-editor-container/bootstrap-dark.css +0 -1
- package/styles/document-editor-container/bootstrap-dark.scss +0 -1
- package/styles/document-editor-container/bootstrap.css +0 -1
- package/styles/document-editor-container/bootstrap.scss +0 -1
- package/styles/document-editor-container/bootstrap4.css +0 -1
- package/styles/document-editor-container/bootstrap4.scss +0 -1
- package/styles/document-editor-container/bootstrap5-dark.css +0 -1
- package/styles/document-editor-container/bootstrap5-dark.scss +0 -1
- package/styles/document-editor-container/bootstrap5.3.css +0 -1
- package/styles/document-editor-container/bootstrap5.3.scss +0 -1
- package/styles/document-editor-container/bootstrap5.css +0 -1
- package/styles/document-editor-container/bootstrap5.scss +0 -1
- package/styles/document-editor-container/fabric-dark.css +0 -1
- package/styles/document-editor-container/fabric-dark.scss +0 -1
- package/styles/document-editor-container/fabric.css +0 -1
- package/styles/document-editor-container/fabric.scss +0 -1
- package/styles/document-editor-container/fluent-dark.css +0 -1
- package/styles/document-editor-container/fluent-dark.scss +0 -1
- package/styles/document-editor-container/fluent.css +0 -1
- package/styles/document-editor-container/fluent.scss +0 -1
- package/styles/document-editor-container/fluent2.css +0 -1
- package/styles/document-editor-container/fluent2.scss +0 -1
- package/styles/document-editor-container/highcontrast-light.css +0 -1
- package/styles/document-editor-container/highcontrast-light.scss +0 -1
- package/styles/document-editor-container/highcontrast.css +0 -1
- package/styles/document-editor-container/highcontrast.scss +0 -1
- package/styles/document-editor-container/material-dark.css +0 -1
- package/styles/document-editor-container/material-dark.scss +0 -1
- package/styles/document-editor-container/material.css +0 -1
- package/styles/document-editor-container/material.scss +0 -1
- package/styles/document-editor-container/material3-dark.css +0 -1
- package/styles/document-editor-container/material3-dark.scss +0 -2
- package/styles/document-editor-container/material3.css +0 -1
- package/styles/document-editor-container/material3.scss +0 -2
- package/styles/document-editor-container/tailwind-dark.css +0 -1
- package/styles/document-editor-container/tailwind-dark.scss +0 -1
- package/styles/document-editor-container/tailwind.css +0 -1
- package/styles/document-editor-container/tailwind.scss +0 -1
- package/styles/document-editor-container/tailwind3.css +0 -1
- package/styles/document-editor-container/tailwind3.scss +0 -1
- package/syncfusion-ej2-angular-documenteditor.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
# Angular
|
|
1
|
+
# Angular PDF Viewer Component
|
|
2
2
|
|
|
3
|
-
The [Angular
|
|
4
|
-
|
|
5
|
-
An example [DOCX Editor server-side Web API projects for ASP.NET MVC, ASP.NET Core, and Java is available in GitHub](https://github.com/SyncfusionExamples/EJ2-DocumentEditor-WebServices?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm) which contains all the mandatory Web APIs for opening Word documents, paste with formatting, restrict editing, spell-checking, and saving documents other than SFDT/DOCX format. Apart from these operations, all the user interactions and editing operations run purely in the client-side provides much faster editing experience to the users.
|
|
6
|
-
|
|
7
|
-
Syncfusion provides a predefined [DOCX Editor server docker image](https://hub.docker.com/r/syncfusion/word-processor-server?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm) targeting ASP.NET Core 2.1 framework. You can directly pull this docker image and deploy it in server on the go. You can also create own docker image by customizing the existing [docker project from GitHub](https://github.com/SyncfusionExamples/Word-Processor-Server-Docker?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-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.
|
|
8
4
|
|
|
9
5
|
<p align="center">
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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#/fluent2/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>
|
|
13
9
|
</p>
|
|
14
10
|
|
|
15
11
|
<p align="center">
|
|
16
|
-
|
|
12
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/angular/angular-pdf-viewer.png" alt="Angular PDF Viewer Component"/>
|
|
17
13
|
</p>
|
|
18
14
|
|
|
19
15
|
<p align="center">
|
|
20
16
|
Trusted by the world's leading companies
|
|
21
17
|
<a href="https://www.syncfusion.com">
|
|
22
|
-
<img src="https://
|
|
18
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
|
|
23
19
|
</a>
|
|
24
20
|
</p>
|
|
25
21
|
|
|
@@ -27,147 +23,147 @@ Trusted by the world's leading companies
|
|
|
27
23
|
|
|
28
24
|
### Create an Angular Application
|
|
29
25
|
|
|
30
|
-
|
|
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.
|
|
31
27
|
|
|
32
28
|
```bash
|
|
33
|
-
|
|
34
|
-
cd quickstart
|
|
35
|
-
npm install
|
|
29
|
+
npm install -g @angular/cli
|
|
36
30
|
```
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
All Syncfusion Angular packages are published in [npmjs.com](https://www.npmjs.com/~syncfusionorg) registry. To install Angular Document editor package, use the following command.
|
|
32
|
+
Create a new Angular application using the following Angular CLI command.
|
|
41
33
|
|
|
42
34
|
```bash
|
|
43
|
-
|
|
35
|
+
ng new my-app
|
|
36
|
+
cd my-app
|
|
44
37
|
```
|
|
45
38
|
|
|
46
|
-
### Adding
|
|
39
|
+
### Adding Syncfusion® PDF Viewer package
|
|
47
40
|
|
|
48
|
-
|
|
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.
|
|
49
42
|
|
|
50
|
-
```
|
|
51
|
-
@
|
|
52
|
-
@import '../../node_modules/@syncfusion/ej2-buttons/styles/material.css';
|
|
53
|
-
@import '../../node_modules/@syncfusion/ej2-inputs/styles/material.css';
|
|
54
|
-
@import '../../node_modules/@syncfusion/ej2-popups/styles/material.css';
|
|
55
|
-
@import '../../node_modules/@syncfusion/ej2-lists/styles/material.css';
|
|
56
|
-
@import '../../node_modules/@syncfusion/ej2-navigations/styles/material.css';
|
|
57
|
-
@import '../../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
|
|
58
|
-
@import '../../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
|
|
59
|
-
@import '../../node_modules/@syncfusion/ej2-angular-documenteditor/styles/material.css';
|
|
43
|
+
```bash
|
|
44
|
+
ng add @syncfusion/ej2-angular-pdfviewer
|
|
60
45
|
```
|
|
61
46
|
|
|
62
|
-
|
|
47
|
+
The above command does the below configuration to your Angular app.
|
|
63
48
|
|
|
64
|
-
|
|
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.
|
|
65
52
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export class AppModule { }
|
|
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";
|
|
84
70
|
```
|
|
85
71
|
|
|
86
|
-
|
|
72
|
+
### Add PDF Viewer component
|
|
87
73
|
|
|
88
|
-
|
|
89
|
-
Add the Angular Document Editor by using <ejs-documenteditorcontainer> selector in template section of the **app.component.ts** file.
|
|
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.
|
|
90
75
|
|
|
91
76
|
```typescript
|
|
92
|
-
import { Component, OnInit } from '@angular/core';
|
|
93
|
-
import {
|
|
77
|
+
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
|
|
78
|
+
import {
|
|
79
|
+
PdfViewerComponent,
|
|
80
|
+
LinkAnnotationService,
|
|
81
|
+
BookmarkViewService,
|
|
82
|
+
MagnificationService,
|
|
83
|
+
ThumbnailViewService,
|
|
84
|
+
ToolbarService,
|
|
85
|
+
NavigationService,
|
|
86
|
+
TextSearchService,
|
|
87
|
+
TextSelectionService,
|
|
88
|
+
PrintService,
|
|
89
|
+
AnnotationService,
|
|
90
|
+
FormFieldsService,
|
|
91
|
+
FormDesignerService
|
|
92
|
+
} from '@syncfusion/ej2-angular-pdfviewer';
|
|
94
93
|
|
|
95
94
|
@Component({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
selector: 'app-root',
|
|
96
|
+
template: `<div class="content-wrapper">
|
|
97
|
+
<ejs-pdfviewer id="pdfViewer"
|
|
98
|
+
[serviceUrl]='service'
|
|
99
|
+
[documentPath]='document'
|
|
100
|
+
style="height:640px;display:block">
|
|
101
|
+
</ejs-pdfviewer>
|
|
102
|
+
</div>`,
|
|
103
|
+
encapsulation: ViewEncapsulation.None,
|
|
104
|
+
providers: [
|
|
105
|
+
LinkAnnotationService,
|
|
106
|
+
BookmarkViewService,
|
|
107
|
+
MagnificationService,
|
|
108
|
+
ThumbnailViewService,
|
|
109
|
+
ToolbarService,
|
|
110
|
+
NavigationService,
|
|
111
|
+
TextSearchService,
|
|
112
|
+
TextSelectionService,
|
|
113
|
+
PrintService,
|
|
114
|
+
AnnotationService,
|
|
115
|
+
FormFieldsService,
|
|
116
|
+
FormDesignerService
|
|
117
|
+
],
|
|
100
118
|
})
|
|
101
119
|
export class AppComponent implements OnInit {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
120
|
+
public service: string =
|
|
121
|
+
'https://ej2services.syncfusion.com/production/web-services/api/pdfviewer';
|
|
122
|
+
public document: string = 'PDF_Succinctly.pdf';
|
|
123
|
+
ngOnInit(): void {
|
|
124
|
+
}
|
|
105
125
|
}
|
|
106
126
|
```
|
|
107
127
|
|
|
108
|
-
> The web API ('https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/') is created specifically for our online demos. You should host web API on your side, refer the [web service documentation](https://help.syncfusion.com/document-processing/word/word-processor/angular/web-services/core?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm) for more information.
|
|
109
|
-
|
|
110
128
|
## Supported frameworks
|
|
111
129
|
|
|
112
|
-
|
|
130
|
+
PDF Viewer component is also offered in the following list of frameworks.
|
|
113
131
|
|
|
114
|
-
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/
|
|
132
|
+
| [<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) |
|
|
115
133
|
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
116
134
|
|
|
117
|
-
## Showcase samples
|
|
118
|
-
|
|
119
|
-
* Expense Tracker - [Source](https://github.com/syncfusion/ej2-showcase-angular-expensetracker?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm), [Live Demo](https://ej2.syncfusion.com/showcase/angular/expensetracker/#/dashboard?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm)
|
|
120
|
-
* Loan Calculator - [Source](https://github.com/syncfusion/ej2-sample-ng-loancalculator?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm), [Live Demo](https://ej2.syncfusion.com/showcase/angular/loancalculator/?utm_source=npm&utm_medium=listing&utm_campaign=angular-word-processor-npm)
|
|
121
|
-
* Fitness Tracker - [Source](https://github.com/SyncfusionExamples/showcase-angular-health-tracker-dashboard-demo), [Live Demo](https://ej2.syncfusion.com/showcase/angular/fitness-tracker-app/)
|
|
122
|
-
|
|
123
135
|
## Key features
|
|
124
136
|
|
|
125
|
-
* [Document
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
*
|
|
136
|
-
* Import - Provides the options to import the native `Syncfusion Document Text (*.sfdt)` format documents in the client-side. With server-side library, importing other formats can be achieved.
|
|
137
|
-
* Print - Provides the options to print the documents.
|
|
138
|
-
* Clipboard - Provides support to cut, copy, and paste rich text contents within the component. Also allows pasting simple text from other applications. Paste rich text from other applications using server-side library.
|
|
139
|
-
* User interface - Provides intuitive user friendly interface to perform various operations.
|
|
140
|
-
* Context menu - Provides context menu.
|
|
141
|
-
* Dialog - Provides dialog for inserting elements such as hyperlink, table and formatting such as font, paragraph, list, style, table.
|
|
142
|
-
* Options pane - Provides options pane to perform find and replace operations.
|
|
143
|
-
|
|
144
|
-
## Resources
|
|
145
|
-
|
|
146
|
-
* [Theme Studio](https://ej2.syncfusion.com/themestudio/)
|
|
147
|
-
* [What's New](https://www.syncfusion.com/products/whatsnew/docx-editor-sdk?utm_medium=listing&utm_source=github)
|
|
148
|
-
* [Road Map](https://www.syncfusion.com/products/roadmap/docx-editor-sdk)
|
|
149
|
-
* [E-Books](https://www.syncfusion.com/succinctly-free-ebooks?searchkey=angular&type=all)
|
|
137
|
+
* [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.
|
|
138
|
+
* [Annotations](https://ej2.syncfusion.com/angular/documentation/pdfviewer/annotation/text-markup-annotation/) - Annotate with text markup, shapes, stamps, ink, and sticky notes.
|
|
139
|
+
* [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.
|
|
140
|
+
* [Signature](https://ej2.syncfusion.com/angular/documentation/pdfviewer/handwritten-signature/) - Hand-written and digital signatures are allowed.
|
|
141
|
+
* [Toolbar](https://ej2.syncfusion.com/angular/documentation/pdfviewer/toolbar/) - Built-in-toolbar and custom toolbars to perform user interaction of PDF Viewer functionalities.
|
|
142
|
+
* [Navigation](https://ej2.syncfusion.com/angular/documentation/pdfviewer/navigation/) - Easy navigation with the help of bookmarks, thumbnails, hyperlinks, and table of contents.
|
|
143
|
+
* [Magnification](https://ej2.syncfusion.com/angular/documentation/pdfviewer/magnification/) - Fit to page, fit to width, and automatic (fits to the visible area).
|
|
144
|
+
* [Search](https://ej2.syncfusion.com/angular/documentation/pdfviewer/text-search/) - Search a text easily across the PDF document.
|
|
145
|
+
* [Core Interactions](https://ej2.syncfusion.com/angular/documentation/pdfviewer/interaction-mode/) - Allows scrolling, zooming, panning, selection, and page navigation.
|
|
146
|
+
* [Print](https://ej2.syncfusion.com/angular/documentation/pdfviewer/print/) - Print the entire document or a specific page directly from the browser.
|
|
147
|
+
* [Globalization](https://ej2.syncfusion.com/angular/documentation/pdfviewer/globalization/) - Provides inherent support to localize the UI.
|
|
150
148
|
|
|
151
149
|
## Support
|
|
152
150
|
|
|
153
151
|
Product support is available through the following mediums.
|
|
154
152
|
|
|
155
153
|
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
156
|
-
* [Community forum](https://www.syncfusion.com/forums/angular-js2?utm_source=npm&utm_medium=listing&utm_campaign=angular-
|
|
154
|
+
* [Community forum](https://www.syncfusion.com/forums/angular-js2?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
157
155
|
* [GitHub issues](https://github.com/syncfusion/ej2-angular-ui-components/issues/new)
|
|
158
|
-
* [Request feature or report bug](https://www.syncfusion.com/feedback/angular?utm_source=npm&utm_medium=listing&utm_campaign=angular-
|
|
156
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/angular?utm_source=npm&utm_medium=listing&utm_campaign=angular-pdf-viewer-npm)
|
|
159
157
|
* Live chat
|
|
160
158
|
|
|
161
159
|
## Changelog
|
|
162
160
|
|
|
163
|
-
Check the changelog [here](https://github.com/syncfusion/ej2-angular-ui-components/blob/master/components/
|
|
161
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-angular-ui-components/blob/master/components/pdfviewer/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.
|
|
164
162
|
|
|
165
163
|
## License and copyright
|
|
166
164
|
|
|
167
|
-
> This is a commercial product and requires a paid license for possession or use. Syncfusion
|
|
165
|
+
> This is a commercial product and requires a paid license for possession or use. The Syncfusion® licensed software, including this component, is subject to the terms and conditions of the Syncfusion® [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).
|
|
168
166
|
|
|
169
167
|
> 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.
|
|
170
168
|
|
|
171
|
-
See [LICENSE FILE](https://github.com/syncfusion/ej2
|
|
172
|
-
|
|
173
|
-
© Copyright 2025 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
|
|
169
|
+
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.
|