Spire.PDF 6.12.3

Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET.
With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core, MonoAndroid and Xamarin.iOS platforms.

There is a newer version of this package available.
See the version list below for details.
Install-Package Spire.PDF -Version 6.12.3
dotnet add package Spire.PDF --version 6.12.3
<PackageReference Include="Spire.PDF" Version="6.12.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.PDF --version 6.12.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.PDF, 6.12.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spire.PDF as a Cake Addin
#addin nuget:?package=Spire.PDF&version=6.12.3

// Install Spire.PDF as a Cake Tool
#tool nuget:?package=Spire.PDF&version=6.12.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Spire.PDF 6.12.3
New features:
Supports adding page label(SPIREPDF-3736)

//When PDF file doesn't have page labels
PdfDocument doc = new PdfDocument(inputFile);
doc.PageLabels = new PdfPageLabels();
doc.PageLabels.AddRange(0, PdfPageLabels.Decimal_Arabic_Numerals_Style, "label ");
doc.SaveToFile(outputPDF);

//When PDF file has page labels
PdfDocument doc = new PdfDocument(inputFile);
PdfPageLabels label = doc.PageLabels;
label.AddRange(2, PdfPageLabels.Decimal_Arabic_Numerals_Style, "new label ");
doc.SaveToFile(outputPDF);

Supports converting PDF to PDFX1A(SPIREPDF-993,SPIREPDF-3652)

PdfStandardsConverter converter = new PdfStandardsConverter("in.pdf");
converter.ToPdfX1A2001("out.pdf");

Supports customizing text/image's locations when adding digital signatures(SPIREPDF-3284,SPIREPDF-3649)

signature.ConfigureCustomGraphics(DrawGraphics);
private void DrawGraphics(PdfCanvas g)
{
  g.DrawString("Signed by:Tom", new PdfFont(PdfFontFamily.Helvetica, 12f), PdfBrushes.Red, new Rectangle(0, 0, 120, 20));
   string inputFile = "C:/image.png";
   PdfImage img = PdfImage.FromFile(inputFile);
   g.DrawImage(img, 0, 60, 150, 50);
}

Fixes bugs:
Fixes the issue that the signed PDF could not be opened with foxit reader (SPIREPDF-844)
Fixes the issue that the application threw "out of memory" exception when retrieving images (SPIREPDF-1620)
Fixes the issue that the content was incorrect when converting PDF to image (SPIREPDF-2681)
Fixes the issue that the annotations were missing when converting PDF to Tiff(SPIREPDF-3640)
Fixes the issue that the images were missing when printing PDF (SPIREPDF-3759)
Fixes the issue that content overlapped when adding superscript and parenthesis in PdfGrid cell.(SPIREPDF-3776)

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Spire.PDF:

Package Downloads
James.Testing.Pdf
A library of helpers for the purpose of testing pdf documents/content. It is named after the author who wrote the book of James in the Bible. (James 1:2-3)
Xe.Framework.All
Package Description
Xe.Framework.PdfTools
Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
7.7.10 54 7/22/2021
7.6.15 3,641 6/29/2021
7.6.1 3,398 6/10/2021
7.5.0 3,122 5/7/2021
7.4.13 5,820 4/27/2021
7.4.5 4,676 4/14/2021
7.3.3 6,684 3/19/2021
7.3.1 1,686 3/12/2021
7.2.9 4,955 2/20/2021
7.2.5 3,794 2/7/2021
7.2.0 2,982 2/2/2021
7.1.10 4,618 1/15/2021
7.1.0 4,216 1/7/2021
6.12.20 2,334 12/25/2020
6.12.10 2,729 12/10/2020
6.12.3 2,192 12/7/2020
6.11.6 6,592 11/13/2020
6.11.0 2,011 11/4/2020
6.10.9 1,704 10/27/2020
6.10.4 3,068 10/20/2020
6.10.0 2,207 10/10/2020
6.9.16 3,005 9/28/2020
6.9.0 12,191 9/3/2020
6.8.5 10,355 8/17/2020
6.8.1 4,849 8/6/2020
6.7.12 4,337 7/29/2020
6.7.8 4,828 7/20/2020
6.7.6 2,503 7/8/2020
6.7.2 6,791 7/6/2020
6.5.15 8,879 5/28/2020
6.5.9 2,581 5/18/2020
6.5.6 8,831 5/13/2020
6.4.11 23,870 4/20/2020
6.4.4 2,225 4/10/2020
6.3.16 3,786 3/30/2020
6.3.10 9,464 3/23/2020
6.3.0 8,461 3/4/2020
6.2.6 6,172 2/19/2020
6.2.1 3,887 2/11/2020
6.1.8 14,089 1/21/2020
6.1.4 5,168 1/9/2020
5.12.15 6,434 12/16/2019
5.12.3 2,055 12/5/2019
5.11.18 2,960 11/29/2019
5.11.2 6,998 11/7/2019
5.11.0 1,680 11/1/2019
5.10.8 4,097 10/22/2019
5.10.2 3,629 10/11/2019
5.9.16 4,122 9/30/2019
5.9.6 2,723 9/18/2019
5.8.16 9,949 8/30/2019
5.8.7 7,647 8/13/2019
5.8.2 4,314 8/6/2019
5.7.20 1,524 7/31/2019
5.7.0 14,772 7/2/2019
5.6.31 796 7/1/2019
5.6.2 10,856 6/6/2019
5.5.21 3,478 5/24/2019
5.4.21 44,010 5/1/2019
5.4.20 808 4/29/2019
5.4.9 4,714 4/15/2019
5.4.1 5,231 4/4/2019
5.3.8 37,169 3/19/2019
5.3.2 3,673 3/11/2019
5.2.15 1,848 2/28/2019
5.2.3 2,786 2/14/2019
5.1.33 2,175 1/31/2019
5.1.16 2,703 1/19/2019
5.1.4 1,652 1/11/2019
5.1.0 2,714 1/2/2019
4.12.8 10,627 12/18/2018
4.12.2 2,888 12/7/2018
4.11.12 5,062 11/28/2018
4.11.8 15,739 11/16/2018
4.11.5 4,085 11/9/2018
4.11.3 6,779 11/8/2018
Show less