-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
A nice feature would be the option to do:
import pydfy.models as pf
pdf = pf.PDF(...)
pdf2 = pf.PDF(...)
new_pdf = pdf + pdf2 # Although a more explicit pdf.merge(pdf2) makes sense to add as well
new_pdf = new_pdf.add(pf.Number(2)) # Accepting either a row or a component
new_pdf.render() # get both PDFs merged with a PageBreak, and the Number component at the endBecause this would allow users to create larger PDFs in a modular way and pass around well-defined (ideally immutable) PDF objects. Perhaps a merge method should have an optional boolean pagebreak argument defaulting to True. Both these methods should be immutable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers