title: XDocReport Java API: problem converting ODT to PDF
body: <p>Problem trying to convert a simple ODT to PDF, when a table is present in the ODT. The table does not appear and the characters appear scrambled across the document.</p>
  
  <p>XDocReport: <a href="https://github.com/opensagres/xdocreport" rel="nofollow noreferrer">https://github.com/opensagres/xdocreport</a></p>
  
  <p>The code:</p>
  
  <pre><code>  /**
     * https://github.com/opensagres/xdocreport/wiki
     */
    public OdtBuilder gravaPdf(File fileDest) throws Exception {
      File file = new File(fileName);
  
      if (!file.exists()) {
        throw new RuntimeException("Documento precisa ser gravado antes de exportar para PDF");
      }
  
      // 1) Create options ODT to PDF
      Options options = Options.getFrom(DocumentKind.ODT).to(ConverterTypeTo.PDF);
  
      // 2) Get the converter from the registry
      IConverter converter = ConverterRegistry.getRegistry().getConverter(options);
  
      InputStream in = new FileInputStream(file);
      OutputStream out = new FileOutputStream(fileDest);
  
      // 3) Convert ODT to PDF
      converter.convert(in, out, options);
  
      in.close();
      out.close();
  
      return this;
    }
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/fr.opensagres.xdocreport/xdocreport --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;fr.opensagres.xdocreport&lt;/groupId&gt;
      &lt;artifactId&gt;xdocreport&lt;/artifactId&gt;
      &lt;version&gt;2.0.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The ODT:</p>
  
  <p><a href="https://i.stack.imgur.com/oGq7T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oGq7T.png" alt="ODT"></a></p>
  
  <p>The resulting PDF:</p>
  
  <p><a href="https://i.stack.imgur.com/ieuDA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ieuDA.png" alt="PDF"></a></p>