The CSSBox Manual gives a short overview of the basic usage of CSSBox for displaying the document and obtaining the information about the rendered page.
CSSBox API documentation is generated from the last snapshot.
Several examples are available in the distribution package:
ComputeStyles
– computes the effective style of each element and encodes it into the style attribute of this element. The modified HTML document is then saved to the output file.TextBoxes
– renders the document and prints the list of text boxes together with their positions on the page.SimpleBrowser
– Displays the document at the given URL.BoxBrowser
– Displays the document and the corresponding box tree in an interactive way.ImageRenderer
– Renders a document and stores the result to a bitmap or vector image (PNG and SVG images are supported currently). See an example of a PNG file or an SVG file (SVG must be supported by your browser or the appropriate plugin must be installed).See the doc/examples/README
file in the distribution package for information about running the examples.