Menu

Html to Pdf using XAMJ and iText

Help
2006-06-27
2013-04-29
  • Bruce Powell

    Bruce Powell - 2006-06-27

    I would like to (1) input html to the xamj html parser and (2) pick off the 'blocks' of html from the xamj dom tree in some way, and (3) input them to Itext using their pdf builder?  Can you point me to sample code to get going reading the html dom tree please?
    thanks
    Bruce

     
    • xamjadmin

      xamjadmin - 2006-06-27

      That seems non-trivial. Looks like you would need to traverse the HTML DOM and generate an iText PDF DOM (a completely different DOM) from it. However, I haven't found an alternative in Java. For an example of how to traverse the HTML DOM, you might check the BodyLayout.java file in the Cobra source code. Do keep us posted if you come up with a tool that does this.

       

Log in to post a comment.