xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien RUFFIE <a.ruf...@e-deal.com>
Subject FOP + transformer blocking process
Date Fri, 26 Jul 2013 14:24:33 GMT
Hello all,

I have a problem with transform I have the WordML model with a size of 1245ko (in attachment)
and I tried to convert it into pdf thank to FOP apache library.
FOP work correctly, but when I try to convert the result with transformer, it blocks when
generating and blocks indefinitely ... below my code:

            String xslPath = dgbDir + "/xsl/Word2FO.xsl";
            Source xsltSrc = new StreamSource(new File(xslPath));
            Transformer transformer = tFactory.newTransformer(xsltSrc);

            // through to FOP
            Result saxres = new SAXResult(fop.getDefaultHandler());

            // Setup input
            byte[] tabByte = wordStr.getBytes("UTF-8");
            ByteArrayInputStream bais = new ByteArrayInputStream(tabByte);
            Source src = new StreamSource(bais);

            // Start the transformation and rendering process
            transformer.transform(src, saxres);

            rtrn = out.toByteArray();


Do you know this problem, a work around exist ? How I can avoid this blocking process ...
?

The last debug log trace I have is:
DEBUG org.apache.fop.fo.FOTreeBuilder  - Building formatting object tree


Thank you and best regards.

Adrien


Mime
View raw message