0

I am using Mac and trying to build a converter that converts docx file to pdf file. I am using docx2pdf python package.

from docx2pdf import convert

convert('my.docx')

enter image description here

When I run the code, I am getting " 0%| | 0/1 [00:00<?, ?it/s]" error

enter image description here

  • That doesn't seem like an error, it's a `progress bar`. – Marcelo Paco Mar 17 '23 at 00:25
  • 1
    Another converter is available via LibreOffice - with the additional advantage that MS Word **need not be installed.** Installation of (free) LibreOffice however is required. Command `lowriter --headless --convert-to pdf wordfile.docx`. – Jorj McKie Mar 17 '23 at 13:26

0 Answers0