Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
Adds a parameter ensure_parity to the ALDocumentBundle.as_pdf(), and default_parity as an attribute of the bundle.
parity means odd or even number of pages. When either parameter or attribute is set, the as_pdf() method of the bundle may pad the output with an additional page, if needed to match the desired parity.
The purpose is primarily to assist with double-sided printing.
ALDocumentBundle.default_parity: can be "odd", "even", or None.
ALDocumentBundle.as_pdf(ensure_parity) can be "odd", "even", or None. Overrides default_parity.
Adds a parameter
ensure_parity
to theALDocumentBundle.as_pdf()
, anddefault_parity
as an attribute of the bundle.parity means odd or even number of pages. When either parameter or attribute is set, the as_pdf() method of the bundle may pad the output with an additional page, if needed to match the desired parity.
The purpose is primarily to assist with double-sided printing.
ALDocumentBundle.default_parity
: can be "odd", "even", orNone
.ALDocumentBundle.as_pdf(ensure_parity)
can be "odd", "even", orNone
. Overridesdefault_parity
.Test document:
test_bundle_parity.yml
.Example usage:
Fix #828