mirror of
https://github.com/suitenumerique/docs.git
synced 2026-05-12 09:57:02 +02:00
We can now export our document to a docx file. This is done by converting the html to a docx file using the pypandoc and pandoc library. We added the "format" param to the generate-document endpoint, "format" accept "pdf" or "docx" as value.
11 lines
237 B
Plaintext
11 lines
237 B
Plaintext
<page size="A4">
|
|
<div class="header">
|
|
<img width="200"
|
|
src="https://impress-staging.beta.numerique.gouv.fr/assets/logo-gouv.png"
|
|
/>
|
|
</div>
|
|
<div class="content">
|
|
<div class="body">{{ body }}</div>
|
|
</div>
|
|
</page>
|