Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype and document a PDF generation example using Jinja2, print CSS and Wesyprint #37

Open
devraj opened this issue Aug 24, 2022 · 0 comments
Assignees

Comments

@devraj
Copy link
Member

devraj commented Aug 24, 2022

Often we need to generate PDF documents e.g reports, invoices. These are often large documents that have an effect post the generation e.g emailing a link or attaching it to a message.

The genera process is these jobs to be queued and then for a processor to collate the contents, convert it into a template which is then turned into a PDF. We have typically used Wesayprint which is a Python based tool to generate PDFs from HTML and CSS. It has deep roots where the maintainers are members of the CSS working group.

We should prototype:

  • A template being processed using Jinja2
  • CSS defined for print may be using a framework like Gutenberg
  • Sample to include, images, code
  • Generate the PDF
  • Store the document in an object store
  • Write the link back into a database for the rest of the application to find the document

Anomaly should also consider financially supporting Weasyprint

@devraj devraj self-assigned this Aug 24, 2022
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

No branches or pull requests

1 participant