Skip to content

Commit 8b93b69

Browse files
1010807: Resolving CI issues
1 parent c79bcbe commit 8b93b69

3 files changed

Lines changed: 16 additions & 20 deletions

File tree

Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/nextjs-getting-started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: post
33
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.
55
control: PDF Viewer
66
platform: document-processing
77
documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Creating a Next.js application using Syncfusion<sup style="font-size:70%">&reg;</sup> React components
11+
# Creating a Next.js application using Syncfusion React PDF Viewer
1212

1313
This guide shows how to set up a Next.js application and integrate the Syncfusion<sup style="font-size:70%">&reg;</sup> React PDF Viewer component.
1414

@@ -45,11 +45,11 @@ yarn create next-app
4545

4646
Using one of the above commands will prompt for project configuration options.
4747

48-
1. Define the project name. For example: `ej2-nextjs-pdfviewer`.
48+
1. Define the project name. For example: `ej2-next-js-pdfviewer`.
4949
{% tabs %}
5050
{% highlight bash tabtitle="CMD" %}
5151

52-
√ What is your project named? » ej2-nextjs-pdfviewer
52+
√ What is your project named? » ej2-next-js-pdfviewer
5353

5454
{% endhighlight %}
5555
{% endtabs %}
@@ -58,14 +58,14 @@ Using one of the above commands will prompt for project configuration options.
5858
{% tabs %}
5959
{% highlight bash tabtitle="CMD" %}
6060

61-
√ What is your project named? ... ej2-nextjs-pdfviewer
61+
√ What is your project named? ... ej2-next-js-pdfviewer
6262
√ Would you like to use TypeScript? ... No / `Yes`
6363
√ Would you like to use ESLint? ... No / `Yes`
6464
√ Would you like to use Tailwind CSS? ... `No` / Yes
6565
√ Would you like to use `src/` directory? ... No / `Yes`
6666
√ Would you like to use App Router? (recommended) ... No / `Yes`
6767
√ 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.
6969

7070
{% endhighlight %}
7171
{% endtabs %}
@@ -74,7 +74,7 @@ Creating a new Next.js app in D:\ej2-nextjs-pdfviewer.
7474
{% tabs %}
7575
{% highlight bash tabtitle="CMD" %}
7676

77-
cd ej2-nextjs-pdfviewer
77+
cd ej2-next-js-pdfviewer
7878

7979
{% endhighlight %}
8080
{% endtabs %}
@@ -124,7 +124,7 @@ Syncfusion<sup style="font-size:70%">&reg;</sup> React components include built-
124124
{% endhighlight %}
125125
{% endtabs %}
126126

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.
128128

129129
## Add the Syncfusion<sup style="font-size:70%">&reg;</sup> React component
130130

Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/preact.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: Getting started with Syncfusion React PDF Viewer in Preact
4-
description: Short overview and task links for using the Syncfusion React PDF Viewer with Preact.
3+
title: Getting started with Syncfusion React PDF Viewer in Preact Application
4+
description: Provides a short overview and essential task links for integrating and using the Syncfusion React PDF Viewer within Preact.
55
control: PDF Viewer
66
platform: document-processing
77
documentation: ug
@@ -46,7 +46,7 @@ Note: keep import order consistent with component dependencies.
4646

4747
## Add component
4848

49-
How‑to: Render a minimal `PdfViewerComponent` in `src/index.jsx`.
49+
How‑to: Render a minimal `PdfViewerComponent` in `src/index.js`.
5050

5151
Prefer a single `Add component` example using the CDN `resourceUrl` (no server required). Replace the CDN version as needed.
5252

Document-Processing/PDF/PDF-Viewer/react/save-pdf-files.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
## Saving PDF files
11+
# Saving PDF files
1212

1313
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.
1414

@@ -71,8 +71,7 @@ public IActionResult Download([FromBody] Dictionary<string, string> jsonObject)
7171

7272
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.
7373

74-
{% tabs %}
75-
{% highlight js tabtitle="index.js" %}
74+
```tsx
7675
import * as ReactDOM from 'react-dom';
7776
import * as React from 'react';
7877
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,
@@ -98,17 +97,15 @@ function App() {
9897
}
9998
const root = ReactDOM.createRoot(document.getElementById('sample'));
10099
root.render(<App />);
101-
{% tabs %}
102-
{% highlight js tabtitle="index.js" %}
100+
```
103101

104102
[View sample in GitHub](https://github.com/SyncfusionExamples/react-pdf-viewer-examples/tree/master/Save%20and%20Load/Save%20PDF%20file%20to%20server)
105103

106104
## Download PDF file as a copy
107105

108106
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.
109107

110-
{% tabs %}
111-
{% highlight js tabtitle="index.js" %}
108+
```tsx
112109
import * as ReactDOM from 'react-dom/client';
113110
import * as React from 'react';
114111
import './index.css';
@@ -142,8 +139,7 @@ return (<div>
142139
}
143140
const root = ReactDOM.createRoot(document.getElementById('sample'));
144141
root.render(<App />);
145-
{% tabs %}
146-
{% highlight js tabtitle="index.js" %}
142+
```
147143

148144
## Save modified PDF to a database
149145

0 commit comments

Comments
 (0)