Repository navigation
Releases
Releases · vianetz/pdf-generator
v6.0.0
Added
PaperSizemodel andUnsupportedPaperSizeException
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\Exceptionis an interface now instead of a base class - catching it is
unaffected and coversFileNotFoundExceptionas well now - Our exceptions extend the SPL exception matching their nature, i.e.
\RuntimeExceptionor
\InvalidArgumentException - Mergers that cannot handle attachments throw a
\LogicException
Fixed
- Missing or unreadable files result in a
FileNotFoundExceptioninstead of an empty document - Attachments added after a first render are no longer silently dropped
- An empty
Pdfabledocument results in aNoDataExceptioninstead of a pdf parser error
v5.0.0
- Added merger for Zugferd PDFs, i.e. PDFs with XML attachments
- Replaced TCPDF with Fpdf library for merging as default (both libraries supported now)
- Updated several public interfaces to support type hints and make purpose clearer
- Removed deprecated ZendPdf merger