Skip to content

Commit 2d9fcfa

Browse files
authored
Merge pull request #3745 from syncfusion-content/1041294-changesHotfix
Task(1041294): Review the JavaScript PDF Library UG documentation
2 parents 85ab6b8 + 047ee38 commit 2d9fcfa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-react.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ Replace `YOUR_LICENSE_KEY` with the key from your Syncfusion account. For more i
8686

8787
Replace the contents of `App.jsx` with the following code. The file imports the PDF classes as named exports from `@syncfusion/ej2-pdf` and creates a one-page PDF with a click handler.
8888

89-
{% raw %}
9089
{% tabs %}
91-
{% highlight javascript %}
90+
{% highlight js tabtitle="app.jsx" %}
91+
{% raw %}
9292

9393
import React from 'react';
9494
import { registerLicense } from '@syncfusion/ej2-base';
@@ -136,9 +136,9 @@ export default function App() {
136136
);
137137
}
138138

139+
{% endraw %}
139140
{% endhighlight %}
140141
{% endtabs %}
141-
{% endraw %}
142142

143143
N> This sample uses **named imports** from the npm package (`import { PdfDocument, ... } from '@syncfusion/ej2-pdf'`). The npm package does not expose a global `ej` namespace; using `ej.pdf.PdfDocument` without an import will throw `ReferenceError: ej is not defined` in a Vite or Create-React-App build. If you prefer the UMD-style global, load `ej2.min.js` from the Syncfusion CDN in `index.html` instead of importing the npm package.
144144

0 commit comments

Comments
 (0)