VOOZH about

URL: https://www.nuget.org/packages/Spire.PDF/

⇱ NuGet Gallery | Spire.PDF 12.6.5




👁 Image
Spire.PDF 12.6.5

dotnet add package Spire.PDF --version 12.6.5
 
 
NuGet\Install-Package Spire.PDF -Version 12.6.5
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spire.PDF" Version="12.6.5" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spire.PDF" Version="12.6.5" />
 
Directory.Packages.props
<PackageReference Include="Spire.PDF" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spire.PDF --version 12.6.5
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.PDF, 12.6.5"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Spire.PDF@12.6.5
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Spire.PDF&version=12.6.5
 
Install as a Cake Addin
#tool nuget:?package=Spire.PDF&version=12.6.5
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Powerful .NET PDF Library for Processing, Editing, and Manipulating PDF Files


👁 Foo

Product PageDocumentationExamplesForum | BlogTemporary LicenseCustomized Demo

Spire.PDF for .NET is a professional PDF API applied to creating, writing, editing, handling and reading PDF files without any external dependencies within .NET ( C#, VB.NET, ASP.NET, .NET Core, .NET 4.0,.NET 9.0, .NET10.0, MonoAndroid and Xamarin.iOS ) application.

Using this .NET PDF library, you can implement rich capabilities to create PDF files from scratch or process existing PDF documents entirely through C#/VB.NET without installing Adobe Acrobat.

PDF Processing Features

Conversions

Support Environment

  • Fully written in C# and also support VB.NET.
  • Applied on .NET Framework 2.0, 3.5, 3.5 Client Profile, 4.0, 4.0 Client Profile,4.5 and .NET Standard 2.0, .NET Core, .NET 5.0, .NET 9.0, .NET10.0, MonoAndroid and Xamarin.Ios.
  • Support Windows Forms and ASP.NET Applications.
  • Support 32-bit OS
  • Support 64-bit OS
  • Support PDF Version 1.2, 1.3, 1.4, 1.5, 1.6,1.7 and 2.0.
  • PDF API reference in HTML.
  • Be Independent and do not need Adobe Acrobat or other third party PDF libraries.

Convert PDF to DOC in C#

 //Create a PDF document and load sample PDF.
 PdfDocument doc = new PdfDocument();
 doc.LoadFromFile("test.pdf");

 //Use SaveToFile method and set conversion target parameter as FileFormat.DOC.
 doc.SaveToFile("PDFtoDoc.doc", FileFormat.DOC);

Convert PDF to images in C#

 //Create a PDF document and load sample PDF.
 PdfDocument doc = new PdfDocument();
 doc.LoadFromFile("sample.pdf");

 Image bmp = doc.SaveAsImage(0);
 Image emf = doc.SaveAsImage(0, Spire.Pdf.Graphics.PdfImageType.Metafile);
 Image zoomImg = new Bitmap((int)(emf.Size.Width * 2), (int)(emf.Size.Height * 2));
 using (Graphics g = Graphics.FromImage(zoomImg))
 {
 g.ScaleTransform(2.0f, 2.0f);
 g.DrawImage(emf, new Rectangle(new Point(0, 0), emf.Size), new Rectangle(new Point(0, 0), emf.Size), GraphicsUnit.Pixel);
 }
 //Save as BMP
 bmp.Save("convertToBmp.bmp", ImageFormat.Bmp);
 System.Diagnostics.Process.Start("convertToBmp.bmp");

 //Save as EMF
 emf.Save("convertToEmf.png", ImageFormat.Png);
 System.Diagnostics.Process.Start("convertToEmf.png");

 //SAVE as ZoomImg
 zoomImg.Save("convertToZoom.png", ImageFormat.Png);
 System.Diagnostics.Process.Start("convertToZoom.png");

Convert HTML to PDF in C#

 //Create a pdf document.
 PdfDocument doc = new PdfDocument();

 PdfPageSettings setting = new PdfPageSettings();

 setting.Size = new SizeF(1000,1000);
 setting.Margins = new Spire.Pdf.Graphics.PdfMargins(20);

 PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
 htmlLayoutFormat.IsWaiting = true;
 
 String url = "https://www.wikipedia.org/";
 
 Thread thread = new Thread(() =>
 { doc.LoadFromHTML(url, false, false, false, setting,htmlLayoutFormat); });
 thread.SetApartmentState(ApartmentState.STA);
 thread.Start();
 thread.Join();

 //Save pdf file.
 doc.SaveToFile("output-wiki.pdf");

Product PageDocumentationExamplesForum | BlogTemporary LicenseCustomized Demo

Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Framework net40 net40 is compatible.  net403 net403 was computed.  net45 net45 was computed.  net451 net451 was computed.  net452 net452 was computed.  net46 net46 was computed.  net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 is compatible.  net481 net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

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

Package Downloads
Spire.Office

Spire.Office for .NET is a combination of Enterprise-Level Office .NET components offered by E-iceblue. It includes Spire.Doc, Spire XLS, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.PDFViewer, Spire.DocViewer, Spire.Email and Spire.BarCode. Spire.Office contains the most up-to-date versions of the above .NET components. From Spire.Office 3.10.1, Spire.Office supports to work on .NET Core,.NET Standard, Xamarin. With Spire.Office for .NET, developers can create a wide range of applications. It enables developers to open, create, modify, convert, print, View MS Word, Excel, PowerPoint and PDF documents. Furthermore, it allows users to export data to popular files such as MS Word/Excel/RTF/Access, PowerPoint, PDF, XPS, HTML, XML, Text, CSV, DBF, Clipboard, SYLK, etc. As an independent Office .NET component, Spire.Office doesn't need Microsoft Office to be installed on neither the development nor target systems. In addition, it is a better alternative to MS Office Automation in terms of security, stability, scalability, speed, price and features. Spire.Office for .NET can be linked into any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms for .NET Framework version 2.0 to 4.5, .NET Core, .NET standard 2.0

Spire.PDFViewer

Spire.PDFViewer is an easy-to-use and reliable .NET PDF Viewer component. With Spire.PDFViewer, developers can create any WinForms application to open, view and print PDF document in C# and Visual Basic on .NET(2.0, 3.5, 4.0,4.6 and 6.0). Open and View Spire.PDFViewer for .NET can open and view PDF/A-1B, PDF/X1A and even encrypted document. When viewing, developers can view with zoom in/out, page up/down, moving to the first/last page or fitting page/width. Also, hand tool is available. Elements Spire.PDFViewer for .NET supports kinds of PDF fonts, including TrueType, Type0, Type1, Type3, OpenType and CJK font. It also support hyperlinks, DeviceN color space and JPEG2000, DCT, CCITT Fax Image format in PDF. Print Spire.PDFViewer enables developers to print PDF document and supports page setup before printing, such as margins, page orientation, page size etc. Also, developers can choose specified one page, current page, mulitple pages or all pages to print. PDF to Image Spire.PDFViewer for .NET enables developers to save PDF pages(specified one, current page, mulitple pages, all pages) to image formats(.bmp, .png, .jpeg).

Spire.OfficeViewer

Spire.OfficeViewer for .NET is a powerful Office Viewer component for .NET. It enables developers to load Word, Excel, Presentation slides and PDF files and view them from code. As a standalone .NET class library, Spire.OfficeViewer mainly focus on how to display office documents and PDF files. It enables developers/programmers to directly view and print office files and PDFs for their .NET applications. It supports to view the DOC, DOCX, DOT, XLS, XLSX, XLSB, ODS, PPT, PPTX, PPS, PPSX and PDF file formats. Spire.OfficeViewer is a totally independent .NET library which doesn't need to install Microsoft Office and Adobe Reader or any other 3rd party software/library on system. Main Functions Load office documents and PDF from file and view; Switch to target page Fit page; Fit width; Fit height Page down/up; Zoom in/out; Hand tool; Print;

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)

MACRIM.Extensions

Package of IEntity extensions for MSSQL, Azure, PDF and more

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Spire.PDF:

Repository Stars
taurusxin/Ofd2Pdf
Convert OFD files to PDF files.
Version Downloads Last Updated
12.6.5 764 6/12/2026
12.5.8 4,778 5/22/2026
12.5.1 2,813 5/12/2026
12.4.5 6,476 4/16/2026
12.4.0 3,293 4/1/2026
12.3.7 7,547 3/17/2026
12.2.14 16,986 2/28/2026
12.2.6 6,273 2/12/2026
12.1.6 8,248 1/22/2026
12.1.0 4,271 1/9/2026
11.12.7 10,170 12/26/2025
11.12.0 12,445 12/5/2025
11.11.5 14,802 11/24/2025
11.11.1 6,219 11/6/2025
11.10.4 7,545 10/23/2025
11.9.17 21,191 9/30/2025
11.9.8 3,661 9/18/2025
11.8.7 17,776 8/29/2025
11.8.0 10,061 8/12/2025
11.7.16 7,883 7/31/2025
Loading failed