Skip to content

Reuse a background-generated final bundle PDF on request - #1129

Open
the8thbit wants to merge 1 commit into
SuffolkLITLab:mainfrom
the8thbit:fix-978-cached-bundle-pdf
Open

the8thbit wants to merge 1 commit into
SuffolkLITLab:mainfrom
the8thbit:fix-978-cached-bundle-pdf

Conversation

@the8thbit

Copy link
Copy Markdown

Closes #978.

Add an opt-in use_previously_cached_files argument to ALDocumentBundle.as_pdf. Reuse an available background final PDF and fall back to normal assembly when absent or when custom key, PDF/A, or parity options require it.

Validation:

  • 40 document pytest tests and 4 subtests passed
  • Full mypy (19 files) and Black passed
  • PDF/A, custom-key, missing-cache and actual PDF page-parity regressions passed
  • Full pytest: 138 passed, 1 skipped, 10 subtests passed; sdist build passed

This branch has not been deployed

No deployments
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.

ALDocumentBundle.as_pdf() should accept keyword param to provide a cached file

1 participant