-1

I need to generate the pdf file in Python. I have created a Word Template file (Word XML document) with placeholders in the document.

I populate the placeholders dynamically and can create a word document. However, I would like to convert this document generated into a PDF file.

BTW, I am trying this on Linux server. Any idea how this can be accomplished?

Cindy Meister
  • 25,071
  • 21
  • 34
  • 43
Kiran
  • 8,034
  • 36
  • 110
  • 176

1 Answers1

0

You can use LibreOffice to convert docx to pdf

libreoffice --convert-to pdf file_path.docx --outdir   output_path.pdf
abdulsaboor
  • 678
  • 5
  • 10