Skip navigation links
Flying Saucer Project Release ${app.version}

Package org.xhtmlrenderer.simple

Includes those classes you need to render XHTML documents quickly, right out of the box, and with no special setup needed; start here! All the classes in this package are oriented towards ease-of-use.

See: Description

Package org.xhtmlrenderer.simple Description

Includes those classes you need to render XHTML documents quickly, right out of the box, and with no special setup needed; start here! All the classes in this package are oriented towards ease-of-use. You should be able to render documents on screen, convert them to image files and print them with almost no work at all. We'll document the most important classes here; see the individual class documents for details on how to use them in your programs.

All classes in this package are intended for ease-of-use, with no customization required. To render a document quickly, use XHTMLPanel--just instantiate the panel, add it to a scroll pane or FSScrollPane, and call XHTMLPanel.setDocument(Document). You can render from a Document, from a URL, from a file, and from an InputStream.

The Graphics2DRenderer allows you to render XHTML right to image files-- without displaying them onscreen at all. You can use any XHTML/XML/CSS combination and dump it straight to a JPEG, GIF, or other file format supported by the Java image APIs.

FSScrollPane is a JScrollPane with key bindings for scrolling through a document-- just as you would expect from a browsable XHTML document. Drop your XHTMLPanel in a FSScrollPane and your users can move up or down by line or page, and jump to the start or end of the document, just as they are used to.

XHTMLPrintable supports the AWT Printable interface, allowing you to print a document without rendering it onscreen first.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
Skip navigation links
Flying Saucer Project Release ${app.version}

Flying Saucer Project Home