@syncfusion/ej2-react-pdfviewer 34.2.6 → 34.2.7

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 CHANGED
@@ -21,12 +21,15 @@ Trusted by the world's leading companies
21
21
 
22
22
  > **Using this package with an AI coding agent**
23
23
  >
24
- > Before generating Syncfusion® code, ask your AI coding agent to run the Syncfusion® setup using the following prompt:
24
+ > Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
25
25
  >
26
26
  > ```text
27
- > Set up this project for Syncfusion® before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com/agent-setup/prompt.md, then report the detected platform, installed skill pack, MCP status, and any required licensing action.
27
+ > Set up this project for Syncfusion before generating code. Fetch
28
+ > and follow the official instructions at https://ai.syncfusion.com/,
29
+ > then report the detected platform, installed skill pack, MCP
30
+ > status, and any required licensing action.
28
31
  > ```
29
- > The setup detects your project’s platform and loads the appropriate Syncfusion® skill pack. No Syncfusion® account or MCP key is required to install or read Syncfusion® agent skills.
32
+ > The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
30
33
  >
31
34
  > **Platform reference:** [https://ai.syncfusion.com/react/llms.txt](https://ai.syncfusion.com/react/llms.txt)
32
35
 
@@ -34,11 +37,11 @@ Trusted by the world's leading companies
34
37
 
35
38
  ### Create a React Application
36
39
 
37
- You can use [`create-react-app`](https://github.com/facebookincubator/create-react-app) to setup applications. To create React app use the following command.
40
+ You can use [`Vite`](https://vite.dev/guide/) to setup applications. To create React application, use the following command.
38
41
 
39
42
  ```bash
40
- npx create-react-app my-app --template typescript
41
- cd my-app
43
+ npm create vite@latest pdf-viewer-app -- --template react-ts
44
+ cd pdf-viewer-app
42
45
  npm start
43
46
  ```
44
47
 
@@ -52,21 +55,20 @@ npm install @syncfusion/ej2-react-pdfviewer --save
52
55
 
53
56
  ### Adding CSS references for PDF Viewer
54
57
 
55
- Add CSS references needed for a PDF Viewer in **src/index.css** from the **../node_modules/@syncfusion** package folder.
58
+ Install the styles package from npm using the following command:
59
+
60
+ ```bash
61
+ npm install @syncfusion/ej2-tailwind3-theme
62
+ ```
63
+
64
+ The Tailwind 3 theme package includes an `index.css` file that automatically imports all required PDF Viewer styles. Add the required PDF Viewer theme style reference to **src/App.css** file.
56
65
 
57
66
  ```css
58
- @import '../node_modules/@syncfusion/ej2-base/styles/material.css';
59
- @import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
60
- @import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
61
- @import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
62
- @import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
63
- @import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
64
- @import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
65
- @import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
66
- @import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
67
- @import "../node_modules/@syncfusion/ej2-react-pdfviewer/styles/material.css";
67
+ @import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/pdfviewer/index.css';
68
68
  ```
69
69
 
70
+ For more themes, see the [themes documentation](https://ej2.syncfusion.com/react/documentation/appearance/theme#theme-packages).
71
+
70
72
  ### Add PDF Viewer component
71
73
 
72
74
  In the **src/index.js** file, use the following code snippet to render the Syncfusion® React PDF Viewer control and import **index.css** to apply styles to the PDF Viewer:
@@ -99,8 +101,8 @@ export class Default extends SampleBase {
99
101
  <div className="control-section">
100
102
  <PdfViewerComponent
101
103
  id="container"
102
- documentPath="PDF_Succinctly.pdf"
103
- serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer"
104
+ documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
105
+ resourceUrl="https://cdn.syncfusion.com/ej2/34.1.29/dist/ej2-pdfviewer-lib"
104
106
  toolbarSettings={{ showTooltip: true, toolbarItems: ['OpenOption', 'PanTool', 'AnnotationEditTool', 'FormDesignerEditTool', ], annotationToolbarItems: ['HandWrittenSignatureTool'], formDesignerToolbarItems: ['TextboxTool', 'PasswordTool', ] }}
105
107
  style={{ height: '640px' }}
106
108
  >
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: ej2-react-pdfviewer.min.js
3
- * version : 34.2.6
3
+ * version : 34.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: ej2-react-pdfviewer.umd.min.js
3
- * version : 34.2.6
3
+ * version : 34.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-react-pdfviewer",
3
- "version": "34.2.6",
3
+ "version": "34.2.7",
4
4
  "description": "Essential JS 2 PDF viewer Component for React",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@syncfusion/ej2-base": "~34.2.6",
23
23
  "@syncfusion/ej2-react-base": "~34.2.6",
24
- "@syncfusion/ej2-pdfviewer": "34.2.6"
24
+ "@syncfusion/ej2-pdfviewer": "34.2.7"
25
25
  },
26
26
  "devDependencies": {},
27
27
  "sideEffects": false,