fix(test/pdf-export): Improve PDF export tests with detailed logging and enhanced embedded file structure verification.

This commit is contained in:
2025-03-20 14:47:43 +00:00
parent 5763240633
commit 4835e12d15
3 changed files with 216 additions and 20 deletions

View File

@ -1,5 +1,13 @@
# Changelog
## 2025-03-20 - 3.0.1 - fix(test/pdf-export)
Improve PDF export tests with detailed logging and enhanced embedded file structure verification.
- Log original PDF size and compute size increases per export format
- Print a table of format-specific PDF size details
- Verify the PDF catalog contains the 'Names' dictionary, 'EmbeddedFiles' entry, and a valid 'Names' array
- Ensure type safety for export format parameters
## 2025-03-20 - 3.0.0 - BREAKING CHANGE(XInvoice)
Refactor XInvoice API for XML handling and PDF export by replacing deprecated methods (addXmlString and getParsedXmlData) with fromXml and loadXml, and by introducing a new ExportFormat type for type-safe export. Update tests accordingly.