Ver código fonte

FOP-2305: Poor resolution of PCL output in trunk vs. 1.1; fixed regression

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1570878 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_0
Luis Bernardo 10 anos atrás
pai
commit
6edf5c9f46

+ 6
- 0
src/java/org/apache/fop/cli/CommandLineOptions.java Ver arquivo

private boolean conserveMemoryPolicy = false; private boolean conserveMemoryPolicy = false;
/* true if a complex script features are enabled */ /* true if a complex script features are enabled */
private boolean useComplexScriptFeatures = true; private boolean useComplexScriptFeatures = true;
/* set to true if -dpi used in command line */
private boolean overrideTargetResolution = false;


private FopFactory factory; private FopFactory factory;
private FOUserAgent foUserAgent; private FOUserAgent foUserAgent;
"if you use '-dpi', you must specify a resolution (dots per inch)"); "if you use '-dpi', you must specify a resolution (dots per inch)");
} else { } else {
this.targetResolution = Integer.parseInt(args[i + 1]); this.targetResolution = Integer.parseInt(args[i + 1]);
this.overrideTargetResolution = true;
return 1; return 1;
} }
} }
try { try {
FopConfParser fopConfParser = new FopConfParser(userConfigFile, baseURI); FopConfParser fopConfParser = new FopConfParser(userConfigFile, baseURI);
fopFactoryBuilder = fopConfParser.getFopFactoryBuilder(); fopFactoryBuilder = fopConfParser.getFopFactoryBuilder();
if (this.overrideTargetResolution) {
fopFactoryBuilder.setTargetResolution(targetResolution);
}
} catch (SAXException e) { } catch (SAXException e) {
throw new FOPException(e); throw new FOPException(e);
} }

Carregando…
Cancelar
Salvar