hydralix / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

Fop configuration #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because FOP generates PDF with too big images, I need to change the source 
resolution found in fop.xconf.

I look at this plugin code and I do not find a call to
fopFactory.setSourceResolution(dpi)
However a call to setUserConfig is done in AbstractPdfMojo but the config is in 
the fonts.stg in the classpath and cannot be changed.

So can you allow to specify a fop.xconf file or add a parameter for each 
variable in this file.

If you know a workaround to modify the source resolution I'm interested too.

Original issue reported on code.google.com by gael.lal...@gmail.com on 6 Oct 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Hi,

true, currently the fop configuration file is generated (for ease of font 
support). I think I will modify as the following:
- add the most used fop configuration parameters as mojo parameters
- add a mojo parameter to declare an external fop configuration file. It will 
be an 'exclusive or' between the external file and the other parameters. 
Everything will have to be defined in the fop conf even fonts, no use of 
StringTemplate in this case.

Feel free to comment if you have another idea.

Regards,
Cedric,

Original comment by MimilO...@gmail.com on 18 Oct 2010 at 9:22

GoogleCodeExporter commented 9 years ago
I don't see much common configuration parameters, I think I will just add 
source/target-resolution and externalFOPConfiguration pointing to an external 
file.

Original comment by MimilO...@gmail.com on 18 Oct 2010 at 8:40

GoogleCodeExporter commented 9 years ago
Agree with you. Thanks for your work.

Original comment by gael.lal...@gmail.com on 18 Oct 2010 at 9:22

GoogleCodeExporter commented 9 years ago
done in svn r176

Original comment by MimilO...@gmail.com on 19 Oct 2010 at 9:49