GrapeCity Documents for PDF (GcPdf) is a cross-platform library that allows to create, analyze, and modify PDF documents.
Its object model closely follows the Adobe PDF specification, and is designed to provide direct access to features of the PDF format.
In addition, Documents for PDF includes a powerful and platform-independent font handling and text layout engine and other high-level features that make PDF document creation easy and convenient.
HTML content can be rendered using the optional GcHtml library (GrapeCity.Documents.Html).
The online Documents for PDF sample browser is available at

Install-Package GrapeCity.Documents.Pdf -Version
dotnet add package GrapeCity.Documents.Pdf --version
<PackageReference Include="GrapeCity.Documents.Pdf" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GrapeCity.Documents.Pdf --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GrapeCity.Documents.Pdf,"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

# Changes since version

## Breaking changes
- The following properties were removed to ensure compliance with the PDF specification: WidgetAnnotation.DefaultAppearanceString, FreeTextAnnotation.DefaultAppearanceString, RedactAnnotation.OverlayTextAppearanceString, RedactAnnotation.OverlayTextFormat. Use the new DefaultAppearance/OverlayAppearance properties instead.
- WidgetAnnotation.TextFormat is deprecated, the new WidgetAnnotation.DefaultAppearance property should be used instead.

## Fixed
- When using certain fonts, Japanese characters are garbled in the generated PDF. (DOC-2740)
- Exception is thrown when loading a specific PDF. (DOC-2738, DOC-2755)
- Fonts specified for form fields are lost when the fields' values are set programmatically in code. (DOC-2732)
- Errors may occur if multiple threads are saving PDFs that use CFF fonts. (DOCXLS-3603)

## Changed
- If a PDF contains pages with errors, GcPdfDocument.Save() now ignores those errors (previously, it would throw an exception). (DOC-2735)
- Improved the speed when saving certain PDFs with tiling patterns as images. (DOC-2756)

## Added
- GrapeCity.Documents.Pdf.Annotations.DefaultAppearance class: represents the default appearance of an annotation.
- GrapeCity.Documents.Pdf.Annotations.AnnotationBase.CreateAppearanceContentStream() method: creates an instance of FormXObject that can be used to define the annotation's appearance stream.
- GrapeCity.Documents.Pdf.Annotations.WidgetAnnotation.DefaultAppearance property: gets the DefaultAppearance that specifies the visual properties used to format the annotation.
- GrapeCity.Documents.Pdf.Annotations.FreeTextAnnotation.DefaultAppearance property: gets the DefaultAppearance that specifies the visual properties used to format the annotation.
- GrapeCity.Documents.Pdf.Annotations.RedactAnnotation.OverlayAppearance property: gets the DefaultAppearance that specifies the visual properties used to format the overlay.
- Added overloads accepting font, font size and color, to methods on GcGraphics: DrawComboBox(), DrawCombTextBox(), DrawCombTextBox(), DrawListBox(), DrawPushButton(),  DrawUnsignedSignature(), DrawTextBox().

NuGet packages (23)

Showing the top 5 NuGet packages that depend on GrapeCity.Documents.Pdf:

Package Downloads
GrapeCity Documents for Excel is a high-speed, small-footprint spreadsheet API that requires no dependencies on Excel. With full .NET Standard 2.0 support, you can generate, load, modify, and convert spreadsheets in .NET Framework, .NET Core, Mono, and Xamarin. Apps using this spreadsheet API can be deployed to cloud, Windows, Mac, or Linux. Its powerful calculation engine and breadth of features means you’ll never have to compromise design or requirements. We model our interface-based API on Excel's document object model. This means that you can import, calculate, query, generate, and export any spreadsheet scenario. Using GcExcel, you can create full reports, sorted and filtered tables, sorted and filtered pivot tables, dashboard reports, add charts, sparklines, conditional formats, import and export Excel templates and also convert spreadsheets to PDF. The online Documents for Excel sample browser is available at
ActiveReports PDF export library
GrapeCity ActiveReports is a set of assemblies that enable you to create, render, print, and export reports in a .NET or .NET Core application. This package includes assemblies needed to export ActiveReports files. The available exports include, among others, PDF, Excel, Doc/DocX, HTML, JSON, CSV, XML and image.
GrapeCity ActiveReports is a set of assemblies that enable you to create, render, print, and export reports in a .NET or .NET Core application. This package includes internal assemblies needed to display reports in report viewers.
This is a cross-platform library providing document layout services to GrapeCity.Documents.Word (GcWord). Adding a reference to this library to a project that uses GcWord will provide GcWordDocument.SaveAsPdf() extension methods, which will allow to export Word documents to PDF. This library does not depend on MS Office or any third-party libraries, and works on all platforms that support .NET Standard 2.0. The online Documents for Word sample browser that uses GrapeCity.Documents.Layout to generate PDFs from Word documents is available at

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 181 2/24/2021 626 1/26/2021 425 1/8/2021 2,667 12/8/2020 1,112 11/19/2020 1,537 12/30/2020 1,082 12/4/2020 3,830 10/29/2020 2,543 9/29/2020 2,043 9/7/2020 227 9/4/2020 7,656 8/11/2020 4,172 7/20/2020 6,018 7/3/2020 2,147 6/18/2020 1,863 6/2/2020 2,567 5/7/2020 2,195 4/22/2020 4,210 4/9/2020 4,241 3/5/2020 5,202 1/13/2020 834 1/3/2020 2,297 12/8/2019 5,919 11/14/2019 2,199 10/24/2019 3,947 2/4/2020 6,487 11/7/2019 246 11/6/2019 614 10/12/2019 2,123 9/20/2019 2,929 8/21/2019 924 8/5/2019 2,841 7/11/2019 2,001 6/9/2019 1,036 4/24/2019 1,371 3/25/2019 464 3/12/2019 1,387 3/1/2019 1,076 1/25/2019 616 12/18/2018 3,616 12/5/2018 501 11/21/2018 639 11/13/2018 715 10/24/2018 881 9/28/2018 2,344 5/15/2018 1,436 5/1/2018 940 3/12/2018 486 2/24/2018 492 2/9/2018