Namespace iTextSharp.text.html
Classes
- HtmlEncoder
This class converts a String to the HTML-format of a String. To convert the String , each character is examined: ASCII-characters from 000 till 031 are represented as &#xxx; (with xxx = the value of the character) ASCII-characters from 032 t/m 127 are represented by the character itself, except for: '\n' becomes <BR>\n " becomes " & becomes & < becomes <
becomes > ASCII-characters from 128 till 255 are represented as &#xxx; (with xxx = the value of the character) Example: String htmlPresentation = HtmlEncoder.Encode("Marie-Thérèse Sørensen"); for more info: see O'Reilly; "HTML: The Definitive Guide" (page 164) @author mario.maccarini@rug.ac.be
- HtmlParser
This class can be used to parse an XML file.
- HtmlPeer
This interface is implemented by the peer of all the iText objects.
- HtmlTagMap
The Tags -class maps several XHTML-tags to iText-objects.
- HtmlTags
A class that contains all the possible tagnames and their attributes.
- HtmlWriter
A DocWriter class for HTML. An HtmlWriter can be added as a DocListener to a certain Document by getting an instance. Every Element added to the original Document will be written to the Stream of this HtmlWriter . Example: // creation of the document with a certain size and certain margins Document document = new Document(PageSize.A4, 50, 50, 50, 50); try { // this will write HTML to the Standard Stream HtmlWriter.GetInstance(document, System.out); // this will write HTML to a file called text.html HtmlWriter.GetInstance(document, new FileOutputStream("text.html")); // this will write HTML to for instance the Stream of a HttpServletResponse-object HtmlWriter.GetInstance(document, response.GetOutputStream()); } catch (DocumentException de) { System.err.Println(de.GetMessage()); } // this will close the document and all the OutputStreams listening to it document.Close();
- Markup
A class that contains all the possible tagnames and their attributes.
- TextmyHtmlHandler
The Tags -class maps several XHTML-tags to iText-objects.
- WebColors
This class is a HashMap that contains the names of colors as a key and the corresponding Color as value. (Source: Wikipedia http://en.wikipedia.org/wiki/Web_colors ) @author blowagie