Changelogs & Release Notes

Show changelog from version to

3 Bugfixes
11 Features
12 Tweaks
SetaPDF-FormFiller Lite Component
Feature
  • Added setAlign() and getAlign() methods to text field class.
Tweak
  • Handle invalid PDF objects in value and default value dictionary entries of text fields.
SetaPDF-Core Component
Feature
  • Added return value to SetaPDF_Core_DataStructure_Tree::add() method to get the finally added object back.
  • Added getEntriesKeyName() and isNew() methods to SetaPDF_Core_DataStructure_Tree.
  • Added return value to SetaPDF_Core_Document_Catalog_Dests::add() method to get the finally added object back.
  • Added SetaPDF_Core_Document_Catalog_StructTreeRoot::getIdTree() method.
  • Added ObjectCollector class and helper classes to collect indirect objects of specific types.
  • Added getCompressXref() and removeReferencedObject() methods to SetaPDF_Core_Document class.
  • Added support for creation of compressed object streams (enhanced SetaPDF_Core_Type_ObjectStream class and added SetaPDF_Core_Document_ObjectStreamCompressor class).
  • Added helper class to extend XMP metadata to PDF/A conformance.
  • Added helper class to extend XMP metadata to ZUGFeRD conformance.
  • Added helper class to create and handle ZUGFeRD conforming PDF documents.
Bugfix
  • Fixed toPhp() in SetaPDF_Core_Type_String when used in encrypted document context.
  • Fixed sync behavior of Trapped value in XMP metadata.
  • Fixed various situations in SetaPDF_Core_DataStructure_Tree when dealing with or creating empty tree structures.
Tweak
  • Optimized recognition of invalid length values in stream objects.
  • Added SetaPDF_Core_Writer_CopyStreamInterface interface.
  • Implemented copyStream() method of SetaPDF_Core_Writer_CopyStreamInterface in SetaPDF_Core_Writer_Stream and SetaPDF_Core_Writer_TempFile.
  • Make use of SetaPDF_Core_Writer_CopyStreamInterface in SetaPDF_Core_Reader_Stream::copyTo() and optimized method to reduce memory usage.
  • Ensure string type for passwords in standard security handler classes (fixes a deprecation warning in special situations on PHP >= 8.1).
  • Use predictor function when compressing cross-reference streams.
  • Added getIndirectReference() and marked getReferenceTo() as deprecated in SetaPDF_Core_Document_OutlinesItem.
  • Harden data types by using SetaPDF_Core_Type_*::ensureType() calls and explicit data type checks.
  • Check for string parameter in constructor of File reader classes.
  • Renamed factory() method of all security handler generator classes to create() (old method is marked as deprectated).
  • New created security handlers are attached to their document instance automatically now (no need to call $document->setSecHandler($secHandler) afterwards anymore).