Word to PDF converter problem with page break and auto fit tables

Which tool versions are you using?

SDK: v14.x.x
Platform: v24.x.x
Python: v3.x
Isolation mode: venv/docker

Current Behavior

When i convert to pdf using the pdf = convert_word_to_pdf(report.get_report_as_file) with a BytesIO generated by python-docx:

target_stream = BytesIO()
        self.document.save(target_stream)
        return target_stream

Certain components aren’t working well:

Expected Behavior

What i should get:

Context (optional, but preferred)

I normally don’t use the PDFView due to the conversion being pritty slow (download takes 0.3s, view takes 7 seconds), but with this small document wanted to give it a try.

Hi @Johan_Tuls ,

I have a suspicion that it may lie in the underlying service behind the function convert_word_to_pdf. We use the open source variant of Microsoft Word (LibreOffice) to do the conversion. You could therefore check whether the word file that you created, when opened in LibreOffice, gives a similar result as the PDFView.