PDFNet 9.0.0

[PDF Reader. PDF Control. PDF Component]

PDFNet SDK is the ultimate PDF toolkit.

With PDFNet components you can build reliable & speedy applications that can view, create, print, edit, and annotate PDFs ... across operating systems.

Developers use PDFNet SDK to read, write, and edit PDF documents compatible with all published versions of PDF specification (including the latest ISO32000). The extensive PDF library API supports most common use-case scenarios such as:
*        PDF Viewing & Collaboration
*        PDF Rasterization
*        PDF Printing
*        PDF Form filling and flattening
*        PDF Split & Merge
*        PDF Stamping
*        Dynamic PDF generation (e.g. FlowDocument & Xaml to PDF)
*        PDF Text extraction and indexing
*        PDF Packages
*        PDF Layers (OCGs)
*        PDF Editing
*        PDF Encryption
*        Manipulate PDF bookmarks, links, and annotations.
*        PDF Optimization
*        PDF conversion to XML, HTML, XPS, SVG, TIF, etc.
*        PDF/A Validation and Conversion
*        PDF Redaction
*        PDF Conversion from XPS, MS Office, HTML, XAML, TXT, TIFF etc.
*        HTML to PDF Conversion

Install-Package PDFNet -Version 9.0.0
dotnet add package PDFNet --version 9.0.0
<PackageReference Include="PDFNet" Version="9.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PDFNet --version 9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PDFNet, 9.0.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 PDFNet as a Cake Addin
#addin nuget:?package=PDFNet&version=9.0.0

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

Release Notes

New Features
Advanced Imaging Module, supporting the DICOM image format and many others.
Flexible and powerful document generation using office templates. Full reflow, and retains all document styles.
Added PDF2Word Module that enables conversion to Word. (Convert.ToWord()).
Added PDF2HtmlReflowParagraphsModule Module and HTMLOutputOptions.SetContentReflow() that can be used to utilize it when calling Convert.ToHtml.
Added a PDFTron Custom Security Handler that can be used to produce PDF files that can only be decrypted by PDFTron SDK and only if the password is correct and the specified id has been registered by the application. (PDFTronCustomSecurityHandler class and PDFNet.AddPDFTronCustomHandler) This provides a level of security very similar to that of writing a custom encryption method, but is much simpler to use.
Added an API to manually add or edit marked content. (ElementBuilder.CreateMarkedContentBegin, ElementBuilder.CreateMarkedContentEnd, ElementBuilder.CreateMarkedContentPoint etc.)
Added an API to produce pages showing the text differences between two pages or documents. (PDFDoc.AppendTextDiff) This API is currently experimental and subject to change.
Added a new API to trust certificates in the FDF Data/Cert Exchange format. (VerificationOptions.LoadTrustList) This provides overall more correct results during verification than VerificationOptions.AddTrustedCertificates as it can handle more fine-grained trust settings.
Added new optional trust flags as input to VerificationOptions::AddTrustedCertificate to configure the desired level of trust.
Added support for specifying locale for Office conversions.
Added a filetype option to 'Convert' methods that accept a Filter and not a file path.
Other Changes
Other Improvements
[pdf] Updated Duktape to 2.6.0.
[jpg] Updated libjpeg-turbo to 2.0.6.
[tiff] Updated libTIFF to 4.2.0.
[pdf] Updated OpenSSL to 1.1.1j.
[all] Added macOS arm64 slice for Apple Silicon.
[all] Enabled better optimization settings on PDFTron SDK on Windows.
[xfdf] Significantly optimized the performance of XFDF export.
[pdf] Optimized creation of PDFDoc, SDFDoc, FDFDoc and ObjSet objects. This has a significant impact on cases that create a large number of these objects.
[xfdf] Improved support for importing XFDF into PDFs with corrupt Annotations array.
[xfdf] Generating consistent names on all unnamed annotations for during xfdfexport. This is especially helpful for realtime collaboration use-cases.
[xfdf] Adjusted rectangle, ellipse, export and import to support nonstandard rotation in import and export.
[pdf] Adjusted logic for retaining text spacing adjustments, so that it would work with interleaved marked content operators.
[pdf] Avoid "faded colors" during PDF rendering when color management is disabled and overprint is off.
[pdf] Avoid writing unnecessary colors and colorspaces when generating annotation appearance streams.
[pdf] Adjustment to repair corrupt documents with negative or unreasonably large object numbers.
[pdf] Erase invalid colorspace entries in ImageMasks during PDF/A conversion
[svg] Better handle corrupt documents with unbalanced q/Q operators in forms during Convert.ToSvg.
[pdf] Added support for trusting intermediate certificates in the chain during for Digital Signature Verification.
[pdf] Adjusted corrupt document processing logic to allow for an XRef entry following startxref. Previously this would be treated as garbage data and the rest of the PDF would be skipped.
[pdf] Improved reading for field values from XFA to better handle strangely formed inheritance structures.
[xod] Adjusted flattening to disregard cases where the blend mode is specifically set to normal. This reduces unnecessary flattening for ToXod and Flattener improving run time and output quality in these cases.
[pdf] Optimized PDF/A conversion for files with a lot of font objects.
[pdf] Optimized text extraction to more efficiently extract styles. This primarily impacts text selection, reflow and use cases that use TextExtractor directly to obtain text styles.
[pdf] Added support for dashed borders on checkboxes.
[pdf] Added support for auto-tiling of very large tiff images
[pdf] A number of new APIs were exposed in the pdfnet-node package.
[pdf] Handle Exif rotations through the UniversalConversion methods on the Convert class
[pdf] Fixed a parsing issue where unusually structured encrypted documents could fail to load.
[pdf] Avoiding a crash when using incremental download on rare documents that start with a null object.
[xfdf] Fixed an issue with PDFDoc.FDFUpdate where it could remove RichMedia and other less commonly used annotation types.
[pdf] Fixed incorrect text extraction word break issue when text includes a vowel sign.
[xfdf] Fixed an issue in PDFDoc.FDFUpdate where, in rare situations, radio buttons could be incorrectly matched and not function as expected.
[pdf] Fixed a problem where certain PDF JPEG2000 images with 4 bits per component would display as darker than they should.
[pdf] Fixed an issue where some documents with XFA values wouldn't take these into account when displaying the selected state of check boxes and radio buttons.
[pdf] Fixed a problem where the Metadata would still be encrypted even if using SetEncryptedMetadata(false)
[pdf] Fixed a problem with PDFDocInfo.GetSDFObj() where it would return the trailer rather than the Info object as would be expected.
[pdf] Fixed an issue with Optimizer where, on certain documents and when subsetting fonts, it could break the appearance of hidden annotations. This could lead to issues later when the annotation becomes no longer hidden.
[pdf] Adjusted page insertion to clear any DigitalSignatures when inserting into a new document. Previously these would be included, but invalid.
[pdf] Adjusted handling of Field Flags to ignore them when they are incorrectly applied to Widget only dictionaries.
[pdf] Adjusted PDF/A validation to not provide an error for Device colorspaces (e.g. DeviceRGB) if there is an associated Default colorspace in the resource dictionary. (e.g. DefaultRGB)
[pdf] Fixed an issue with the generated appearance of line annotations with inline captions where the line would go through the text.
[pdf] Fixed an issue with handling of 0 length streams that could lead to slow and unexpected file growth. This issue was especially troublesome when saving large files.
[pdf] Fix for incorrect color in some DCTDecode images where the embedded colorspace conflicts with the PDF colorspace
[pdf] Closed potential security issue with FileAttachment annotations, where a specifically constructed annotation could access external servers during XFDF export
[pdf] Generated fully selectable text when generating complicated shaped text output
[pdf] Fix for potential non-optimal performance when filling an internal object cache
[tiff] Fix for potential crash when reading some YCbCr encoded images.
[pdf] Fixed an issue with creating bad width tables in fonts covering codepoints outside the basic multilingual plane
[pdf] fixed an issue with bad lookups in a font's toUnicode map when handling codepoints outside the basic multilingual plane
[emf] Now correctly handle PDFs embedded within EMF files
[all] Fix for mishandling of short font names in all caps, like "OCR-B"
[all] Fixed bug with custom font servers which could result in missing the first item in a specified character range
[all] corrected mapping of fonts specified as both "light" and "bold"
[all] Fix for incorrect font substitution on Windows systems for some symbol characters
[office] Can now positively identify encrypted office documents.
[pptx] Fix for cases where a shape had deeply nested reference to other diagrams.
[docx] more consistent handling of table widths specified as percentages.
[office] Fixed issue that could result in incorrect character selection in documents with explicitly specified zero width non-break space characters.
[docx] Now correctly take endnote number formatting into account.
[office] Fixed bug with superscript/subscript handling in some cases when resolving local and derived run styles.
[xlsx] More robust handling of malformed number formatting codes.
[office] Fixed error in PDF structure output for table cells when converting office->PDF.
[docx] Fix for semi-transparent fills in some office drawings.
[docx] More robust handling of grouped office drawings with no shape ID.
[office] Fixed the default label placement for 3d bar graphs.
[office] Fixed error with occasional missing chart per-data-point labels.
[pptx] Added missing support for column layout.
[docx] Fix for incorrect handling of page breaks immediately preceding a continuous section break.
[docx] Tuned line spacing to be an exact match to MS Word in more situations.
[docx] Added support for graphic frames.
[docx] Improved interaction between tables and floating content.
[pptx] Fixed mishandling of tab characters within some lists.
[office] Now correctly handle the "flatTx" attribute.
[docx] Fix for potential crash in office files with malformed 'oMath' runs.
[docx] Corrected handling of the 'auto' spacing property for the first and last paragraph in a document.
[xlsx] Changed default value for unspecified opacity to opaque, rather than transparent.
[xlsx] Implemented support of rich text for inline strings in Excel.
[xlsx] Fix for handling of documents with no specified default styles.
[xls] Fix for potential crash on some malformed xls documents.
[xlsx] Optimized XLSX memory handling, now use much less memory when converting very large documents.
[xlsx] More robust handling of malformed formulas in xlsx files.
[office] Fixed a small memory leak (32 bytes per document).
[pptx] Fix for not completely resolving the font style for some text.
[office] Correctly handle data points outside the bounds of the chart axes.
[office] Now handle clipping for all shapes, not just images.
[office] Fixed grid line spacing for non-East Asian fonts.
[docx] Fixed auto spacing between list paragraphs.
[docx] Fix for too-high line spacing for some text with colored backgrounds.
[office] Fix for incorrect parsing of percentage values that have percent symbols in them already.
[docx] Fix for mishandled table borders in some isolated cases.
[docx] Corrected default behaviour for non-specified vertical anchor in floating tables.
[docx] Fix for cases where text boxes had a non-zero position and a specified wrap rectangle.
[docx] Implemented bi-level image effect.
[docx] Fix for unnecessary internal rounding of some fractional font sizes.
[office] Fix for mishandling of some stroked text when converting to PDF.
[office] Fixed drawing of stacked charts with non-zero base value.
[xlsx] Removed exception when attempting to place some out-of-bounds content.
[office] Added support for the luminance image effect.
[office] Fix for mishandling of Thai text justification.
[pptx] Fix for handling of negative indentations.
[office] Fixed square text wrapping of rotated images.
[office] Fix for handling of text spacing in fully justified text produced in older Word versions.
[office] Fixed bounding box of the circular arrow and pie wedge shapes.
[xlsx] Fix for scaling of grouped shapes with the two-cell anchor style.
[docx] Ensure that we draw group shape elements by order of appearance.
[office] Fixed issue with misaligned right-to-left text in rows with trailing spaces.
[office] Much improved office equation handling.
[office] Now translate some elements of user-specified structured document tags within OOXML to the converted PDF.
[xls] Fixed hidden sheet state conversion for xls.
[xls] Now correctly ignore comment shapes.
[office] Implemented support of semi-transparent gradient fill.
[xlsx] Now support excel rounding functions.
[docx] Implemented handling of vanished paragraphs.
[doc] Fixed a number of bugs with handling of numbered lists.
[docx] Fixed automatic text color on a dark page background.
[office] Fixed a performance issue with chart drawing, no longer waste time on non-visible elements.
[xlsx] Fix for incorrect ISBLANK implementation.
[xlsx] correct handling of row custom height and dyDescent.
[docx] Better handling for custom page numbering mixed with non-custom.
[pptx] Take trailing blank lines into account when centering text vertically.
[docx] Correctly handle cases where a paragraph contains only floating picture anchors and a line break.
[xlsx] Do not wrap text in date-formatted cells.
[xls] Implemented AutoFilter support for XLS format conversion.
[office] Added support for arbitrary text rotations.
[office] Added support for text which is horizontally scaled to it's container.
[office] Implemented double and heavy underlines and strike through styles.
[xlsx] Added missing support for some forms of horizontally merged cells.
[office] Many improvements to chart drawing and axis positioning.

  • .NETFramework 4.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
9.0.0 417 4/12/2021 334 3/22/2021 2,620 12/19/2020 353 12/11/2020
8.1.0 322 12/1/2020 824 10/30/2020 1,604 9/9/2020 163 9/8/2020 8,700 2/19/2020 785 1/27/2020 3,088 11/1/2019 1,236 9/20/2019 5,074 8/23/2019 709 7/26/2019 2,222 6/4/2019 1,032 4/2/2019 692 3/8/2019 648 2/15/2019 1,011 11/29/2018 1,657 11/20/2018 4,292 8/21/2018 2,612 7/12/2018 19,299 4/24/2018 1,150 4/12/2018 4,172 12/11/2017 1,974 10/24/2017 948 9/27/2017 681 9/22/2017 1,622 7/25/2017 8,665 5/3/2017 2,250 3/3/2017 1,928 1/27/2017 8,794 1/6/2017 1,153 12/2/2016 15,979 4/11/2016 2,706 1/13/2016 2,837 12/1/2015 2,559 9/14/2015