Skip to content

Commit dc577a9

Browse files
committed
994201-dev: Updated new API and code structure.
1 parent 079fc18 commit dc577a9

File tree

5 files changed

+194
-445
lines changed

5 files changed

+194
-445
lines changed

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: post
3-
title: Create or Generate PDF file in ASP.NET Core | Syncfusion
3+
title: Create or Generate PDF in ASP.NET Core | Syncfusion
44
description: Learn how to create or generate a PDF file in ASP.NET Core applications with easy steps using Syncfusion JavaScript PDF library without depending on Adobe.
55
platform: document-processing
66
control: PDF
77
documentation: ug
88
keywords: .net core create pdf, edit pdf, merge, pdf form, fill form, digital sign, table, javascript, dotnet core pdf, asp generate pdf, aspx generate pdf
99
---
1010

11-
# Create or Generate PDF file in ASP.NET Core
11+
# Create or Generate PDF in ASP.NET Core
1212

1313
The Syncfusion<sup>&reg;</sup> JavaScript PDF library is used to create, read, and edit PDF documents. This library also offers functionality to merge, split, stamp, forms, and secure PDF files.
1414

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ keywords: javascript, pdf, script, react
1010

1111
# Create or Generate PDF file in React
1212

13-
The Syncfusion<sup>&reg;</sup> Javascript PDF library is used to create, read, and edit PDF documents. This library also offers functionality to merge, split, stamp, fill forms, and secure PDF files.
13+
The Syncfusion<sup>&reg;</sup> JavaScript PDF library is used to create, read, and edit PDF documents. This library also offers functionality to merge, split, stamp, fill forms, and secure PDF files.
1414

15-
This guide explains how to integrate the Javascript PDF library into an React application.
15+
This guide explains how to integrate the JavaScript PDF library into an React application.
1616

1717
## Add script reference
1818

@@ -21,12 +21,12 @@ This guide explains how to integrate the Javascript PDF library into an React ap
2121
```
2222
<head>
2323
...
24-
<!-- Syncfusion Javascript PDF Library (CDN) -->
24+
<!-- Syncfusion JavaScript PDF Library (CDN) -->
2525
<script src="https://cdn.syncfusion.com/ej2/31.2.15/dist/ej2.min.js"></script>
2626
</head>
2727
```
2828

29-
**Create a PDF document** : Add the script in `App.jsx` by creating a button and attaching a click event that uses the Javascript PDF API to generate a PDF document.
29+
**Create a PDF document** : Add the script in `App.jsx` by creating a button and attaching a click event that uses the JavaScript PDF API to generate a PDF document.
3030

3131
{% tabs %}
3232
{% highlight c# tabtitle="~/App.jsx" %}
@@ -36,13 +36,13 @@ import React from 'react';
3636
export default function App() {
3737
const createPdf = () => {
3838
// Create a new PDF document
39-
var pdf = new window.ej.pdf.PdfDocument();
39+
var pdf = new ej.pdf.PdfDocument();
4040
// Add a new page
4141
var page = pdf.addPage();
4242
// Get graphics from the page
4343
let graphics = page.graphics;
4444
// Set font
45-
var font = pdf.embedFont(window.ej.pdf.PdfFontFamily.helvetica, 36,window.ej.pdf.PdfFontStyle.regular);
45+
var font = pdf.embedFont(ej.pdf.PdfFontFamily.helvetica, 36, ej.pdf.PdfFontStyle.regular);
4646
// Create a new black brush
4747
var brush = new window.ej.pdf.PdfBrush({r: 0, g: 0, b: 0});
4848
// Draw text

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ export default {
6464
createPdf() {
6565

6666
// Create a new PDF document
67-
const pdf = new window.ej.pdf.PdfDocument();
67+
const pdf = new ej.pdf.PdfDocument();
6868
// Add a new page
6969
const page = pdf.addPage() as PdfPage;
7070
// Get graphics from the page
7171
const graphics = page.graphics;
7272
// Set font (Syncfusion EJ2 API)
73-
const font = new PdfStandardFont(window.ej.pdf.PdfFontFamily.helvetica, 36, window.ej.pdf.PdfFontStyle.regular);
73+
const font = new PdfStandardFont(ej.pdf.PdfFontFamily.helvetica, 36, ej.pdf.PdfFontStyle.regular);
7474
// Create a new black brush (RGB array)
75-
const brush = new window.ej.pdf.PdfBrush({r: 0, g: 0, b: 0});
75+
const brush = new ej.pdf.PdfBrush({r: 0, g: 0, b: 0});
7676
// Draw text inside a rectangle [x, y, width, height]
7777
graphics.drawString('Hello World!!!', font, {x: 20, y: 20, width: graphics.clientSize.width - 20, height: 60}, brush);
7878
// Save and download PDF

0 commit comments

Comments
 (0)