title: TextPath not rendered in PDF using Apache FOP
body: <p>I am using Apache FOP to generate PDFs, some pages require SVGs. For the most part, this works fine until I add the TextPath element. I am using this to get curved text. This SVG works in browsers but not in the PDF. Wikipedia shows Batik (the SVG renderer for Apache FOP) is compatible with TextPath: <a href="https://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Scalable_Vector_Graphics)" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Scalable_Vector_Graphics)</a>. But no luck.</p>
  
  <p>Any help on this would be appreciated. Note: I am intentionally trying to add text instead of a rasterized images as the text is being localized and injected in.</p>
  
  <p>Here is a sample of an svg which can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath</a>.</p>
  
  <pre><code>&lt;svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"&gt;
    &lt;path id="MyPath" fill="none" stroke="red"
          d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /&gt;
  
    &lt;text&gt;
      &lt;textPath href="#MyPath"&gt; &lt;!-- works if I remove this line --&gt;
        Quick brown fox jumps over the lazy dog.
      &lt;/textPath&gt; &lt;!-- and this line --&gt;
    &lt;/text&gt;
  
  &lt;/svg&gt;
  </code></pre>