Generate document from docx template with conversion to PDF - text overlaps each other

1.6k Views Asked by At

I have a strange problem. In my application I have couple .docx template. Genering .docx files works fine but when I convert those to .PDF text behave strange.

This is .docx file:

This is docx file

and .PDF file looks in that way: enter image description here

I using xdocreport library with .docx templates How to fix this?

2

There are 2 best solutions below

0
On BEST ANSWER

I change xdocreport version from 1.0.2 to l.0.0 and now it works.

2
On

Which version of XDocReport do you use? If you are using 1.0.3 (not-released), I have improved the line height of the text for PDF converter. Perhaps there are a bug? I suggest you to create a XDocReport issue by attaching your docx which causes the problem.