Feature-Rich C# .NET PDF API Library for Total Document Control

Take total control of PDFs - generate documents with speed, memory efficiency, and no dependencies.

  • Generate, load, edit, and save PDF documents in C# .NET
  • Support multiple languages with full text, paragraph formatting, and fonts
  • Redact content from PDFs with the new redaction tool
  • Support hundreds of PDF features
  • All features are fully supported on Windows, macOS, and Linux
  • Includes a JavaScript PDF Viewer to view and optionally edit PDFs on the client-side
Download Free Trial (v 6.2.2)

Latest Release Info

What's New in GrapeCity Documents v6.2

Overview & Benefits of a C# .NET PDF API

A C# .NET PDF document API library allowing developers to programmatically create and manipulate PDF documents at scale. GrapeCity Documents for PDF is a solution that allows developers to import/export, create AcroForms (PDF Forms), and deploy PDFs across desktop and web applications.

Fast and Efficient

Save memory and time with the lightweight API architecture to generate and work with PDF documents in C# .NET effortlessly.

Comprehensive API for Adobe PDF

Generate, edit, and store feature-rich PDF documents without compromising design or features. This API conforms to Adobe PDF specification 2.0. Provides a client-side JavaScript PDF Viewer.

Complete Text Support

Documents for PDF includes text and paragraph formatting, special characters, multiple languages, RTL support, and vertical and rotated text for all supported platforms.

Feature-rich API

Generate PDF forms with everything from signatures to security features. You can add, delete, copy and move pages, change page sizes, orientation, generate linearized PDFs, add annotations, redact content from PDF documents, and compress PDF files.

Full .NET Support for Windows, Linux, and MacOS

Develop for any .NET platform and major operating systems with a single code base. Use in your apps for .NET Core, .NET Framework, Mono, Xamarin.iOS, and Xamarin.Android.

Deploy Apps with PDFs to the Cloud

Cloud-based deployment means you can be everywhere. With NuGet and Documents for PDF, you can deploy to Azure, AWS, and AWS Lambda.

Linearize existing C# PDF documents

Linearize any existing PDF document and save the document in any 3 modes - Default, Linearize and Incremental Update (for signing existing signed documents)

Delete or Replace text in C# .NET PDF documents

Update PDF documents by replacing or deleting text.

Extract Data from PDF Documents in .NET 6

Copy/Export table data or tagged content from PDFs using GcPdf and GcExcel.NET Excel library.

Redact Content from PDFs in C# .NET

Mark and remove sensitive, confidential content from PDF documents with redact annotations. The marked content can be erased or masked with a rectangular or polygonal reaction area.

Convert HTML to PDF with no dependencies

  • Render a URL or HTML string to PDF
  • No dependency on GPL/LGPL licensed software
  • Use the same browser instance to render multiple pages
  • Modify/replace the HTML page content

Advanced Font and Language Support

Dozens of fonts and options support various styles and multiple languages, including Arabic, Hebrew, Hindi, and Japanese.

PDF Digital Signatures in C# .NET

Implement signatures with image-based visual signatures, or digitally for document security and workflow management using X509 certificates. Use incremental updates to add multiple signatures to PDFs.

Full Annotations and Forms Support

Annotations/Form Fields are fully supported for PDF Spec 2.0, including adding, modifying extracting, and deleting annotations from documents.

Add PDF Layers

Add, edit and remove layers programmatically. Associate PDF content (part of content stream, FormXObject, Annotation or PDF document) with a layer in PDF document.

Programmatically Create Tables with Complex Layouts using C# and VB.NET

Create Tables with Complex Layouts

Make use of new TableRenderer API to create tables with complex layout, merge cells, rotate text direction in cells and draw custom content in the cells.

Work with password protected PDF without specifying password

Edit and save an encrypted PDF by either adding new objects or read/write properties provided they are not based on PDF strings.

Client-side and Server-side PDF Solution

PDF Viewer With PDF Editor

GcPdf comes with a Standard license for GrapeCity Document’s JavaScript PDF Viewer (GcPdfViewer). Together they are a powerful PDF solution that provides robust functionality for both client-side and server-side PDF processing.

With GcPdf, users can easily create, modify, and manipulate PDF documents programmatically on the server-side using the .NET platform.

GcPdfViewer offers a feature-rich and customizable PDF viewer for client-side PDF viewing. The GcPdfViewer also offers a Professional license enabling features such as document editing, PDF form-filling, collaborative editing capabilities, and much more.

Our Top C# .NET PDF API Features

Quick Start

This quick tutorial walks you through creating a simple "Hello, World!" app that uses GcPdf to generate and save a C# .NET PDF file.

 

Document Properties

Make viewing faster with linearized PDFs. Documents properties include metadata, compression, and font embedding behavior. Restrict printing, copying, and PDF editing.

Print PDF Documents to Printer

Print PDF document directly to a printer on Windows platform.


 

Fonts

Create, initialize, and use the Font Collection class to manage and use when rendering texts.

 

Page Headers

Print page headers and footers in PDF documents. Organize pages by headings to help users get a sense of the page’s organization and structure.

Merge Pages

Combine and organize multiple documents into one PDF–making it simple to share and send render pages of one PDF to another.

Attachments

Attach photos, text, drawings, PDFs, and other file types (including AcroForm) to a PDF. If you move the PDF to a new location, the attachments move with it.

Text

Review the basics of rendering text in GcPDF (DrawString and DrawTextLayout), character formatting, paginated text, text trimming, word, character wraps, and much more.

Graphics

Use linear and radial gradient brushes.




Images

Generate pages of slides from all images in a directory and extract images from PDF documents.


Create Tables with complex layout

Create Tables with Complex Layouts

Make use of new TableRenderer API to create tables with complex layout, merge cells, rotate text direction in cells and draw custom content in the cells.

PDF Report Templates

Automate and customize documents and report generation. PDF Templates allow you to bind HTML templates to various data sources by using report templates that generate PDF files from HTML.

Document Properties

Make viewing faster with linearized PDFs. Documents properties include metadata, compression, and font embedding behavior. Restrict printing, copying, and PDF editing.

Annotations

Create, edit, or delete annotations from existing PDF documents. Several annotations are supported from PDF specifications.


Advanced Text

Design magazine style, multi-column page layouts with balanced columns and outlines. Multi-language text is supported, including RTL, east-Asian languages, and vertical text.

Navigation

Create text links to a URL and add outline entries. Link thumbnails to full-sized images, article threads, and destinations.


Programmatically convert HTML files to PDF documents

HTML to PDF

Convert HTML files or strings to PDF, or add HTML fragments to PDF documents along with other content.


Tags

Create tagged (structured) PDFs and attach them to individual paragraphs.

Extract

Load existing PDF into GcPdfDocument and see how text, paragraphs, and tables can be inspected or extracted.

Redaction

Completely remove content from PDF documents, including quadrilateral and polygonal redaction areas.

Form Fields

Create AcroForm fields include textbox, checkbox, radio button, combtext, combo box, list box, and buttons. Also, set field format for TextField, CombTextField, ComboBoxField.


PDF Layers

Add, edit and remove layers programmatically. Associate PDF content (part of content stream, FormXObject, Annotation or PDF document) with a layer in PDF document.

Barcodes

Render samples of all barcode symbologies supported by the GcBarcode library.


Digital Signatures

Digitally sign PDFs, inspect signature properties, or remove existing signatures. Add Image signatures to PDF Documents.




Security

Encrypt or decrypt PDF Documents. When a document is encrypted, its contents become unreadable. An authorized user can decrypt the document to obtain access to the contents. If a PDF document is password encrypted, the user must enter the password in order to view the document.

ZUGFeRD Complilant

ZUGFeRD is a standard for electronic invoices in PDF/A format and based on the ISO standard. Create ZUGFeRD 1.x compliant invoices and read ZUGFeRD data from existing PDFs.



Password-Protected PDF Files

Password-protected PDF files can be opened through the password input dialog or even without specifying the password.

Miscellaneous

Check out even more great features of GcDocuments for PDF Viewer



Linearize Existing PDF Documents

Linearise any existing PDF document and save the document in any 3 modes - Default, Linearise and Incremental Update (for signing existing signed document)

Delete Text

Find and delete text from PDF documents using two options - Standard or PreserveSpace.

Replace Text

Find and replace text in PDF documents.

 

Draw SVG on PDF Documents

Draw the SVG Image from file to PDF document using GcGraphics.DrawSvg method.

PDF to Images

Save a PDF as a multi-page TIFF, JPEG, PNG, GI, or BMP image to save space and open easily.

Read Structure Tags

Extract whole logical structure of the PDF document, parsed the tags, glean the data that needs to be extracted.

Visit Our C# .NET PDF API Samples

Documents for PDF Demos

Your full-fledged ASP.NET Core sample browser includes all major features, real-time PDFs, and use cases. These PDF files are generated using server-side code with GcPdf and loaded in the client-side GrapeCity JavaScript PDF Viewer. You can download individual .NET Core samples that can run as standalones in C# and VB.NET. The demos also include full sample code in C# and VB with comments along each step for quick onboarding.

"The speed to build what we needed and the level of ease of use of controls are why we chose GrapeCity. It was a perfect fit."

Spiro Skias - CGI