mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 12:50:11 -05:00
d39c5a2f37
Decorative images now survive save/load and no longer cause a black PDF preview: - Sync imageUrl onto groups before generateCode() so template_json has correct source (invoice and quote layout editors). - Inject name/imageUrl into design_json with position-based matching so reordering does not swap or drop URLs. - Restore name and imageUrl from saved JSON onto canvas on load (synchronous) so Konva custom attrs are not required. - Omit decorative image elements with empty source from template_json; placeholders stay visible in the editor but are not sent to ReportLab. - ReportLab: explicitly skip decorative images with empty source; validate base64 data URI payload and decode in try/except to avoid bad PDF output. Documentation: PDF_LAYOUT_CUSTOMIZATION.md and PDF_EDITOR_ENHANCED_FEATURES.md updated with decorative image description, state persistence details, and troubleshooting. CHANGELOG.md updated under [Unreleased] Fixed.