• Overview

    Spire.PDF for .NET is a professional PDF component applied to creating, writing, editing, handling and reading PDF files without any external dependencies within .NET 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.

    Many rich features can be supported by the .NET PDF API, such as security setting (including digital signature), PDF text/attachment/image extract, PDF merge/split, metadata update, section, graph/image drawing and inserting, table creation and processing, and importing data etc. Besides, Spire.PDF for .NET can be applied to easily converting Text, Image and HTML to PDF with C#/VB.NET in high quality.

    Spire.PDF Overview

    Commonly Used Features and Functionality

    Spire.PDF for .NET supports converting HTML, RTF, XPS, Text and Image to PDF documents with efficient performance. Developers can transform PDF to Word, XPS, SVG, EMF, JPG, PNG, BMP, TIFF, HTML, Text format. Furthermore, along with Spire.Doc for .NET and Spire.XLS for .NET, developers can convert Word (Doc/Docx), Excel (Xls/Xlsx) and XML to PDF. Spire.PDF for .NET offers the facility to merge/split PDF documents and overlay documents. Meanwhile, Spire.PDF for .NET can provide import and stamp feature, booklet feature and form filling which can help users read value from form fields and populate a database.
    Spire.PDF for .NET can protect PDF documents by setting passwords and digital signature. User password and owner password can determine the encrypted PDF documents readability, modifiability, printability and other selective restrictions. Meanwhile, digital signature, as a more effective method, can be applied to safeguard and authenticate PDF documents.
    Spire.PDF for .NET can be used to extract images, text, pages and attachments from a PDF document with great speed and accuracy.
    Document information can be set with Spire.PDF for .NET including custom metadata, document properties, page orientation, and page size. Wherein, document properties consist of document restrictions (printing, document assembly, page extraction, comment etc. allowed or not) and document description about file title, author, subject, keywords and so on. By using Spire.PDF for.NET, viewer preferences can be set with position, title display, resize, page mode and print scaling etc.

    More Features

    • Text formatting, multilingual support, text alignment etc.
    • Pen and brush to draw shape elements, text, images into PDF documents.
    • Layers, transparent graphics, color space and barcode creation can render to PDF documents.
    • PDF/A-1b and PDF/x1a:2001 Compliance, both standards can be applied.
    • Add scalar/vector images and mask and place them in designated location.
    • Table and table style can be supported by Spire.PDF for .NET
    • Insert interactive elements including Annotation, action, JavaScript, attachment, bookmark with specifying place and appearance.

    Effect Screenshots

    • 01.png
    • 02.png
    • 03.png
    • 04.png
    • 05.png
    • 06.png
    • 07.png
    • 08.png
    • 09.png
    • 10.png
    • 11.png
    • 12.png
    • 13.png
  • Features

    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 and 4.5
    • 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
    • Be Independent and do not need Adobe Acrobat or other third party pdf libraries

    Conversion

    Security

    Text

    • Draw Text
    • Set Text Format(font, size, color, layout, rotate, transform, alignment, transparency)
    • Read/Extract Text(Whole Page, Certain Page, Particular Pages)

    Fonts

    • 14 Core Fonts
    • Type 1 Fonts
    • Type 3 Fonts
    • True Type Fonts
    • CJK Fonts
    • Unicode Support(Part)

    Images

    Attachments

    • Add Attachments
    • Add Attachments with Attachments Annotations
    • Remove Attachments
    • Read/Extract Attachments
    • Read/Extract Attachments with Attachments Annotations
    • Get Attachments Properties

    Tables

    • Simple Table
    • Image Table
    • Nested Table
    • Export Database Table and Pictures to PDF
    • Set Table Layout

    Bookmarks

    List

    Header and Footer

    Watermark

    Links and Actions

    FormField

    • Add Fields(Text Box, Check Box, List box, Combo Box, Button, Radio Button)
    • Remove Fields
    • Edit Fields
    • Fill Fields

    Pages

    Document

    Feature Details

    Feature Support Feature Support
    Drawing Text Standards
    Text Formatting PDF/ A-1b Compliance
    Multilingual Support PDF/x1a: 2001 Compliance
    Text Extraction (Only for .NET) Fonts
    Graphics Standard Fonts
    Pen and Brush CJK Fonts
    Layers (Only for .NET) ** True Type Fonts
    Transparent Graphics Unicode True Type
    Color Spaces ** Images
    Image Extraction Scalar Images
    Transform Mask
    Bar code (Only for .NET) Vector Images
    Document Operations Watermarks
    Merge Documents Data Management
    Split Document (Only for .NET) ADO.Net Tables Support (Only for .NET)
    Overlay Documents Rich Table Styles
    Import and Stamp Table Features (Only for .NET)
    Booklet Page Operations
    Document Settings Headers and Footers
    Custom Metadata Page Label
    Document Properties Automatic Fields
    Page Orientation Interactive Elements
    Page Sizes Annotation
    Viewer Preferences Action
    Forms JavaScript
    Create Form Attachment
    Form Filling Bookmark
    Form Export ** Security
    Conversion Digital Signature
    HTML to PDF Encryption
    Doc To PDF (Spire.Doc required) Decryption

    ** Partial supported

    Note: Transparent Graphics is Partial Supported for Silverlight

  • Demo
    Convert PDF to Doc Convert HTML to PDF Convert PDF to Image Convert XPS to/from PDF
    Table Layout Merge/Split PDF documents Form Filling Text, Image Extract from PDF
    Encrypt, Decrypt, Create PDF Digital Signature in PDF Add PDF Header and Footer
    Request free customized demo just for you.

    High Quality Conversion

    Convert PDF to DocTutorials / Orginial PDF and Doc file

    Convert PDF to Doc

    Convert HTML to PDFTutorials / Orginial HTML and PDF file

    Convert HTML to PDF

    Convert PDF to ImageTutorials / Orginial PDF and Image file

    Convert PDF to Image

    Convert XPS to PDFTutorials / Orginial XPS and PDF file

    Convert XPS to PDF

    Convert PDF to XPSTutorials / Orginial PDF and XPS file

    Convert PDF to XPS

    Table Layout

    Set PDF Table LayoutTutorials / C# Code

    Set PDF Table Layout

    Merge/Split PDF documents

    Merge PDF documentsTutorials / C# Code

    Merge PDF documents

    Split PDF documentsTutorials / C# Code

    Split PDF documents

    Form Filling

    Form FillingTutorials / C# Code

    Fill Form Fields in PDF File with C#

    Text, Image Extract from PDF

    Read Text and Images from PDFTutorials / C# Code

    Read Text and Images from PDF

    Encrypt, Decrypt, Create PDF Digital Signature in PDF

    Encrypt PDF DocumentTutorials / C# Code

    Encrypt PDF Document

    Create Digital Signature in PDFTutorials / C# Code

    Create Digital Signature in PDF

    Add PDF Header and Footer

    Add PDF HeaderTutorials / C# Code

    Add PDF Header

    Add PDF FooterTutorials / C# Code

    Add PDF Footer

  • Guideline
    Beginners Guide is the first step towards learning the basic information of Spire.PDF for .NET
    Main Functions contain the main features of our Spire.PDF for .NET and you can have brief information of it.
    Program Guide lists the detailed features of our Spire.PDF for .NET and you can search for the information you want.
    The Videos give an operation guide by video. You can check the produce step by step.
  • Support
    Frequently asked question for Spire.PDF of technical and function issues.
    We guarantee one business day Forum questions Reply.
    We guarantee one business day E-mail response.
    Free Customized service for OEM Users.
    Skype account: iceblue-support
    To ensure our products to be easier to use, we offer free customized demos to our customers. Please contact support@e-iceblue.com for the free demo. Make sure the demo you want meets the below requirements.
    • It relates to our components stored on E-iceblue online store.
    • It costs less than 2 hours for us to complete it. If it costs more than 2 hours, please contact our sales@e-iceblue.com
    If you have tried out Spire.PDF and found it useful, please consider sharing your experience with others. By sharing your testimonial with us, you will not only help others to make the right decision but will also to earn rewards from us. Please send your testimonials to sales@e-iceblue.com.
  • What's New

    This is the list of changelogs of Spire.PDF New release and hotfix. You can get the detail information of each version's new features and bug solutions.

    Welcome to experience Spire.PDF with downloading here:

    Hot Fix Version:3.9.462

    Bug solutions:

    • Optimize PDF to image conversion time consumption.
    • Fixes the issue that caused content lost when converting PDF to Image.
    • Fixes the issue that caused InvalidCastException when converting PDF to Image.
    • Fixes the issue that caused OutOfMemoryException when extracting image in x86 platform.
    • Fixes the issue where gradient color was not printed correctly.

    Hot Fix Version:3.9.457

    New Features:

    • Adds feature to convert PDF to .docx format.
    • Adds the method Spire.Pdf.PdfDocument.Preview(PrintPreviewControl printPreviewControl)to support print preview.

    Adjustments:

    • Obsoletes the property Spire.Pdf.PdfDocument.PageScaling and Spire.Pdf.PdfDocument.CustomScaling. Use the method as below instead.

    Bug solutions:

    • Fixes the issue where the print result was not centered at the page when using the ActualSize Property.
    • Fixes the issue that caused signature disappeared when flattening a digitally signed pdf document.
    • Optimizes the TryCompressImage method to make the document size less.
    • Optimizes XPS to PDF conversion.
    • Fixes the issue that caused the content overlapping when converting PDF to .doc.
    • Fixes the issue where the stamp that is created using our product can't be printed out manually.

    Hot Fix Version:3.9.431

    New Feature:

    • Adds method PdfPrintSettings.SelectMultiPageLayout to support printing multiples pages per sheet.

    Bug Fixes:

    • Fixed the issue that caused content garbled when converting to image.
    • Fixed the issue that caused content lost when converting to image.
    • Fixed the issue that caused SaveAsImage method threw KeyNotFoundException error.
    • Fixed the issue that caused FindText method threw FormatException error.
    • Fixed the issue where the text and image can't be drawn on layer.
    • Fixed the issue that caused the result incorrect when spliting document.

    Adjustments:

    • Obsoletes PdfDocument.PrintDocument.PrintController property. Use PdfDocument.PdfPrintSettings.PrintController property instead.
    • Obsoletes PdfDocument.PrintDocument.PrinterSettings.Duplex property. Use PdfDocument.PdfPrintSettings.Duplex property instead.
    • Obsoletes PdfDocument.PrintDocument.QueryPageSettings property. Use PdfDocument.PdfPrintSettings.QueryPageSettings property instead.
    • Obsoletes PdfDocument.PrintDocument.PrinterSettings.PaperSources and PdfDocument.PrintDocument.DefaultPageSettings.PaperSource property. Use PdfDocument.PrintSettings.PdfPaperSettings property instead.

    Hot Fix Version:3.9.421

    Bug Fixes:

    • Fixes the issue that caused "Insufficient data for an image" error when repeatedly loading document to insert image and save it.

    Adjustments:

    • Obsoletes the set property of PdfSecurity.Permissions and PdfSecurity.KeySize.
    • Obsoletes PdfSecurity.OwnerPassword, PdfSecurity.UserPassword property.
    • Obsoletes PdfSecurity.ResetPermissions and PdfSecurity.SetPermissions method, and use PdfSecurity.Encrypt method instead.

    Hot Fix Version:3.9.407

    New Features:

    • Supports to convert PDF into Html stream.
    • Adds new method TryCompressImage to compress image in PDF for reducing the size of PDF.
    • Supports to convert PDF to SVG with custom height and width.

    Bug Fixes:

    • Fixes the issue that the text was flipped and cut off when converting PDF to image.
    • Fixes the issue that caused black background of image when printing.
    • Fixes the issue that caused wrong signature after multiple signatures.
    • Fixes the issue that the attachment cannot be added in PDF.
    • Fixes the issue that the data in the fields were missing when converting to image.
    • Fixes the issue that content cannot be printed in the center when using ActualSize and AutoPortraitOrLandscape.
    • Fixes the issue that caused NullReferenceException when converting PDF to XPS.
    • Fixes the issue that caused exception when loading XPS when system language is Russian.
    • Fixes the issue that caused messy code when extracting text.
    • Fixes the issue that content was cut off when printing.
    • Fixes the issue that the method VerifySignature returned wrong Boolean value.
    • Fixes the issue that the accents above some characters were printed at wrong position.

    Hot Fix Version:3.9.360

    New Features:

    • Support to print specific page.
    • Public the name of the layer.
    • Support to set the alignment for the signature content.
    • Support to get the row by searching specific text.

    Adjustments:

    • Adjust the print function, sample code:
    • Adjust the code about layers.
    • Adjust the code about security, new code:

    Bug solutions:

    • Fixes the issue that cannot delete layer.
    • Fixes the issue that caused the character wrong after deleting image.
    • Fixes the issue that the image cannot be deleted.
    • Fixes the issue that caused NullReferenceException when flatten form field.
    • Fixes the issue that the checkboxField is not checked after setting checkboxField.Checked as true.
    • Fixes the issue that caused content missing after replacing image.
    • Fixes the issue that caused the content in invisible region shows after creating Booklet.
    • Fixes the issue that caused the original content changed when appending a new page.
    • Fixes the issue that the object cloned from PdfDocument returns null.
    • Fixes the issue that caused the size of document increased after compressing images.
    • Fixes the issue that caused the background changed to black when converting PDF to XPS.
    • Fixes the issue that the size of document grows too much when converting image to pdf.
    • Fixes the issue that caused spot colors setting in image missing when drawing image to PDF.
    • Fixes the issue that custom properties don't work.
    • Fixes the issue that cannot delete custom properties.
    • Fixes the issue that caused small drilling holes missing when printing the PDF.
    • Fixes the issue that custom properties missing after setting own password.

    Hot Fix Version:3.9.285

    New feature:

    • Supports to convert PDF to HTML.

    Bug fixes:

    • Fixes the issue that the paragraph number and heading text were swapped when extracting text.
    • Improve the print function to make the printed result be same as what Adobe prints.
    • Fixes the issue that caused char spacing in flattened field incorrect when saving to Image.
    • Fixes the issue that caused some Chinese characters cannot be printed when printing.

    Hot Fix Version:3.9.266

    Bug fixes:

    • Fixes the issue that caused messy code in text field after merging files.
    • Fixes the issue that caused FormatException when extracting text.
    • Resolves the issue where the color filled in graph is incorrect when saving to image.
    • Fixes the issue that caused NullReferenceException when converting to image.
    • Fixes the issue that caused the check status of other checkboxes became checked after one checkbox was checked.
    • Fixes the issue that caused text missing when converting PDF to XPS.

    Hot Fix Version:3.9.226

    New feature:

    • Supports to convert PDF to SVG stream.

    Adjustments:

    • Adjusts the properties of PdfSignature.
    • Replaces the IsConfiguerGraphicFilledBounds property with SignImageLayout property.
    • Replaces the ConfigGraphicType property with GraphicsMode property.
    • Replaces the signInfoFont property with SignNameFont and SignDetailsFont property.
    • Replaces the ConfiguerGraphicPath property with SignImageSource property.
    • Replaces the DigitalSignerLabel property with NameLabel property.
    • Replaces the DigitalSigner property with Name property.

    Bug fixes:

    • Fixes the issue that caused the NullReferenceException when converting to image.
    • Fixes the issue that the property SetButtonImage doesn't work.
    • Fixes the issue that caused inaccurate position of searched text.
    • Fixes the issue that caused incorrect content when converting xps to pdf.
    • Fixes the issue that cannot get font of searched text.
    • Fixes the issue that the position of text changed when converting pdf to xps.
    • Fixes the issue that the position of the content is wrong when printing.
    • Fixes the issue that the line missing when printing.
    • Fixes the issue that the values of combox field are blank when clicking view this version in Adobe with Italian setting after filling the combox field and signing the signature field.

    Hot Fix Version:3.9.189

    Bug fixes:

    • Fixes the issue that Calculate action didn't work.
    • Fixes the issue that the extra signature field was added into document automatically after signing signature field.
    • Fixes the issue that the setting of orientation when printing didn't work.
    • Fixes the issue that the values of combox field were getting lost after "Click view this version" was clicked in Adobe.
    • Fixes the issue that caused the NullReferenceException when loading PDF file.

    Hot Fix Version:3.9.181

    New feature:

    • Supports to find whole words only.

    Bug fixes:

    • Fixes the issue that caused incorrect content when converting PDF to XPS.
    • Fixes the issue where the image is wrong when converting XPS to PDF.
    • Fixes the issue that the content copied from PDF is incorrect when converting XPS to PDF.
    • Fixes the issue that cannot delete layers.
    • Fixes the issue that the currency symbol and the amount are broken when there is line feed.
    • Fixes the issue that the position of the text is wrong when printing the PDF.
    • Fixes the issue that caused exception when getting the used font.
    • Fixes the issue that caused exception when loading certificate to sign PDF on Azure.

    Hot Fix Version:3.9.168

    Bug fixes:

    • Fixes the issue that caused the logo image was incorrect when printing the PDF file.
    • Fixes the issue that caused the Stamp was lost when printing the PDF file.
    • Fixes the issue that the content missing when converting PDF to XPS.
    • Fixes the issue that cuased ArgumentException when using FindText method.
    • Fixes the issue that the method DrawTemplate doesn't work.

    Hot Fix Version:3.9.141

    New feature:

    • Supports to convert specific PDF pages to SVG.

    Bug fixes:

    • Fixes the issue that caused the image profile lost when converting image to PDF.
    • Fixes the issue where all the radio buttons were in selected state when converting PDF to PDF/A.
    • Fixes the issue where some readers showed certain checkboxes to be unchecked except Chrome.
    • Resolves the issue where the Combobox field values were not displayed.
    • Fixes the issue where the icon on the ButtonField was improperly getting placed.
    • Fixes the issue where the images on the pdf file was improperly getting placed when printing the PDF.
    • Resolves the issue that caused the exception that page index was out of the range of the page in the document.

    Hot Fix Version:3.9.124

    New feature:

    • Add IsPortfolio property for PdfDocument to detect if a PDF document is a portfolio.
    • Add new properties for PdfButtonField to handle button/Icon layout.

    Bug fixes:

    • Fixes the issue that the position of extracted text was located incorrectly.
    • Fixes the issue that the rotated text was lost when printing.
    • Fixes the issue that the image was lost when printing.
    • Fixes the issue that the alignment of FormField changed when flattening FormField.
    • Fixes the issue that the content was lost when saving as Image.
    • Fixes the issue that underline/strikethrough appeared in the table when there is no text in the cell.
    • Fixes the issue that the PdfDestination(int pageNumber, PointF location, float zoom) constructor can't create bookmark.
    • Fixes the issue that caused the error "Insufficient data for an image" when replacing Image with ReplaceImage method.
    • Fixes the issue that the barcode appearance was incorrect when printing.

    Hot Fix Version:3.9.82

    Bug fixes:

    • Fixes the issue that caused blank image when converting PDF to image.
    • Fixes the issue that caused incorrect result when converting PDF to image.
    • Fixes the issue that caused the process hanging when converting PDF to image.
    • Fixes the issue that caused some characters missing when converting XPS to PDF.
    • Fixes the issue that caused incorrect header when converting PDF to .doc.
    • Fixes the issue that caused incorrect result when converting PDF to Pdf_A1B file format.
    • Fixes the issue that caused ArgumentException when using the ExtractText menthod.
    • Fixes the issue that the size of text in textbox cannot be changed.
    • Fixes the issue that the checkbox cannot be edited after saving PDF.
    • Fixes the issue that caused wrong content when printing the PDF file.
    • Fixes the issue that NullReferenceException when merging PDF.
    • Fixes the issue that caused wrong position when drawing HTML.

    Hot Fix Version:3.9.27

    New feature:

    • Support to set "Commit selected value immediately" for ComboBox field and ListBox field.

    Bug fixes:

    • Fixes the issue that caused ArgumentException when loading the PDF file.
    • Fixes the issue that caused "Checksum check failed" exception when loading the PDF file.
    • Fixes the issue that caused wrong barcode and incorrect content when printing PDF.
    • Improve the performance of converting PDF to image.
    • Fixes the issue that caused header was missing when converting PDF to .doc file format.
    • Fixes the issue that caused blank content when converting PDF to XPS.
    • Fixes the issue that a pop-up message warns you to save the changes while in fact nothing have changed when closing the file in Adobe after the merge files function.
    • Fixes the issue that caused NullReferenceException when using FindText method.
    • Fixes the issue that caused the process hanging when using ExtractText method.
    • Fixes the issue that barcode cannot be scanned after setting the size of barcode.
    • Fixes the issue that the method DrawImage didn't work.
    • Fixes the issue that caused NullReferenceException when using PdfFormWidget.ExtractSignatureAsImages().
    • Fixes the issue that the SelectedIndex property of a RadioButtonList didn't work.
    • Fixes the issue that the result image was wrong when replacing image on PDF.

    Version:3.9

    Bug fixes:

    • Fixes the issue that caused first page was blank when converting PDF to TIFF image format.
    • Fixes the issue where the generated pdf threw an exception that insufficient data for an image while being opened in adobe reader when converting TIFF image to PDF.
    • Fixes the issue that caused PdfButtonField border visible when setting the BorderWidth property to 0.
    • Fixes the issue that caused the exception that the character 'z' is invalid inside an ASCII85 block when using MergeFiles method.
    • Resolves the issue that caused the image was lost when printing the PDF file.