I change xdocreport version from 1.0.2 to l.0.0 and now it works.
Generate document from docx template with conversion to PDF - text overlaps each other
-
04-06-2022 - |
Pregunta
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:
and .PDF file looks in that way:
I using xdocreport library with .docx templates How to fix this?
Solución 3
Otros consejos
I have the exact problem. This issue does not appear to be resolved in the newest version. This has to be related to the structure of the generated document or the method of its generation. Has anyone worked out a solution? It seems that tabular data is not well rendered whereas plain text is.
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.