The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Generating PDFs for Fun and Profit with Flying Saucer and iText
Subject:  problem rendering direct xml example
Date:  2007-07-10 06:59:36
From:  johnhaze1


if I open the xml it gets rendered correctly automatically
by IE.<br/>
As I try to run this example it fails to apply the css information to the output. instead it just shows the text in the produced pdf. Seems to be that it does not choose the custom css to render the xml. <br/>Also I debugged the NameSpaceHandler and the uri to the css etc is ok, as my last resort was to exactly reproduce the examples. <br/>In Contrast to that, the example with the xhtml and the inline css style information worked perfectly. Any help would be higly appreciated!! <br/>Thanks in advance: here is the logging info:<br/>
plumbing.render INFO:: Using CSS implementation from: org.xhtmlrenderer.context.StyleReference
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.general INFO:: System property org.xml.sax.driver not specified
<br/>plumbing.load WARNING:: falling back on the default parser
<br/>plumbing.load INFO:: SAX XMLReader in use (parser): org.apache.crimson.parser.XMLReaderImpl
<br/>plumbing.load INFO:: Loaded document in ~32ms
<br/>plumbing.load INFO:: TIME: parse stylesheets 109ms
<br/>plumbing.match INFO:: media = print
<br/>plumbing.match INFO:: Matcher created with 118 selectors

 Feed java.net RSS Feeds