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
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-core.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
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
4
4
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.
5
5
platform: document-processing
6
6
control: PDF
7
7
documentation: ug
8
8
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
9
9
---
10
10
11
-
# Create or Generate PDF file in ASP.NET Core
11
+
# Create or Generate PDF in ASP.NET Core
12
12
13
13
The Syncfusion<sup>®</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.
The Syncfusion<sup>®</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>®</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.
14
14
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.
16
16
17
17
## Add script reference
18
18
@@ -21,12 +21,12 @@ This guide explains how to integrate the Javascript PDF library into an React ap
**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.
30
30
31
31
{% tabs %}
32
32
{% highlight c# tabtitle="~/App.jsx" %}
@@ -36,13 +36,13 @@ import React from 'react';
36
36
export default function App() {
37
37
const createPdf = () => {
38
38
// Create a new PDF document
39
-
var pdf = new window.ej.pdf.PdfDocument();
39
+
var pdf = new ej.pdf.PdfDocument();
40
40
// Add a new page
41
41
var page = pdf.addPage();
42
42
// Get graphics from the page
43
43
let graphics = page.graphics;
44
44
// 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);
46
46
// Create a new black brush
47
47
var brush = new window.ej.pdf.PdfBrush({r: 0, g: 0, b: 0});
0 commit comments