Skip to content
Discussion options

You must be logged in to vote

Hi @shearichard,

Templates in fpdf2 are really meant to simplify development effort, not to make rendering faster. If you look at fpdf/template.py, the template system just reads elements in different input formats and render them by calling the standard API methods.

Because of that, there’s no pre-processing or caching carried across documents. Each PDF is still generated one by one with the normal API calls. In fact, I would even expect a slight overhead when using templates, since there’s a conversion step involved in rendering the template.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shearichard
Comment options

Answer selected by shearichard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants