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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.