Docotic.Pdf 5.1 with brand new JPEG 2000 codec
Published on 11 February 2017
We have published Docotic.Pdf 5.1 on our site and on NuGet.
The new version comes with brand new JPEG 2000 codec. The codec is much better than the one we had in previous versions of the library. The decoder part of the new codec allowed us to fix some nasty bugs which affected drawing of documents with particular JPEG 2000 images.
The good news is we now have encoder part in our JPEG 2000 codec, too. We added PdfImage.RecompressWithJpeg2000() methods, so you can recompress images using JPEG 2000 compression either lossless or using specified conversion ratio. You can also recompress images with JPEG 2000 when adding them to document. PdfImageCompression.Jpeg2000 is now properly supported in such a use case.
Just as some of our customers asked, we added custom exception classes for specific error groups. All the new exception classes are descendants of the PdfException class, so the change is not a breaking one. Here is the list of the new classes: CannotDecryptPdfException, CannotParseFdfException, CannotShowTextException, IncorrectPasswordException, UnexpectedStructureException, UnsupportedFontException, UnsupportedImageException, UnsupportedMetadataException.
In Docotic.Pdf 5.1 we added ability to draw whole PDF document to multipage TIFF image. The PdfDocument.SaveAsTiff() methods produce one TIFF from all pages of a PDF document. The produced TIFF will consist of multiple pages (frames).
With the latest version you can extract visible text only. Please take a look at the new PdfTextExtractionOptions.SkipInvisibleText property. Use PdfDocument.GetText(PdfTextExtractionOptions) or PdfPage.GetText(PdfTextExtractionOptions) methods to extract visible text only.
There are other changes. Read about all new features and improvements in Docotic.Pdf 5.1 in the Version History document.