A C# PDF document API library is a programming interface that allows developers to programmatically create and manipulate PDF documents at scale. GrapeCity Documents for PDF is a solution that allows developers to import/export, create templates, and deploy PDFs across desktop applications.

  • Security

    User and owner passwords protection. Allow edit, copy, printing, and digital signatures along with encryption and decryption for C#.

  • Redaction Technology

    Confidently remove and obscure sensitive data within PDF files. Redact specific words, images, pages, and more.

  • Advanced Text Handling

    Create PDF templates in C# with special character support, open and standard PDF type fonts supported. Full support for creating PDF in multiple languages.

  • PDF to Image

    Convert PDF files to JPEG, TIFF, PNG, and BMP. Control image output, such as image size, DPI, aspect ratio, and more.

  • Document and Page

    Add, delete, copy, and move pages between PDFs. Attach document-level file attachments, change page size and orientations, split and merge documents.

  • PDF Data Extraction

    Search and extract text, images, and metadata from PDF files for automation, editing, indexing, and more.

Explore the Advanced Features of our C# PDF API

Documents for PDF report templates

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.

PDF Linearized Files in .NET 6

Document Properties

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

Advanced Font and Language Support


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



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

.NET 6 PDF CombText Field, Combo and List Box, and Radio Buttons

Form Fields

Create AcroForm fields include textbox, checkbox, radio button, combtext, combo box, list box, and buttons.

Rendering Text in GcPDF Using .NET 6


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

Rendering Vertical Japanese Text Using a Horizontal Column Layout

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.

Article Threads Over Related Images in a PDF


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

Generate Pages of Slides From All Images in a Directory


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

Soft Mask for Clipping and Transparency


Use linear and radial gradient brushes.

Render an HTML string to PDF.NET


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

Shipping Labels With Barcodes PDF .NET


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

PDF Tags


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

Get Text From a Specific Position in a PDF


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

Read Structure Tags

Read Structure Tags

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

Attach Files (including AcroForm) to a PDF


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.

PDF Redacted Sensitive Data Tax Return


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

Digital Signature Using PDF


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

Combine and Merge Multiples Files into One PDF

Merge Pages

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

PDF .NET Page Headers

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.

PDF to TIFF, JPG, PNG, GIF, or BMP Image

PDF to Images

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

PDF 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 Electronic Invoice Standard

ZUGFeRD Compliant

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 Protect JavaScript PDF Viewer Files

Password-Protected PDF Files

Password-protected PDF files can be opened through the password input dialog.

JavaScript PDF JavaScript PDF Viewer


Check out even more great features of GcDocuments for PDF Viewer

JavaScript PDF Quick Start

Quick Start

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

GrapeCity Documents PDF Viewer and PDF Editor

PDF Viewer With PDF Editor

Check out the new editing tools: Annotation Editor, Form Editor, and other awesome features in GrapeCity Documents PDF Viewer; helping you create a full-featured workflow to load, edit, design, review, and save PDF documents and forms in your applications.

Learn More

Visit Our PDF API Samples

Documents for PDF Documentation

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.

GrapeCity Documents is Trusted by the World’s
Leading Companies

Trusted by the World’s Leading Companies