title: FopFactory missing methods
body: <p>Recently I faced problem with PDF generation that some glyphs was represented with '#'. I made my own fop config file and tried this:</p>
  
  <pre><code>fopFactory.setUserConfig(new File("path/to/config.xml"));
  </code></pre>
  
  <p>But it seems like <code>fopFactory</code> doesn't have method <code>setUserConfig</code>.</p>
  
  <p>Also I tried this: </p>
  
  <pre><code>fopFactory.getFontManager().setFontBaseURL(fontBase);
  </code></pre>
  
  <p>But result is the same - <code>FontManager</code>doesn't have method <code>setFontBaseURL</code>.</p>
  
  <p>My maven dependency is:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.xmlgraphics&lt;/groupId&gt;
      &lt;artifactId&gt;fop&lt;/artifactId&gt;
      &lt;version&gt;2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Tried to add jar manually but that didn't change the thing.</p>
  
  <p>Found <a href="https://xmlgraphics.apache.org/fop/2.1/upgrading.html" rel="nofollow">here</a> how to use user configs but the struggle is that I need to use xsl template in constructor <code>newInstance()</code>. How is it possible to set both xsl (note: NOT XSL-FO!) and config?</p>
  
  <p>Here is my code fragment:</p>
  
  <pre><code>    // setup xml input source
      String xml = object.toXml();
      StreamSource xmlSource = new StreamSource(new ByteArrayInputStream(xml.getBytes("UTF-8")));
  
      // setup xsl stylesheet source
      File xslFile = new File(stylesheetPath);
      FileInputStream xslFileStream = new FileInputStream(xslFile);
      StreamSource xslSource = new StreamSource(xslFileStream);
  
      // get transformer
      TransformerFactory tfactory = TransformerFactory.newInstance();
      Transformer transformer = tfactory.newTransformer(xslSource);
  
      // setup FOP
      FopFactory fopFactory = FopFactory.newInstance(xslFile);
      FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
      foUserAgent.setProducer(this.getClass().getName());
      Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, pdfContent);
  
      // perform transformation 
      Result res = new SAXResult(fop.getDefaultHandler());
      transformer.transform(xmlSource, res);
  </code></pre>