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
Syncfusion<supstyle="font-size:70%">®</sup> React components include built-in themes. Import a theme to match the look and feel of the application.
105
+
Syncfusion<supstyle="font-size:70%">®</sup> React components include built-in themes. Import the PDF Viewer theme and base styles to match the look and feel of the application.
104
106
105
-
For projects using the App Router, add the imports to `src/app/globals.css`. For projects using the Pages Router, add them to a global stylesheet such as `pages/_app.js` or its CSS import. Remove or consolidate any conflicting styles as needed.
107
+
/* Where to add the imports: */
108
+
/* - App Router: put these in `src/app/globals.css`*/
109
+
/* - Pages Router: put them in `pages/_app.js` or its imported global CSS */
@@ -119,7 +124,7 @@ For projects using the App Router, add the imports to `src/app/globals.css`. For
119
124
{% endhighlight %}
120
125
{% endtabs %}
121
126
122
-
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.
123
128
124
129
## Add the Syncfusion<supstyle="font-size:70%">®</sup> React component
125
130
@@ -174,4 +179,4 @@ yarn run dev
174
179
175
180
To learn more about the PDF Viewer component, see the [documentation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/getting-started#module-injection).
176
181
177
-
N> [View the Next.js PDF Viewer sample in the GitHub repository]https://github.com/SyncfusionExamples/syncfusion-react-pdfviewer-component-in-nextjs
182
+
N> [View the Next.js PDF Viewer sample in the GitHub repository](https://github.com/SyncfusionExamples/syncfusion-react-pdfviewer-component-in-nextjs)
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.
5
+
control: PDF Viewer
6
+
platform: document-processing
7
+
documentation: ug
8
+
domainurl: ##DomainURL##
9
+
---
10
+
11
+
12
+
# Getting started with Syncfusion React PDF Viewer in Preact
13
+
14
+
This page is a short, task-focused overview for integrating the Syncfusion React PDF Viewer into a [Preact](https://preactjs.com/) app. Use the short sections below for quick tasks; a minimal full example is provided as an optional reference.
15
+
16
+
[Preact](https://preactjs.com/) is a lightweight React alternative that preserves the React-compatible API. Use Preact when you want smaller bundle size while reusing the React viewer components.
17
+
## Setup
18
+
19
+
How‑to: Create a Preact project and install the Syncfusion package.
20
+
21
+
```bash
22
+
npm init preact # choose JavaScript or TypeScript as needed
title: Getting started with Syncfusion React PDF Viewer component| Syncfusion
4
+
description: Learn here all about Getting started with Syncfusion React PDF Viewer component of Syncfusion Essential JS 2 and more details.
5
+
control: PDF Viewer
6
+
platform: document-processing
7
+
documentation: ug
8
+
domainurl: ##DomainURL##
9
+
---
10
+
11
+
12
+
# Getting started with Syncfusion React PDF Viewer
13
+
14
+
15
+
If you're starting to integrate the Syncfusion<supstyle="font-size:70%">®</sup> React PDF Viewer into your application, choose the path below that matches how you'll run the viewer in your app (client-only or via a web service) and follow that tutorial.
16
+
17
+
-**Standalone** — Run the viewer entirely in the browser (no server rendering). This mode delivers excellent runtime performance and responsiveness because rendering and interaction happen on the client; it is ideal for quick prototyping and simple integrations.
18
+
-**Server‑backed** — Use a web service to perform PDF Viewer operations (rendering, document processing, or streaming). Choose this path when you need server-side processing for PDF Viewer operations.
19
+
20
+
This page is intentionally a short introduction — choose a path and follow its tutorial:
0 commit comments