public class Regress extends Object
snapshot().
Regress regress = new Regress(sourceDir, outputDir, width); regress.snapshot();One the regress is done, you can use Zipper to pack it up:
new Zipper(outputDir, outputZip).zipDirectory();Regress will try to render all files in the source directory; a failure to render one file (e.g. if an exception is thrown) will not stop the rendering process. Files in the source directory with the following extensions are included: htm, html, xht, xhtml, and xml. You can also run this from the command line, passing in the source directory as argument 1, and the output file name as argument 2. The output is created in the standard temp directory in a subdirectory called "reference". The path to the output directory will be printed to the console when complete.
org.docx4j.org.xhtmlrenderer.test.Regress ./regress/input-html/ ./regress/output.zip
| Modifier and Type | Field and Description |
|---|---|
static List |
EXTENSIONS |
static String |
LAYOUT_SFX |
static String |
PNG_SFX |
static String |
RENDER_SFX |
| Constructor and Description |
|---|
Regress(File sourceDir,
File outputDir,
int width)
Initialize to read from sourceDir and generate files to outputDir, using width points to constrain layout.
|
public static final List EXTENSIONS
public static final String RENDER_SFX
public static final String LAYOUT_SFX
public static final String PNG_SFX
public void snapshot()
throws IOException
IOException - on reading contents or writing outputCopyright © 2011-2013. All Rights Reserved.