Repository navigation
Conversation
Moved from abstimmbar (common/pdf.py, protocol PDF) and extended for kalkulierbar's reports: landscape, margins, author, auto column widths, right-aligned number columns, bold total rows, raw flowables. Bundles Plus Jakarta Sans (OFL). No Django dependency: footer label and image placeholder are parameters (lazy translations work). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gemeinsamer PDF-Rahmen für herunterladbare Dokumente der -bar-Tools.
Herkunft: abstimmbar
backend/common/pdf.py(Sitzungsprotokoll, abstimmbar ADR-0008), unverändert im Kern: Plus Jakarta Sans (OFL, mitgeliefert), Fußzeile „Seite x von y“, Editor-HTML → Flowables,box/keep_togetherund die Robustheits-Fixes (überlange Überschriften, TipTap-Listen).Erweitert für kalkulierbar (
personnel/report_render.render_pdf):landscape=True,margin_mmundauthor;table(..., col_widths="auto", align_right_from=1, strong_rows=[…])für Zahlentabellen (die Spaltenbreiten-Logik stammt aus kalkulierbar_widths);usable_widthundadd(*flowables).Ohne Django: Seitenangabe und Bild-Platzhalter sind Parameter (
gettext_lazyfunktioniert). So muss das Paket keinen eigenen Übersetzungskatalog mitbringen, denmakemessagesder Tools nicht sieht.reportlab>=4.4,<6, lokal mit 4.4.4 und 5.1.0 getestet (17 Tests).pypdfnur als Extra[test].pdfist in die Paket-Matrix aufgenommen; die Matrix installiert jetzt.[test], das schadet den anderen Paketen nicht.Nach dem Merge braucht es den Tag
pdf/v0.1.0. Danach stellt abstimmbar um, später kalkulierbar.🤖 Generated with Claude Code