title: Convert DOCX to PDF using POI trouble
body: <p>I just need convert my docx file to pdf, so I used poi, but as result I get this. Like on picture</p>
  
  <p><a href="https://i.stack.imgur.com/ynL63.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ynL63.png" alt="enter image description here"></a></p>
  
  <p>First I thinked that this trouble related with encoding, but when I set it, trouble not away.</p>
  
  <pre><code>InputStream is = new FileInputStream(input); // here I set way to .docx
  
  XWPFDocument document = new XWPFDocument(is);
  
  PdfOptions options = PdfOptions.create();  
  
  OutputStream out = new FileOutputStream(output); // here to .pdf
  
  PdfConverter.getInstance().convert(document, out, options);
  </code></pre>