Skip to content

Commit 6bd7b9c

Browse files
1010807: Addressed review comments
1 parent 5e26081 commit 6bd7b9c

11 files changed

Lines changed: 36 additions & 30 deletions

Document-Processing-toc.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,11 +1020,6 @@
10201020
<li><a href="/document-processing/pdf/pdf-viewer/react/organize-pages/events">Events</a></li>
10211021
</ul>
10221022
</li>
1023-
<li>Environment Integration
1024-
<ul>
1025-
<li><a href="/document-Processing/pdf/pdf-viewer/react/environment-integration/existing-react-layout">Integrating into existing react layout</a></li>
1026-
</ul>
1027-
</li>
10281023
<li><a href="/document-processing/pdf/pdf-viewer/react/print">Print</a></li>
10291024
<li><a href="/document-processing/pdf/pdf-viewer/react/download">Download</a></li>
10301025
<li><a href="/document-processing/pdf/pdf-viewer/react/events">Events</a></li>
@@ -1080,6 +1075,7 @@
10801075
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/show-hide-annotation">Show and Hide Annotation</a></li>
10811076
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/enable-text-selection">Dynamically Enable or Disable Text Selection</a></li>
10821077
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/load-document-after-resources-loaded">Load document after resources loaded</a></li>
1078+
<li><a href="/document-Processing/pdf/pdf-viewer/react/how-to/existing-react-layout">Integrate PDF Viewer into existing react layout</a></li>
10831079
</ul>
10841080
</li>
10851081
<li>Troubleshooting

Document-Processing/PDF/PDF-Viewer/react/how-to-overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ The following how-to articles and frequently asked questions for the Syncfusion
6363
* [How to get the signature selected and unselected event?](./how-to/signatureselect-signatureunselect-ts)
6464
* [How to unload the PDF document from the viewer?](./how-to/unload-document)
6565
* [Load Document after resources Loaded](./how-to/load-document-after-resources-loaded)
66+
* [Integrate PDF Viewer into existing react layouts](./how-to/existing-react-layout)

Document-Processing/PDF/PDF-Viewer/react/environment-integration/existing-react-layout.md renamed to Document-Processing/PDF/PDF-Viewer/react/how-to/existing-react-layout.md

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

11-
# Integrating into Existing React Layout
11+
# Integrating PDF Viewer into Existing React Layouts
1212

1313
## Overview
1414

@@ -41,6 +41,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
4141
);
4242
}
4343
```
44+
![PDF Viewer in div](../images/react-layouts-div.png)
4445

4546
Flex container: keep `minHeight: 0` on flex children so the viewer can shrink/grow correctly:
4647

@@ -52,7 +53,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
5253
export function App() {
5354
return (
5455
<div style={{ display: 'flex', flexDirection: 'column', height: '100vh' }}>
55-
<header style={{ height: '100px' }}>Toolbar</header>
56+
<header style={{ height: '100px', textAlign: 'center' }}>Header Content</header>
5657
<main style={{ flex: 1, minHeight: 0 }}>
5758
<div style={{ height: '100%' }}>
5859
<PdfViewerComponent
@@ -69,6 +70,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
6970
);
7071
}
7172
```
73+
![PDF Viewer in Flex box](../images/react-layouts-flexbox.png)
7274

7375
CSS Grid - reserve rows/columns using `grid-template-rows` or `grid-template-columns`:
7476

@@ -150,6 +152,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
150152
}
151153
};
152154
```
155+
![PDF Viewer in grid](../images/react-layouts-grid.png)
153156

154157
- **Use viewer inside Tab components**
155158
- The react PDF Viewer are also supported inside Syncfusion tab components.
@@ -187,7 +190,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
187190
return (
188191
<div className="page">
189192
<header className="header">
190-
<h3 style={{ margin: 0 }}>Tab + PDF Viewer</h3>
193+
<h3 style={{ margin: 0 }}>PDF Viewer in tab</h3>
191194
</header>
192195

193196
<div className="tab-host">
@@ -222,6 +225,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
222225
);
223226
};
224227
```
228+
![PDF Viewer in tab](../images/react-layouts-tab.png)
225229

226230
- **Use viewer inside Dialog**
227231
- If the viewer sits inside a dialog, for example Syncfusion Dialog, render or initialize the viewer after the dialog open events. The DOM must be visible for the viewer to measure layout.
@@ -292,6 +296,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
292296
);
293297
};
294298
```
299+
![PDF Viewer in dialog](../images/react-layouts-dialog.png)
295300

296301
- **Use viewer inside Collapsible sections**
297302
- For accordions or collapsible containers, either render the viewer lazily when the section expands or dispatch the resize event after expansion so the viewer can recompute layout.
@@ -394,6 +399,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
394399
border-bottom: 1px solid #e5e5e5;
395400
}
396401
```
402+
![PDF Viewer in accordion](../images/react-layouts-accordion.png)
397403

398404
## Why visibility and height matter
399405

69.2 KB
Loading
75.2 KB
Loading
69.4 KB
Loading
84.3 KB
Loading
87.3 KB
Loading
107 KB
Loading
157 KB
Loading

0 commit comments

Comments
 (0)