Apache FOP Compatibility
Joined: 06 Aug 2008
Topic: Apache FOP Compatibility
Posted: 19 Jul 2010 at 11:22am
I'm using FOP programmatically. How do I set relaxed validation then?
To use FOP programmatically you will be creating a FopFactory object. Let's say you're using the following code:
FopFactory fopFactory = FopFactory.newInstance();
After it, simply write:
Then, when you create your FOUserAgent object, it will have less-strict (relaxed) validation enabled.
Joined: 19 May 2008
|Post Options Quote Reply Posted: 22 Dec 2009 at 6:04pm|
Can i use the Apache FOP to convert a .fo file from your software to a PDF?
Currently I am locked with this system but I would like to use XF Designer to create the FO file.
Yes; you can even configure XF Designer to run FOP when generating PDF. Just click the File Button, then go to Options/Rendering Engine.
When specifying the command line, you will also need to use the -r flag (for 'relaxed/less strict validation').
For best results you should also enable the FOPCleaner Plug-In (Options/Plugins) which remove all attributes not supported by FOP and performs additional checks.
Also, see the FOP compatibility page to know in advance what's supported and what's not: http://xmlgraphics.apache.org/fop/compliance.html
Edited by florinv - 06 Apr 2011 at 3:48pm
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum