iText 5.3.2 — XML Worker 1.1.6



iText 5.3.2

  • Changes made by Paulo Soares
    • Tiff colormaps are 16 bit but some tiff producers just put 8 bit resulting in black images. For these broken tiffs we try again using only 8 bits.
    • Digital Signatures
      • Introduced the ExternalDigest interface, so that you can separate the hashing from the signing (done with ExternalSignature). This means that it's possible to have different providers for signing and hashing.
      • Created two implementations of ExternalDigest: ProviderDigest and BouncyCastleDigest Use BouncyCastleDigest by default for digests (in general) and get its digest algorithms straight from Bouncy Castle.
      • Fix: the signature fields in a form should come in the order of the revision.
  • Changes made by Eugene Markovskyi
    • Fix: When a div is in a table, XML Worker 1.1.5 (using iText 5.3.1) fails. 1.1.4 with 5.3.0 does produce output.
  • Changes made by Alexander Chingarev
    • Refactored PdfWriter.addSharedObjectsToBody() and PdfStamperImp.close() for reasons of convenience.
  • Changes made by Raf Hens
    • Hyphenation wasn't friendly towards unknown characters.
    • Fixed a NullPointerException in PdfAWriter
    • Tiff images with "new-style" Jpeg compression (compression 7) can have separately defined quantization and Huffman tables. These need to be added to the Jpeg data in order to create a valid Jpeg image.
  • Changes made by Michaël Demey
    • Added color functionality to ZapfDingbatsList by introducing a setter and a new constructor.
  • Changes made by Bruno
    • Removing unnecessary imports
    • Fix in PdfAnnotationsImp: You can't always assume that the PdfArray returned by get(PdfName.RECT) is of type PdfRectangle. It could just be a PdfArray object.
    • Creating page events for PdfCopy or PdfSmartCopy doesn't make sense, so let's throw an exception when somebody tries to do so.
    • Digital Signatures
      • Avoiding a NullPointerException for graphical signature appearances that didn't get a graphical element.
      • Introduced a PdfSigLockDictionary to lock specific fields; add a FieldMDP to the signature to lock those fields.
      • Changed the order of the parameters in the signDetached() method of the MakeSignature class, because hashing is done before signing (and the API has changed anyway).
      • Added reusable methods to DigestAlgorithms that create a MessageDigest instance or create the digest. Replaced instances of MessageDigest.getInstance() in the security package with the new convenience method from DigestAlgorithms.
      • When using SunMSCAPI, also create the hash using the default MessageDigest of the JDK.
      • When using the default MessageDigest, normalize the name of the digest algorithm. For instance change SHA256 to SHA-256.
      • Introduced an enum to pass the Signature Standard to the signDetached() method of the MakeSignature class.
      • Added extra logging to the signing process: finding CRLs, using CRLs, Time stamping.
      • Renamed CrlClientImp to CrlClientOnline and added constructors that take an URL or a certificate chain (from which URLs will be extracted).
      • Do a better effort to find the CRL when using the default CrlClientOnline
      • Changed the default digest algorithm in TSAClientBouncyCastle from SHA-1 to SHA-256
      • Introduced a TSAInfoBouncyCastle interface that allows you to get more info right after receiving the timestamp from the TSA.

XML Worker 1.1.6

  • Changes made by Eugene Markovskyi
    • Fix: if inCssFile is null, the default CSS should be used.
    • Fix: When a div is in a table, XML Worker 1.1.5 (using iText 5.3.1) fails. 1.1.4 with 5.3.0 does produce output.
    • Fix: the inner tables were acquiring the width of the first column of outer table rows if the contained row spans across multiple columns.