Hi,
I am trying to convert Japanese HTML to PDF as follows,
1. Convert the HTML to X-HTML.
2. Run the java file to convert X-HTML to PDF.
This gives me an error as,
Insertion of illegal Element: 39
After doing some code walk through, I got the code where it is throwing the
error at SAXiTextHandler.java.
Probably there is no code to handle Graphic object in Phrase.java, the code
is throwing exception. This happens when the parser encounters <hr> tag.
The code from SAXiTextHandler.java is as follows,
if (ElementTags.HORIZONTALRULE.equals(name)) {
TextElementArray current;
Graphic hr = new Graphic();
hr.setHorizontalLine(1.0f, 100.0f);
try {
current = (TextElementArray) stack.pop();
current.add(hr); // This
line gives an error
stack.push(current);
}
catch(EmptyStackException ese) {
try {
document.add(hr);
}
catch(DocumentException de) {
throw new ExceptionConverter(de);
}
}
return;
}
Could anybody tell me how to overcome this?
Regards,
Ashutosh
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions