iText 5.4.0 — XML Worker 5.4.0



iText 5.4.0

  • Changes made by Paulo Soares
    • Make EOF consistent in class RandomAccessFileOrArray.
    • Fix PdfStamper: avoid double closing; update Javadoc.
    • Fix PdfReader: fixed confusing error message that reported the wrong value.
    • Fix CMapAwareDocumentFont: Apply the font mapping first before overriding it with the ToUnicode.
    • GlyphList: added support for char names of the format uniXXXX (with XXXX a hexadecimal value).
    • Started working on Indic support based on code contributions by Palash Ray.
      This functionality has been disabled for this release, because it needs much more work.
  • Changes made by Kevin Day
    • Refactoring IO: add optional exclusive lock capability
  • Changes made by Alexander Chingarev
    • Added tagged DIV element support
    • Fixed "incorrect reading order" problem on some PDF documents
    • A fix for a multithreading issue introduced in 5.3.5 that occurred when embedding ttf fonts.
    • Bugfix in PdfSmartCopy: circular references in PDFs (constructions where object A refers to object B and object B refers back to object A) could cause endless loops resulting in an OutOfMemoryException.
  • Changes made by Denis Koleda
    • Adding tag attributes for PdfDiv, PdfPTable and lists
  • Changes made by Pavel Alay
    • Fixed margin mirroring functionality.
    • Fixed problems when copying/concatenating Tagged PDFs.
    • Improved file size by removing unused objects after copying Tagged PDFs.
    • Improved tags structure in case the order of documents and pages are mixed.
    • Create nums tree for incorrect tagged document.
    • Fixed a bug with PdfStructureTreeRoot.buildTree() for PdfWriter
    • Throw an exception when trying to merge Tagged PDFs with an invalid structure
  • Changes made by Eugene Markovskyi
    • Empty line processing in BidiLine: the remaining width of an empty line should be equal to original width of its container (be it ColumnText or PdfDocument).
    • Fix layout problems when using consecutive spaces.
  • Changes made by Raf Hens
    • MappedRandomAccessFile: fixed IndexOutOfBoundsException
  • Changes made by Bruno
    • PdfReader: The method eliminateSharedStreams() now has to be called explicitly if you intend to change something to one specific stream.
    • Avoiding a NullPointerException when using an ExternalBlankSignatureContainer
    • The isRevocationValid() method shouldn't assume SHA-1 as digest algorithm.
    • Fix when parsing PDFs because the same glyph name can correspond with more than one character value.
    • Fix: a Chunk shouldn't have the "power" to change the properties of an Image object. If the Image is also used in a different context, you risk unwanted side-effects (getting the image in a different size than you expected).
    • If an OCSP response doesn't define a 'next update', we use the date of the OSCP response + 3 minutes.
    • Applied suggestion by W Trevor King to add support for UTF-8 to FdfReader.
    • EncryptionAlgorithms: Added missing OID for RSA.
    • PdfContentByte: introduction of an isTagged() function that checks if the writer object isn't null before invoking writer.isTagged().
    • AcroFields: changing the font with setFieldProperty() didn't work if no resources dictionary (/DR) was available.
    • AcroFields: the boolean generateAppearances is true by default, which means we need to remove the /NeedAppearances entry. It will be reintroduced if somebody triggers setGenerateAppearances(false); Note that the presence of /NeedAppearances with value true causes recent versions of Adobe Reader to ask the end user if he wants to save the form, even if he didn't change anything.
    • AcroFields bugfix: In case a prefilled form was flattened, the prefilled text fields were disappearing because they weren't regenerated.
    • LtvVerification: Added a method that gets the issuing certificate of a certificate from a list of available certificates. This method is used when getting an OCSP response for a certificate (which requires the parent certificate).
    • BouncyCastle upgrade: we're now using BouncyCastle 1.48 instead of BouncyCaslte 1.47.

XML Worker 5.4.0

  • Changes made by Eugene Markovskyi
    • Fixed issues with positioning.
    • Fix layout problems when using consecutive spaces.

iText RUPS 5.4.0

  • Changes made by Bruno
    • Adding missing brackets for String values in the content stream
    • Solved the problem with missing page table (in some cases)
  • Changes made by Raf Hens
    • Fixed a problem in TextAreaOutputStream
  • Changes made by Jens Ponnet
    • Make it possible to view image streams as real images
    • Added error handling, some pages/page dictionaries were throwing nullpointer exceptions due to having no parent node.