title: Convert docx file into PDF with Java
body: <p>I'am looking for some "stable" method to convert DOCX file from MS WORD into PDF. Since now I have used OpenOffice installed as listener but it often hangs. The problem is that we have situations when many users want to convert SXW,DOCX files into PDF at the same time. Is there some other possibility?  I tryed with examples from this site: <a href="https://angelozerr.wordpress.com/2012/12/06/how-to-convert-docxodt-to-pdfhtml-with-java/" rel="noreferrer">https://angelozerr.wordpress.com/2012/12/06/how-to-convert-docxodt-to-pdfhtml-with-java/</a> but the output result is not good (converted documents have errors and layout is quite modified).</p>
  
  <p>here is "source" docx document:
  <a href="https://i.stack.imgur.com/W0NS9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/W0NS9.jpg" alt="enter image description here"></a></p>
  
  <p>here is document converted with docx4j with some exception text inside document. Also the text in upper right corner is missing.</p>
  
  <p><a href="https://i.stack.imgur.com/wjxR2.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wjxR2.jpg" alt="enter image description here"></a></p>
  
  <p>this one is PDF created with OpenOffice as converter from docx to pdf. Some text is missing "upper right corner"</p>
  
  <p><a href="https://i.stack.imgur.com/D27tL.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/D27tL.jpg" alt="enter image description here"></a></p>
  
  <p>Is there some other option to convert docx into pdf with Java? </p>