Skip to content

v6.0.0

Latest

Choose a tag to compare

@ma4nn ma4nn released this 09 Aug 07:58
· 9 commits to develop since this release
40153cc

Added

  • PaperSize model and UnsupportedPaperSizeException

Changed

  • Breaking: Supported paper sizes limited to a3, a4, a5, letter and legal - Config::setPdfSize()
    validates and normalizes the given size right away
  • Breaking: Vianetz\Pdf\Exception is an interface now instead of a base class - catching it is
    unaffected and covers FileNotFoundException as well now
  • Our exceptions extend the SPL exception matching their nature, i.e. \RuntimeException or
    \InvalidArgumentException
  • Mergers that cannot handle attachments throw a \LogicException

Fixed

  • Missing or unreadable files result in a FileNotFoundException instead of an empty document
  • Attachments added after a first render are no longer silently dropped
  • An empty Pdfable document results in a NoDataException instead of a pdf parser error