Skip to content

Commit 9eff255

Browse files
1010807: Staging failures
1 parent d9413c5 commit 9eff255

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Important: ensure any host you use serves `.wasm` files with Content-Type `appli
9292

9393
Create `PdfViewerClient.tsx` under `src/webparts/pdfViewer/components` and paste the minimal example below. This component is client-only and safe for SPFx (which runs in the browser):
9494

95-
```jsx
95+
```ts
9696
// src/webparts/pdfViewer/components/PdfViewerClient.tsx
9797
import * as React from 'react';
9898
import {
@@ -131,7 +131,7 @@ export default PdfViewerClient;
131131

132132
Open the web part main React file (for example `src/webparts/pdfViewer/components/PdfViewer.tsx` created by the generator) and render `PdfViewerClient`:
133133

134-
```jsx
134+
```ts
135135
import * as React from 'react';
136136
import PdfViewerClient from './PdfViewerClient';
137137

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This simple example demonstrates the minimal steps to show a PDF document in the
2020
2. Set `documentPath` to a publicly accessible URL.
2121

2222
Example (TypeScript / React):
23-
```jsx
23+
```ts
2424
import * as React from 'react';
2525
import * as ReactDOM from 'react-dom/client';
2626
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +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-
```jsx
74+
```js
7575
import * as ReactDOM from 'react-dom';
7676
import * as React from 'react';
7777
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,
@@ -105,7 +105,7 @@ root.render(<App />);
105105

106106
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.
107107

108-
```jsx
108+
```js
109109
import * as ReactDOM from 'react-dom/client';
110110
import * as React from 'react';
111111
import './index.css';

0 commit comments

Comments
 (0)