Browse Source

fixes a problem relating to rendering options for xml renderer


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194264 13f79535-47bb-0310-9956-ffa450edef68
tags/PRE_CODEFORMATTING
Keiron Liddle 23 years ago
parent
commit
c2230b00a9
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      src/org/apache/fop/tools/TestConverter.java

+ 14
- 0
src/org/apache/fop/tools/TestConverter.java View File

@@ -37,6 +37,16 @@ public class TestConverter {
String baseDir = "./";
Hashtable differ = new Hashtable();

/**
* This main method can be used to run the test converter from
* the command line.
* This will take a specified testsuite xml and process all
* tests in it.
* The command line options are:
* -b to set the base directory for where the testsuite and associated files are
* -failOnly to process only the tests which are specified as fail in the test results
* -pdf to output the result as pdf
*/
public static void main(String[] args) {
if (args == null || args.length == 0) {
System.out.println("test suite file name required");
@@ -195,6 +205,10 @@ public class TestConverter {
driver.setRenderer(Driver.RENDER_XML);
}

Hashtable rendererOptions = new Hashtable();
rendererOptions.put("fineDetail", new Boolean(false));
driver.getRenderer().setOptions(rendererOptions);

driver.buildFOTree(parser, inputHandler.getInputSource());
driver.format();
String outname = xmlFile.getName();

Loading…
Cancel
Save