use of org.apache.fop.apps.EnvironmentProfile in project xwiki-platform by xwiki.
the class FOPXSLFORenderer method initialize.
@Override
public void initialize() throws InitializationException {
EnvironmentProfile environmentProfile = EnvironmentalProfileFactory.createDefault(new File(".").toURI(), this.resourceResolver);
FopFactoryBuilder builder = new FopFactoryBuilder(environmentProfile);
Configuration configuration = loadConfiguration();
if (configuration != null) {
builder.setConfiguration(configuration);
}
this.fopFactory = builder.build();
}
use of org.apache.fop.apps.EnvironmentProfile in project xwiki-platform by xwiki.
the class XHTML2FOTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
EnvironmentProfile environmentProfile = EnvironmentalProfileFactory.createDefault(new File(".").toURI(), ResourceResolverFactory.createDefaultResourceResolver());
FopFactoryBuilder builder = new FopFactoryBuilder(environmentProfile);
fopFactory = builder.build();
foUserAgent = fopFactory.newFOUserAgent();
transformerFactory = TransformerFactory.newInstance();
}
Aggregations