HexaPDF v0.20.0 Release Notes
Release Date: 2021-12-30 // over 2 years ago-
โ Added
- ๐ Support for signing a PDF using a digital signature
- ๐ Support for reading and validating digital signatures
- Output info regarding digital signatures when using the
hexapdf info
command - [HexaPDF::Type::AcroForm::Form#create_signature_field] for adding signature fields
- [HexaPDF::Type::Annotation::AppearanceDictionary#set_appearance] for setting the appearance stream
- [HexaPDF::Type::Annotation#create_appearance] for creating an empty appearance stream
๐ Changed
- ๐ฅ Breaking change: Method signature of [HexaPDF::Type::Annotation#appearance] changed
- [HexaPDF::Object#==] to allow comparison to simple value if not indirect
- 0๏ธโฃ [HexaPDF::Type::AcroForm::Form] to use an empty array as default for the /Fields field
- [HexaPDF::Type::ObjectStream] to not store signature fields in object streams
- [HexaPDF::Writer] to return the last written cross-reference section
- ๐จ [HexaPDF::Type::AcroForm::Field#create_widget] to automatically set the print flag and assign the page
๐ Fixed
- Incremental writing of files in cases where object streams were deleted (e.g.
when using the
optimize: true
argument when writing) - Comparison of non-indirect [HexaPDF::Object] instances with other HexaPDF::Object instances
- Deleting of objects via [HexaPDF::Revision#delete] to re-use the
[HexaPDF::PDFData] object of the deleted object when using
mark_as_free: true
- [HexaPDF::Revision#each_modified_object] to work correctly for dictionary objects even if a value is changed only by reading it