# Spire.PDF-for-.NET **Repository Path**: DXFB/Spire.PDF-for-.NET ## Basic Information - **Project Name**: Spire.PDF-for-.NET - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-09 - **Last Updated**: 2026-09-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spire.PDF-for-.NET Library for Processing & Manipulating PDF Files ------ [![Foo](https://i.imgur.com/bcklsSB.png)](https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html) [Product Page](https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html) 丨 [Documentation](https://www.e-iceblue.com/Tutorials/Spire.PDF.html) 丨 [Examples](https://github.com/eiceblue/Spire.PDF-for-.NET) 丨 [Forum](https://www.e-iceblue.com/forum/spire-pdf-f7.html) 丨 [Temporary License](https://www.e-iceblue.com/TemLicense.html) 丨 [Customized Demo](https://www.e-iceblue.com/Misc/customized-demo.html) [Spire.PDF for .NET](https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html) 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 5.0, MonoAndroid and Xamarin.iOS ) application. Using this .NET PDF library, you can implement rich capabilities to [create PDF files](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-create-PDF-dynamically-and-send-it-to-client-browser-using-ASP.NET.html) from scratch or process existing PDF documents entirely through C#/VB.NET without installing Adobe Acrobat. ### PDF Processing Features - [Generate](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-create-PDF-dynamically-and-send-it-to-client-browser-using-ASP.NET.html)/[write](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-Draw-Text-in-PDF-with-Different-Styles.html)/[read](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Read-PDF-Read-PDF-Images-and-Text-in-C-VB.NET.html)/edit PDF documents. - Supports 14 core, Type 1, True Type, Type 3, CJK & Unicode fonts. - [Extract images](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-Extract-Image-From-PDF-in-C.html), [text](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-Extract-Text-from-PDF-Document-with-C-/VB.NET.html), pages and [attachments](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Attachments/How-to-get-PDF-attachment-information-in-C.html) from a PDF document with great speed and accuracy. - [Merge](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Document-Operation/Merge-Selected-Pages-from-Multiple-PDF-Files-into-One-in-C-VB.NET.html)/[split](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Document-Operation/Split-PDF-into-Multiple-PDFs-using-a-Range-of-Pages-in-C-VB.NET.html) PDF documents and overlay documents. - Convert [HTML to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html), [XPS to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Covert-XPS-Files-to-PDF-format-in-C.html), [Text to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-Text-to-PDF-with-C-VB.NET.html) and [images to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/C-/VB.NET-Convert-Image-to-PDF.html) to PDF and [convert PDF to Excel](https://www.e-iceblue.com/Tutorials/Spire.PDF/Program-Guide/Conversion/Convert-PDF-to-Excel-in-C-VB.NET.html), [convert PDF to Word](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Conversion/How-to-convert-PDF-to-Doc-in-C-VB.NET.html), [convert PDF to images](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-PDF-Page-to-Image-with-C-code.html) with efficient performance. - [Encrypt/Decrypt PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Security/C-Encrypt-and-Decrypt-PDF-file.html), [modify PDF passwords](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Modify-Passwords-of-Encrypted-PDF-with-C-VB.NET.html) and [create PDF digital signatures](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Protection-Create-Digital-Signature-in-PDF-with-C-VB.NET.html). - [Add](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Bookmark-Add-PDF-Bookmark-in-C-VB.NET.html) and [modify](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Bookmark/How-to-Modify-Bookmarks-in-Existing-PDF-in-C-VB.NET.html) text/image bookmarks. - Add text in [Footer](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Header-and-Footer/Add-Footer-to-Existing-PDF-in-C-VB.NET.html)/[Header](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Header-and-Footer/Add-Header-to-Existing-PDF-in-C-VB.NET.html). - Export database table and pictures to PDF. - [Add Hyperlinks](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Hyperlink-Insert-Hyperlink-in-PDF-with-C-VB.NET.html), work with [actions](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Attachments/Create-a-GoToE-Action-to-an-Embedded-PDF-File.html)/Javascript Action/[Action Chain](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Action/How-to-Add-Action-Chain-to-PDF-in-C.html)/Action [Annotation](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Add-Annotation-to-PDF-File-in-C.html). - [Add](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/C-/VB.NET-Create-FormField-in-PDF.html)/[remove](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/FormField/Remove/Delete-Form-Fields-from-PDF-in-C.html)/[edit](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/FormField/Set-Commit-selected-value-immediately-property-for-ComboBox-field-and-ListBox-field.html)/[fill](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-FormField/Fill-Form-Fields-in-PDF-File-with-C.html) fields. ### Conversions - Convert [Webpage HTML to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html), [HTML ASPX to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html) - Convert [Image to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/C-/VB.NET-Convert-Image-to-PDF.html) - [Convert Text to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-Text-to-PDF-with-C-VB.NET.html) - [Convert PDF to HTML](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Conversion/C-Convert-PDF-to-HTML.html) - [Convert XPS to PDF](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Covert-XPS-Files-to-PDF-format-in-C.html) - [Convert PDF to SVG](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Conversion/Convert-PDF-to-SVG-Scalable-Vector-Graphics-in-C-VB.NET.html) - [Convert PDF to XPS](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/How-to-convert-PDF-to-XPS-in-C.html) - [Convert PDF to Image](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-PDF-Page-to-Image-with-C-code.html) - [Convert PDF to Word](https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Conversion/How-to-convert-PDF-to-Doc-in-C-VB.NET.html) - [Convert PDF to Excel](https://www.e-iceblue.com/Tutorials/Spire.PDF/Program-Guide/Conversion/Convert-PDF-to-Excel-in-C-VB.NET.html) ### 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, 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 and 1.7. - [PDF API reference in HTML.](https://www.e-iceblue.com/Tutorials/API/Spire.PDF.html) - Be Independent and do not need Adobe Acrobat or other third party PDF libraries. ### Convert PDF to DOC in C# ```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# ```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# ```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 Page](https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html) 丨 [Documentation](https://www.e-iceblue.com/Tutorials/Spire.PDF.html) 丨 [Examples](https://github.com/eiceblue/Spire.PDF-for-.NET) 丨 [Forum](https://www.e-iceblue.com/forum/spire-pdf-f7.html) 丨 [Temporary License](https://www.e-iceblue.com/TemLicense.html) 丨 [Customized Demo](https://www.e-iceblue.com/Misc/customized-demo.html)