Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

itext-dotnet

> 数据库
Open source

iText for .NET is the .NET version of the iText library, formerly known as iTextSharp, which it replaces. iText represents the next level of SDKs for developers

1.9K stars0 likes2 views
WebsiteGitHub

About

iText for .NET is the .NET version of the iText library, formerly known as iTextSharp, which it replaces. iText represents the next level of SDKs for developers

iText Core/Community (previously known as iTextSharp) is a high-performance, battle-tested library that allows you to create, adapt, inspect and maintain PDF documents, allowing you to add PDF functionality to your software projects with ease. It is also available for Java.

The key features of iText Core/Community are:

  • Core library:
    • PDF creation with the use of our layout engine
    • PDF manipulation, e.g. merging multiple PDFs into one, adding new content, ...
    • PDF digital signing
    • PDF form creation and manipulation
    • Working with PDF/A documents
    • Working with PDF/UA documents
    • FIPS-compliant cryptography
    • Barcode generation
    • SVG support
  • [Addons:][all products]
    • Converting XML/HTML & CSS to PDF [repo][pdfhtml], [info][pdfhtmlproduct]
    • Perform OCR on images and PDF documents [repo][pdfocr], [info][pdfocrproduct]
    • Redacting sensitive information in PDF documents [repo][pdfsweep], [info][pdfsweepproduct]
    • Support for international character sets (e.g. Arabic, Chinese, Hebrew, Thai, ...) [info][calligraph]
    • Optimize PDF documents for reduced file size, and increased performance [info][optimizer]
    • Flattening XFA documents [info][xfa]
    • PDF debugging [repo][rups], [info][rupsproduct]

Want to discover what's possible? Head over to our Demo Lab! It contains a collection of demo applications ready to use online!

Getting started

The easiest way to get started is to use NuGet, just execute the following install command in the folder of your project:

bash
dotnet add package itext --version <REPLACE_WITH_DESIRED_ITEXT_VERSION>
dotnet add package itext.bouncy-castle-adapter --version <REPLACE_WITH_DESIRED_ITEXT_VERSION>

For more advanced use cases, please refer to the Installation guidelines. You can also [build iText Community from source][building].

Hello PDF!

The following example shows how easy it is to create a simple PDF document:

csharp
using iText.Kernel.Pdf;
using iText.Layout;
using iText.Layout.Element;

namespace HelloPdf {
    class Program {
        static void Main(string[] args) {
            using var document = new Document(new PdfDocument(new PdfWriter("helloworld-pdf.pdf")));
            document.Add(new Paragraph("Hello World!"));
        }
    }
}

Examples

For more advanced examples, refer to our Knowledge Base or the main Examples repo. You can find C# equivalents to the Java Signing examples here, though the Java code is very similar since they have the same API.

Some of the output PDF files will be incorrectly displayed by the GitHub previewer, so be sure to download them to see the correct results.

Description Link
Basic layout
Change text properties C#, PDF
Creating a simple table C#, PDF
Add an image to a PDF document C#, PDF
Create a list C#, PDF
Add a watermark C#, PDF
Add links to navigate within a document C#, PDF
Create a popup annotation C#, PDF
Change font C#
Add form fields C#

General document settings
Change page size and margin C#, PDF

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#accessibilityacroformarchivingccpa

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库