Skip to main content
Any Framework

The Syncfusion Essential PDF is a .NET PDF library that enables your .NET applications to read, write, and manipulate existing PDF documents. It has various features such table creation, PDF form creation and filling, digital signature, and advanced PDF encryption. It also has various PDF manipulation features such as PDF compression, redaction, split and merge PDF, watermark, import and export PDF form data, replace or remove images, extract text and find text.

Published
Oct 19, 2021
5y ago
Total Downloads
1.3M
1,312,090

Install

dotnet add package Syncfusion.Pdf.AspNet.Mvc4 --version 19.3.0.46

No framework information available.

README

The Syncfusion .NET PDF library is a feature-rich and high-performance .NET PDF library that is used to create, read, and edit PDF documents programmatically without Adobe dependencies.

Key features:

Getting Started

You can fetch the Syncfusion .NET MVC PDF library NuGet by simply running Install-Package Syncfusion.Pdf.AspNet.Mvc4 from the Package Manager Console in Visual Studio.

You can also try some code examples of common use cases from our GitHub Repository.

Create a PDF Document programmatically using C#

The following code example illustrates how to create a PDF document.

//Create a PDF document
PdfDocument document = new PdfDocument();
  
//Add a page to the document
PdfPage page = document.Pages.Add();
  
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
  
//Set the standard font
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
  
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
  
//Save the document into file  
document.Save("sample.pdf");

//Close the document
document.Close(true);

Manipulate the PDF document programmatically using C#

The following code example illustrates how to manipulate the PDF document.

//Load the PDF document
PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");

//Get first page from document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;

//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;

//Set the standard font.
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);

//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));

//Save the document into file
document.Save("sample.pdf");

//Close the document.
document.Close(true);

Resources

Support and feedback

License

This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

Changes from Previous Version

No structural changes between v19.3.0.45 and v19.3.0.46.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.