You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/nextjs-getting-started.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
layout: post
3
3
title: React getting started with Next.js | Syncfusion
4
-
description: Check out and learn here all about how to use the Syncfusion React UI components in the Next.js project.
4
+
description: Check out and learn here all about how to use the Syncfusion React PDF Viewer in the Next.js project.
5
5
control: PDF Viewer
6
6
platform: document-processing
7
7
documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
# Creating a Next.js application using Syncfusion<supstyle="font-size:70%">®</sup> React components
11
+
# Creating a Next.js application using SyncfusionReact PDF Viewer
12
12
13
13
This guide shows how to set up a Next.js application and integrate the Syncfusion<supstyle="font-size:70%">®</sup> React PDF Viewer component.
14
14
@@ -45,11 +45,11 @@ yarn create next-app
45
45
46
46
Using one of the above commands will prompt for project configuration options.
47
47
48
-
1. Define the project name. For example: `ej2-nextjs-pdfviewer`.
48
+
1. Define the project name. For example: `ej2-next-js-pdfviewer`.
49
49
{% tabs %}
50
50
{% highlight bash tabtitle="CMD" %}
51
51
52
-
√ What is your project named? » ej2-nextjs-pdfviewer
52
+
√ What is your project named? » ej2-next-js-pdfviewer
53
53
54
54
{% endhighlight %}
55
55
{% endtabs %}
@@ -58,14 +58,14 @@ Using one of the above commands will prompt for project configuration options.
58
58
{% tabs %}
59
59
{% highlight bash tabtitle="CMD" %}
60
60
61
-
√ What is your project named? ... ej2-nextjs-pdfviewer
61
+
√ What is your project named? ... ej2-next-js-pdfviewer
62
62
√ Would you like to use TypeScript? ... No / `Yes`
63
63
√ Would you like to use ESLint? ... No / `Yes`
64
64
√ Would you like to use Tailwind CSS? ... `No` / Yes
65
65
√ Would you like to use `src/` directory? ... No / `Yes`
66
66
√ Would you like to use App Router? (recommended) ... No / `Yes`
67
67
√ Would you like to customize the default import alias? ... `No`/ Yes
68
-
Creating a new Next.js app in D:\ej2-nextjs-pdfviewer.
68
+
Creating a new Next.js app in D:\ej2-next-js-pdfviewer.
69
69
70
70
{% endhighlight %}
71
71
{% endtabs %}
@@ -74,7 +74,7 @@ Creating a new Next.js app in D:\ej2-nextjs-pdfviewer.
74
74
{% tabs %}
75
75
{% highlight bash tabtitle="CMD" %}
76
76
77
-
cd ej2-nextjs-pdfviewer
77
+
cd ej2-next-js-pdfviewer
78
78
79
79
{% endhighlight %}
80
80
{% endtabs %}
@@ -124,7 +124,7 @@ Syncfusion<sup style="font-size:70%">®</sup> React components include built-
124
124
{% endhighlight %}
125
125
{% endtabs %}
126
126
127
-
N> To learn more about built-in themes and CSS references for individual components, see the [themes](https://ej2.syncfusion.com/react/documentation/appearance/theme/) documentation.
127
+
N> To learn more about built-in themes and CSS references for individual components, see the [themes](https://ej2.syncfusion.com/react/documentation/appearance/theme) documentation.
128
128
129
129
## Add the Syncfusion<supstyle="font-size:70%">®</sup> React component
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/save-pdf-files.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
##Saving PDF files
11
+
# Saving PDF files
12
12
13
13
After editing a PDF with annotation tools, you can save the updated file to a server, a database, or download it locally. The following sections show common approaches.
14
14
@@ -71,8 +71,7 @@ public IActionResult Download([FromBody] Dictionary<string, string> jsonObject)
71
71
72
72
Set the `serviceUrl` to point to your web service (for example, replace `https://localhost:44396/pdfviewer` with your server URL). Also set `documentPath` to the document URL you want to load.
[View sample in GitHub](https://github.com/SyncfusionExamples/react-pdf-viewer-examples/tree/master/Save%20and%20Load/Save%20PDF%20file%20to%20server)
105
103
106
104
## Download PDF file as a copy
107
105
108
106
The built-in toolbar includes a download option that saves the updated PDF to the user's local file system. You can also trigger the same behavior programmatically by calling the viewer's [`download()`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#download) API.
0 commit comments