xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szeak (Register Man)" <szea...@gmail.com>
Subject Re: Error trying to create PDF with accessibility
Date Wed, 08 Nov 2017 13:11:56 GMT
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Esteban,<br>
      <br>
      It seems like an XML parsing error. Have you checked your FO file
      is well-formed? (Rename extension to XML and Open it in a browser
      ie: firefox or chrome)<br>
      <br>
      By, Szeak<br>
      <br>
      2017-11-08 00:13 keltezéssel, Esteban R írta:<br>
    </div>
    <blockquote type="cite"
cite="mid:SN1PR10MB0927393213DFBBA1572B9CB68E510@SN1PR10MB0927.namprd10.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;}
--></style>
      <div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;
        color: rgb(0, 0, 0); font-family: Calibri, Helvetica,
        sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;,
        &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI
        Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
        <p>Hello I'm working in a quite complex java (<span>1.8.0_112) </span>project,
          using apache-fop 2.2. Windows 10 OS.</p>
        <p><br>
        </p>
        <p>It seems that the &lt;accessibility&gt; tag is ignored in the
          xconf file so I had to enable it programatically.
        </p>
        <p><br>
        </p>
        <p>After that, I get the following exception when rendering pdf
          with accessibility enabled:</p>
        <div><br>
        </div>
        <div>java.lang.NullPointerException</div>
        <div>        at
          org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:422)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1236)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:701)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)</div>
        <div>        at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)</div>
        <div>        at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)</div>
        <div>        at
          org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)</div>
        <div>        at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)</div>
        <div>        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)</div>
        <div>        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)</div>
        <div>        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)</div>
        <div>        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)</div>
        <div>        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)</div>
        <div>        at
          org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)</div>
        <div>        at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)</div>
        <div>        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)</div>
        <div>        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)</div>
        <div>        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)</div>
        <div>       ... (my classes)</div>
        <div>nov 07, 2017 7:54:38 PM org.apache.fop.fo.FOTreeBuilder
          fatalError</div>
        <div>GRAVE: org.xml.sax.SAXParseException; systemId:
          <a class="moz-txt-link-freetext" href="file:///C:/Users/complete_file_name.fo">file:///C:/Users/complete_file_name.fo</a>;
lineNumber: 160;
          columnNumber: 82; java.lang.NullPointerException</div>
        <div><br>
        </div>
        The above-mentioned line 160 is:
        <p><span>      &lt;fo:page-sequence master-reference="onlySeq"
            language="fr-FR" country="fr"&gt;</span><br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <p>Maybe I'm missing something? I may try to create a full
          example if needed.</p>
        <p><br>
        </p>
        <p>Esteban</p>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message