-1

Now I use easy_pdf for create pdf documents from html templates. Are there any library for make doc/docx files in the same way?

Artem
  • 517
  • 1
  • 7
  • 24

1 Answers1

2

Check this answer html to .doc converter in Python?. In that answer, author mentioned pywin32. From the description:-

Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment.

There are another libraries that you can try: templated-docs and python-docx.

Nalin Dobhal
  • 2,292
  • 2
  • 10
  • 20
  • Unfortunately I can`t use WinApi because the site works on Linux machine (in docker container). – Artem Jun 04 '19 at 20:50
  • 1
    But `templated-docs` with using DOC template for generate both DOC and PDF seems to suits me too. – Artem Jun 04 '19 at 21:20