收藏订阅
* Added the ability to Redact documents with the new Redactor class. Text can also be selected and redacted using the Viewer. * Added the ability to set "Callouts" on AnnotationText objects. * Added a new PDFImage constructor, PDFImage(Image, String), to control how PDF images created from AWT Images are compressed. This allows images to be saved to the PDF using JPEG or JPEG-2000 compression. No longer convert all images constructed this way to RGB. * Fixes to color calibration. RGB colors create with the java.awt.Color class in the normal way have their correct colorspace used in PDF. This may result in slightly brighter colors when displaying a PDF created with BFO in Acrobat, but the results are now correct and platform independent. The old behaviour can be used instead by setting the System property "org.faceless.pdf2.NoDefaultRGB" to not null. Similar changes have been added to the CMYK ColorSpace to use a more typical conversion to RGB, and the API docs for that class show how to use a standard SWOP space or others to obtain different results. * Rasterizing pages containing bitmap images has been parallelized, for speed improvements on multi-core machines. * Fixed writing Linearized Encrypted documents. * Changes to allow working with PDF files > 2GB in size. * Fixed AnnotationShape for Ink annotations (the Pencil tool in Acrobat). * Added BarCode.getBufferedImage() method, to render BarCodes to bitmap images. * Added PageExtractor.cropText() method, to crop selected text to a rectangle. * Fixes to parsing of PNGs containing (cHRM && !gAMA) || (cHRM && iCCP) chunks, and added code to override the ColorSpace of a PDFImage - necessary when the original image has an incorrect space embedded. * Added support for Blend modes to AnnotationStamp class, with setBlendMode(). * Bookmark parsing is more lenient with damaged documents. * Fixed text extraction to correctly take kerning into account when determining spacing. * Fixed rare ConcurrentModificationException when rendering. * Minor tweak to PDF/A: output documents are always PDF-1.4 (although PDF-1.3 header is valid, it was causing issues with some 3rd party software). * Fixed parsing of CFF fonts with different Font DICTs for ranges of CIDs. * Fixed glyph sizing for fonts where all glyphs use DW then modified by kerning. * Fixed parsing of CMYK JPEG-2000 image objected embedded in the PDF. * Fixed "Function must be a Dictionary or Stream" when rendering some gradients. * Added workaround for AWT failure to respect "FontMatrix" in Type1 fonts. * Don't stretch font to match it's width for non-substituted fonts. * PublicKeyEncryptioHandler throws an exception if the wrong password was specified for the private key. * Bugfixes to Java 1.6 JavaScript engine, and implemented a few more methods. * Viewer handles the changing of the Field.readonly property from JavaScript. * Viewer: fixed race condition which sometimes resulted in form fields not being visually updated.