Itext7 Dotnet Versions Save

iText for .NET is the .NET version of the iText library, formerly known as iTextSharp, which it replaces. iText represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enha

7.2.2

2 years ago

It's already Q2 of 2022, and so we're pleased to announce the release of iText Core 7.2.2. Your favorite PDF library for Java and .NET (and more!)

The System.Text.RegularExpressions dependency is now explicit rather than implicit, and uses version 4.3.1.

We've made some improvements to iText's parsing logic for PDF cross-reference structures. This was to prevent the potential for a PDF's structure to be maliciously created to cause infinite loops or other issues.

We've also fixed a bug relating to CFF font parsing. As noted in the specification, CFF is a font format which was developed by Adobe to act as a compact container for one or more fonts by using lossless compression. In cases when a font's CID does not correspond to its GID, iText could incorrectly read its cmap values resulting in incorrect glyphs being displayed in PDF viewers. To address this, the font parsing logic has been rewritten to account for fonts where the glyph IDs do not match the CIDs, and will now handle them in the correct and expected manner.

This release also addresses two CVE issues (CVE-2022-24196, and CVE-2022-24197) which were disclosed. See the Changelog or the linked issues for more details.

Improvements

  • Updated (or rather make it explicit) a .NET dependency (System.Text.RegularExpressions 4.3.1)

Bugs

  • Fixed CFF font-parsing logic
  • CVE fixes CVE-2022-24196 - out-of-memory error via the component readStreamBytesRaw CVE-2022-24197 - stack-based buffer overflow via the component ByteBuffer.append

7.2.1

2 years ago

iText Core 7.2.1 is the latest release of your favorite PDF library for Java and .NET (and more!), and the first scheduled maintenance release for iText 7.2. It brings further improvements for SVG conversion, supporting default values for the d attribute of the path tag and improving PDF output, which in previous versions could be rendered incorrectly by some PDF viewers, such as Safari and View (macOS), and Documents (iOS). As usual, pdfHTML also benefits from any SVG handling changes.

As for PDF merging functionality, we should note more intelligent outline handling, which is no longer as strict and can fix some syntax mistakes in the Outlines hierarchy. For instance, absence of the parent attribute which is mandatory in the PDF specification is not an issue anymore.

We'd also like to thank the iText community for its contributions, specifically; realityone, with a really important and impactful fix for incompatibility with PDF standards in our codebase and kohler, whose PR helped us a lot in our efforts to process PDF outlines better. We are happy to see that after 21 years there is still so much interest in improving the iText library.

You can also expect other changes such as a number of bug fixes, plus some significant improvements to the codebase.

Improvements

  • SVG: Support default value for 'd" attribute
  • Process Outlines using explicit hierarchy
  • Support of copying empty tags

Bugs

  • Outlines structure parsing: infinite loop while merging with outlines
  • SVG. Support of q/Q Operators inside BT/ET text block/object
  • Set PubKeySecurityHandler output stream with DER encoding format
  • OcgPropertiesCopier: StackOverflowError when merging documents with OCGs if a resource has cycle reference

7.1.17

2 years ago

The iText 7.1.17 release is a maintenance release with a security bug fix for a vulnerability that allowed the use of GhostScript in an unpredictable manner. At the same time, we are also releasing iText 7.2.0, the next major version of iText. In addition to this bug fix, 7.2.0 contains a great deal of other improvements.

Bugs

  • Security bugfix for vulnerability in GhostScript

7.2.0

2 years ago

We are pleased to announce the next major version of iText 7; iText 7.2.0.

The most important change in this release of iText 7 is the new Unified License Mechanism, where we can have independent licenses for iText 7 Core, iText 7 add-ons and other products, send statistics to the server, allow users to easily check used volume, and more. As you might guess from the name, the Unified License Mechanism affects the entire iText 7 Suite, so please also check out the iText add-ons which have received updates along with this release.

As this is a major release, please note that we have removed deprecated and redundant methods from the API. This will allow us to better maintain the code and more easily add new functionality in the future.

From this release we are bumping our minimum supported version of the .NET Framework from 4.5 to 4.6.1. The main reason for this change is that it allows the use of the Microsoft.Extensions.Logging framework which is built into .NET Framework 4.6.1, in iText-related code. We expect this to be more popular for our .NET community, since this framework is more modern and flexible, and, most importantly, secure.

Separately, it should be noted that this release contains a security bug fix for a vulnerability that allowed the use of GhostScript in an unpredictable manner.

As for the rest of the changes, 7.2 brings a number of bugfixes, plus some significant improvements to the codebase. Some of these may not yet be visible but will have an important effect on the further development of the iText 7 Suite, its security, and performance.

Breaking Changes

  • Removed deprecated methods from API
  • Bump to .NET Framework 4.6.1

New Features

  • Unified License Mechanism
  • Introduce interface of typography logic and stub implementation at the layout level

Improvements

  • Case insensitive SVG tags
  • Throw specific errors when Outline Dictionary breaks PDF specs rules

Bugs

  • Streams remain open in case of exception in PdfDocument/PdfReader constructors
  • PdfPageFormCopier. multiple widget source field can`t be added to AcroForm when there is a name conflict.
  • Infinity loop in ParagraphRenderer
  • Prevent empty producer line logic
  • No list symbol indention for "Right to left" text
  • Layout: Cell with big rowspan causes infinite loop

7.1.16

2 years ago

The iText Core 7.1.16 release is already our third release for 2021 and it brings a few important improvements, making our SDK even more flexible, customizable and productive. We continue to improve the SVG support in iText. For this release we made the TextLeafSvgNodeRenderer class easily extendable, so you can implement your own conversion logic. This can be beneficial for processing complicated SVG images and make code clearer. Another important improvement in this release is refactoring the PdfSigner class responsible for digital signatures. Specifically, the customization of a signature's appearance has been significantly simplified. This is implicitly related to SVG support, as from now on using SVG images for a signature's appearance will not require so much effort on the part of developers. As for performance improvements, we should note the parsing of Metadata has been optimized, and the fixing of a couple of bugs that could cause deadlocks and memory leaks.
Besides that, support of non-encrypted PDF files with encrypted attachments, and ICCBased colorspaces has been added.

Features

  • SVG. Customizable TextLeafSvgNodeRenderer
  • Support for encryption embedded files only

Improvements

  • Improve Bezier curve approximation for rounded borders
  • Improve performance of Metadata parsing
  • Support ICCBased color space
  • Refactor preClose() in PdfSigner

Bugs

  • Streams remain open when Exception thrown
  • Support Type3 fonts extraction, when glyphs have non-standard names

7.1.15

3 years ago

iText Core 7.1.15 is the second quarterly release for 2021 of our multifunctional PDF SDK.

Important notes:

We've started preparations for the release of our next major version (7.2) so in this release:

  1. all deprecated methods of the layout module API have been removed.
  2. support of the .NET 4.0 framework was dropped in favour of 4.5.

In addition, this release brings many important changes to iText 7. While many of these changes relate to the flexbox support that we've added to pdfHTML 3.0.4, there is also a number of substantial changes which explicitly affect iText 7 Core behaviour. They may not be immediately obvious, but are still significant and involved a great deal of effort from our team:

  1. support forType3 fonts with non-standard glyph names
  2. improved performance of the layout module for better processing of extremely large block elements and correct rendering of a table's cells. This can lead to significantly lower memory usage in certain situations
  3. increased SVG support. Now iText is able to correctly process SVG paths with missing L/l operators, as per the moveto command specification.
  4. clearer error messages for many cases.

Last but not least; huge amounts of kudos to @borislucas-dev, @trumpetinc, and @dajoropo for their efforts in making iText even better. Thank you for all your pull requests; we feel extremely proud to still have so many active contributors, even after 21(!) years of existence as an open-source product.

Breaking changes

  • removing deprecated methods from the layout module
  • Drop .NET Framework 4.0 support in favour of 4.5

Improvements

  • SVG: added support for M/m operators followed by a pair of coordinates
  • support for Type3 fonts with non-standard glyph names
  • support justify-content and align-items
  • better PDF/A Conformance exception text
  • ignore invalid catalogue version on document load
  • Improve exception message when removing a page from a document with invalid outlines

Bugs

  • layout: cells with percent width change column width after overflow
  • add null check for producer string

7.1.14

3 years ago

The iText Core 7.1.14 release is the first quarterly release of 2021 of our innovative PDF library.

We've continued to further increase the support for SVG, since as noted in previous releases this is an important topic for us.

The new release brings support for the <pattern> element which benefits both Core, and pdfHTML (3.0.3). This element is used to define a graphics object which can be "tiled" to cover an area. In addition, we also added the support of font-relative units for SVG and fixed the stroke-width processing within <use> tags.

We've also made improvements to our Acroform support: the missing fields border styles as Beveled, Underline and Inset are now available in iText Core.

A few changes have been made to OpenType Font (OTF) processing which are especially important in the context of Japanese, Chinese and Korean languages. Previously OpenTypeFontTableReader.getLanguageRecord() only allowed fetching the default language system for a given script, which was not sufficient for CJK regional variant substitution. Now, it's possible to fetch OTF language records by tag.

Note: .NET Standard 1.6 support was deprecated as of the 7.1.13 release, and so from this release we’re targeting NET Standard 2.0

New Features

  • SVG: Support <pattern> element
  • Support of form fields border styles (Beveled, Underline and Inset)

Improvements

  • SVG: add support of font-relative units for the font-size property in a text element
  • Allow OTF language records to be fetched by tag
  • Support word-wrap and word-break properties

Bugs

  • Expand colored background on the overflowed part of span
  • SVG stroke-width doesn't work in <use> tags
  • Signed short number overflows in readCoverageFormat()
  • Page-break-inside: avoid not being taken into account for floating DIVs

7.1.13

3 years ago

The iText Core 7.1.13 release is the fourth quarterly release of 2020 of our innovative PDF library.

This Core release brings initial support for <symbol> in SVG, which benefits both Core, and pdfHTML (3.0.2). As we've mentioned previously, we continue to work on increasing support for SVG since it is an important topic for us.

Improvements have been made to the way MemoryLimitsAwareHandler works, and we've also made important changes regarding how word-wrapping is handled in the context of languages that use special scripts, such as Thai, Khmer, Lao, and Myanmar.

Besides that, we investigated and fixed a potential vulnerability in the way iText used to parse XMP metadata which affects both Core and the license library, improved the PDF merging so that it does not ignore OCG dictionaries anymore, and added two new Image filters (DCT and JPXDecode).

As for the rest of the changes, expect the typical assortment of performance improvements and convenience additions.

New Features

  • Support DCT filter for image bytes decoding
  • Support JPXDecode filter for image bytes decoding
  • SVG: support symbol element

Improvements

  • Wordwrapping: support proper processing of preceding inlineBlock or ImageRenderer
  • PDF/A: page transparency check
  • PDF/A: "Implementation limits" requirement check
  • Refactor MemoryLimitsAwareHandler
  • Merging keeps OCG dictionary
  • Handling of the PDF document with outlines which don't have correct Parent entry

Bugs

  • TrueTypeFont with standard base font is not parsed from PDF correctly
  • NPE on empty letter spacing declaration
  • Potential security vulnerability in XMP Metadata parsing

7.1.12

3 years ago

The iText Core 7.1.12 release is the third quarterly release of 2020 of our innovative PDF library. 

This Core release brings initial support for <linearGradient> in SVG and linear-gradient() in CSS, which is something that both Core, and pdfHTML (3.0.1) will benefit from. SVG is an important topic for us, so be sure to check our future releases, as even wider support is coming.

As for the rest of the changes, expect the typical ongoing mix of yet even more performance improvements and convenience additions.

A big shout-out to @evileye-uk, @tompecina and @hady-malekpour for their pull requests! It is pretty amazing that after 20 years as an open source project, we still get contributions.

New Features

  • Expose image identification API in io module
  • Add possibility to remove items from outline tree
  • Initial support of linearGradient in SVG and in CSS

Improvements

  • itext7-dotnet PR #8: Fix behaviour on systems with alternative minus sign characters (Ported to Java)
  • itext7 PR #42: Malformed cross-reference stream fixed (ported to .NET)
  • Process large table's split correctly
  • itext7 PR #40: If line.start <=0 then continue replacing whitespaces otherwise it is a GlyphLine which has been created from existing one (ported to .NET)

Bugs

  • Digital Signatures: annotation dictionary incorrectly updated when signing a pre-signed document
  • Incorrect appearance for choice fields after the setValue call
  • Glyph bbox is calculated incorrectly for type 3 fonts in case font matrix has 1 as multiplier when parsing content stream
  • Improve the performance of the replaceSpecialWhitespaceGlyphs method
  • layout: KEEP_TOGETHER works incorrectly with floating elements
  • Pdf/A compliance checker incorrectly throws exception when a /Configs entry is not present in the /OCProperties dictionary
  • SVG: Incorrect default resource resolving
  • SVG: Fix Preserve AspectRatio attribute
  • Reuse the same instance of ResourceResolver in SVG processing
  • When a link occupies more than two areas, a NullPointerException is thrown
  • When signing a PDF using an existing signature field, PdfSigner.PreClose does not mark the AcroForm dictionary as modified

7.1.11

4 years ago

7.1.11

iText 7.1.11 brings the second quarterly release of 2020 for the iText 7 family.

Other than Core (this project), we're also releasing at the same time, the following open source projects pdfHTML (major 3.0 release!) and RUPS.

New Features

  • Improve creation and(or) merging of outlines for documents created in pdfHtml
  • Basic implementation of orphan/widow control

Improvements

  • itext7-dotnet PR #6 (and i7n-pdfsweep PR #1): Fix missing index and newlines in cleanup regexes (thank you vemoo!)
  • itext7 PR #44: Fix null pointer in PdfAcroForm (thank you craftmaster2190!)
  • itext7-dotnet PR #4: Path transformation to userspace (thank you Moneema14 for the inspiration!)
  • While checking whether a cell with a fixed height should be split, float are compared without any epsilon value, which may cause issues because of float precision inaccuracy

Bugs

  • Make fringe attribute in xfdf squre and circle annotations optional
  • Several bugs in processing of /TI for choice fields
  • setValue method works incorrectly for a choice form field
  • NotoSerifKhmer is rendered poorly
  • GposLookupType5: mark to ligature positioning results in duplicating the mark
  • Fix issue with Khmer text being incorrectly formatted
  • Adding a PNG to pdf creates unopenable pdf document
  • The FillOpacity is not set correctly on the GraphicsState of TextRenderInfo