Re: tao:from-pdf-converter
Posted by bazik on
URL: https://discuss.orbeon.com/tao-from-pdf-converter-tp3013785p3013909.html
yes. it works. thank.
but i have exception. what is wrong?
Exception:
ERROR [ProcessorService] Exception at line 44, column 47 of oxf:/apps/xforms-pdf/convert.xpl (reading processor output: name='data', id='converted')
java.lang.NullPointerException at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:107)
Input( view.xhtml from xforms-tidy example ):
<xforms:upload ref="." xxforms:size="40">
<xforms:filename ref="@filename"/>
<xforms:mediatype ref="@mediatype"/>
<xxforms:size ref="@size"/>
<xforms:setvalue ev:event="xforms-select" ref="@selected">true</xforms:setvalue>
</xforms:upload>
xpl file
<p:param name="instance" type="input"/>
<p:processor name="oxf:xslt">
<p:input name="data" href="#instance"/>
<p:input name="config">
<config xsl:version="2.0">
<url><xsl:value-of select="/*"/></url>
<content-type>text/html</content-type>
<force-content-type>true</force-content-type>
</config>
</p:input>
<p:output name="data" id="url-config"/>
</p:processor>
<p:processor name="oxf:url-generator">
<p:input name="config" href="#url-config"/>
<p:output name="data" id="pseudo-xhtml-data"/>
</p:processor>
<p:processor name="tao:from-pdf-converter">
<p:input name="config">
<config><action>bookmarks</action></config>
</p:input>
<p:input name="data" href="#pseudo-xhtml-data"/>
<p:output name="data" id="converted"/>
</p:processor>
<p:processor name="oxf:http-serializer">
<p:input name="config">
<config>
<header>
<name>Cache-Control</name>
<value>post-check=0, pre-check=0</value>
</header>
</config>
</p:input>
<p:input name="data" href="#converted"/>
</p:processor>
</p:config>