Skip to content

FIX: Multiline support for long account labels in Ledger PDF & Page break fixes#673

Open
atm-jonathan wants to merge 2 commits into
22.0_cavifrom
FIX/DA027370/DEBUG_PDF_LEDGER
Open

FIX: Multiline support for long account labels in Ledger PDF & Page break fixes#673
atm-jonathan wants to merge 2 commits into
22.0_cavifrom
FIX/DA027370/DEBUG_PDF_LEDGER

Conversation

@atm-jonathan
Copy link
Copy Markdown

@atm-jonathan atm-jonathan commented Dec 4, 2025

This PR fixes layout issues in the Accountancy Ledger PDF generation:

Long Label Support: Previously, long account labels were truncated or overflowed the page margins.
Replaced the printing logic in addTitleLine to use MultiCell.
Added printTitleContentWithMulticell helper to calculate available width and wrap text automatically.
Page Break Logic: Improved page break detection in pdf_ledger.modules.php.
Added checks on $pdf->GetY() to prevent headers or subtotals from being printed at the very bottom of the page, forcing a clean page break instead.

@atm-jonathan atm-jonathan changed the title Fix pdf Ledger FIX: Multiline support for long account labels in Ledger PDF & Page break fixes Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant