2

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?

Ladlestein
  • 6,100
  • 2
  • 37
  • 49
plancys
  • 3,833
  • 2
  • 19
  • 26
  • How do you generate the PDFs ? Using the default Word Save as PDF or something else ? – edi9999 Aug 01 '13 at 13:22
  • I use **void convert( IContext context, Options options, OutputStream out )** from **fr.opensagres.xdocreport.document.IXDocReport** – plancys Aug 01 '13 at 13:24
  • Could you please tell us what a PDF saving in word does for a docx generated report ? – edi9999 Aug 01 '13 at 19:39
  • @edi9999 : I have two options in my app - Download .docx and .pdf. Implementation of download .pdf is almost the same like .doc but in last line of my service to .docx generation I have **report.process(context, output)** and **report.convert(context, options, output)** in PDF. **report** is **IXDocReport** object – plancys Aug 02 '13 at 16:02

2 Answers2

0

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.

Angelo
  • 2,027
  • 13
  • 17
0

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

plancys
  • 3,833
  • 2
  • 19
  • 26