Spire.PDF 7.2.0

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 7.2.0
dotnet add package Spire.PDF --version 7.2.0
<PackageReference Include="Spire.PDF" Version="7.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.PDF --version 7.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.PDF, 7.2.0"
#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=7.2.0

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

Release Notes

Spire.PDF 7.2.0
New features:
Supports converting PDF file to grayscale. (SPIREPDF-878)

PdfGrayConverter convert = new PdfGrayConverter(inputFile);
convert.ToGrayPdf(outputFile);

Supports detecting whether the PDF is encrypted. (SPIREPDF-3110)

PdfDocument.IsPasswordProtected(inputFile);

Supports setting the signature details in advanced properties for digital signatures. (SPIREPDF-3991)

public CustomPKCS7SignatureFormatter(X509Certificate2 certificate)
{
if (null == certificate)
{ throw new ArgumentNullException("certificate"); }
m_certificate = certificate;
Parameters.Add("Filter", "Adobe.PPKMS");
Parameters.Add("SubFilter", "adbe.pkcs7.detached");
Parameters.Add("SignatureLength", 975);
Parameters.Add("SoftwareModuleName", "Create by Spire.Pdf");
}

Bug fixes:

Fixes the issue that the application threw the error “There is an error in XML document” when loading the XPS file. (SPIREPDF-328)
Fixes the issue that the content was incorrect after converting PDF to images. (SPIREPDF-782)
Fixes the issue that the the content was missing after printing the PDF. (SPIREPDF-848)
Fixes the issue that the border was missing after printing the PDF. (SPIREPDF-967)
Fixes the issue that the text was messed up after converting PDF to Doc. (SPIREPDF-1385)
Fixes the issue that the application threw the error “KeyNotFoundException” when flatting form fields after merging PDF files. (SPIREPDF-1416)
Fixes the issue that the jumping position of the created PdfGoToAction was incorrect. (SPIREPDF-1977)
Fixes the issue that picture became opaque after converting PDF to SVG. (SPIREPDF-3811)
Fixes the issue that only the last signature was valid when digitally signing PDF multiple times. (SPIREPDF-3898)
Fixes the issue that the content was incorrect when setting the text alignment to justified. (SPIREPDF-3957)
Fixes the issue that the generated PDF was not displayed correctly when opened in Adobe. (SPIREPDF-3969)
Fixes the issue that the application threw the error “Document encryption is not allowed in FIPS mode” when encrypting the PDF in FIPS mode. (SPIREPDF-3974)
Fixes the issue that the drawn grid was incorrect. (SPIREPDF-3986)
Fixes the issue that the content was incorrect after adding SVG image to PDF. (SPIREPDF-3986)
Fixes the issue that the images were rotated after compressing PDF. (SPIREPDF-3993)
Fixes the issue that the application threw the error “Index was outside the bounds of the array” when printing PDF. (SPIREPDF-3998)
Fixes the issue that the the converted PDF/A-3B file was not recognized when opened in Foxit Reader. (SPIREPDF-4005)

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 2,286 7/22/2021
7.6.15 4,056 6/29/2021
7.6.1 3,543 6/10/2021
7.5.0 3,214 5/7/2021
7.4.13 5,895 4/27/2021
7.4.5 4,746 4/14/2021
7.3.3 6,737 3/19/2021
7.3.1 1,700 3/12/2021
7.2.9 5,038 2/20/2021
7.2.5 3,859 2/7/2021
7.2.0 2,988 2/2/2021
7.1.10 4,659 1/15/2021
7.1.0 4,253 1/7/2021
6.12.20 2,345 12/25/2020
6.12.10 2,740 12/10/2020
6.12.3 2,199 12/7/2020
6.11.6 6,658 11/13/2020
6.11.0 2,028 11/4/2020
6.10.9 1,721 10/27/2020
6.10.4 3,076 10/20/2020
6.10.0 2,226 10/10/2020
6.9.16 3,082 9/28/2020
6.9.0 12,434 9/3/2020
6.8.5 10,512 8/17/2020
6.8.1 4,884 8/6/2020
6.7.12 4,360 7/29/2020
6.7.8 4,859 7/20/2020
6.7.6 2,509 7/8/2020
6.7.2 6,982 7/6/2020
6.5.15 8,964 5/28/2020
6.5.9 2,589 5/18/2020
6.5.6 9,117 5/13/2020
6.4.11 24,335 4/20/2020
6.4.4 2,231 4/10/2020
6.3.16 3,811 3/30/2020
6.3.10 9,560 3/23/2020
6.3.0 8,542 3/4/2020
6.2.6 6,237 2/19/2020
6.2.1 3,917 2/11/2020
6.1.8 14,231 1/21/2020
6.1.4 5,189 1/9/2020
5.12.15 6,532 12/16/2019
5.12.3 2,066 12/5/2019
5.11.18 2,981 11/29/2019
5.11.2 7,012 11/7/2019
5.11.0 1,686 11/1/2019
5.10.8 4,138 10/22/2019
5.10.2 3,634 10/11/2019
5.9.16 4,130 9/30/2019
5.9.6 2,733 9/18/2019
5.8.16 10,044 8/30/2019
5.8.7 7,652 8/13/2019
5.8.2 4,331 8/6/2019
5.7.20 1,527 7/31/2019
5.7.0 14,842 7/2/2019
5.6.31 797 7/1/2019
5.6.2 10,899 6/6/2019
5.5.21 3,545 5/24/2019
5.4.21 44,033 5/1/2019
5.4.20 809 4/29/2019
5.4.9 4,728 4/15/2019
5.4.1 5,246 4/4/2019
5.3.8 37,277 3/19/2019
5.3.2 3,675 3/11/2019
5.2.15 1,850 2/28/2019
5.2.3 2,790 2/14/2019
5.1.33 2,179 1/31/2019
5.1.16 2,705 1/19/2019
5.1.4 1,664 1/11/2019
5.1.0 2,729 1/2/2019
4.12.8 10,650 12/18/2018
4.12.2 2,907 12/7/2018
4.11.12 5,066 11/28/2018
4.11.8 15,755 11/16/2018
4.11.5 4,092 11/9/2018
4.11.3 6,867 11/8/2018
Show less