Hello FOP World,
I have downloaded this day the last fop trunk for tests.
Here are the results :
1/ If the configuration file contains registered fonts for pdf output like
these (for example):
<renderer mime="application/pdf">
<fonts>
<font-triplet name="Times" style="normal" weight="bold"/>
<font-triplet name="TimesMT" style="normal" weight="bold"/>
...
When I launch a pdf transformation, I obtain:
[WARN] FontCache - I/O exception while reading font cache (writing aborted;
java.io.NotSerializableException: java.lang.Object). Discarding font cache
file.
[WARN] FOP - The option quiet can only be used
[WARN] FOP - with FOP's command line logger,
[WARN] FOP - which is the default on the command line.
[WARN] FOP - Configure other loggers using Java system properties.
[WARN] FOP - The option debug can only be used
[WARN] FOP - with FOP's command line logger,
[WARN] FOP - which is the default on the command line.
[WARN] FOP - Configure other loggers using Java system properties.
[INFO] FOP - Input mode:
[INFO] FOP - FO
[INFO] FOP - fo input file:
/home/hugues/DocBook/sortie/PDF/guide-reference/guide-reference.xml.fo
[INFO] FOP - Output mode:
[INFO] FOP - application/pdf
[INFO] FOP - output file:
/home/hugues/DocBook/sortie/PDF/guide-reference/guide-reference.xml.pdf
[INFO] FOP - OPTIONS
[INFO] FOP - user configuration file: /home/hugues/.GDeLTK/userconfig.xml
[INFO] FopFactoryConfigurator - Default page-height set to: 29.7cm
[INFO] FopFactoryConfigurator - Default page-width set to: 21cm
[ERROR] FOP - Exception <java.io.NotSerializableException:
java.lang.Object>java.io.NotSerializableException: java.lang.Object
at org.apache.fop.util.LogUtil.handleException(LogUtil.java:53)
at org.apache.fop.fonts.FontCache.saveTo(FontCache.java:187)
at org.apache.fop.fonts.FontCache.save(FontCache.java:163)
at
org.apache.fop.render.PrintRendererConfigurator.configure(PrintRendererConfigurator.java:105)
at
org.apache.fop.render.pdf.PDFRendererConfigurator.configure(PDFRendererConfigurator.java:72)
at
org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:187)
at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:69)
at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:127)
at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)
at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:224)
at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:100)
at org.apache.fop.apps.Fop.<init>(Fop.java:78)
at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:248)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:104)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)
But, it works fine when the fop configuration file does not contain any
registered font.
However, when I test pdf transformation with FOP 0.95 which uses a fop
configuration file which contains registered fonts, it also works fine.
2/ If I launch a pdf transformation with -v option in command line:
[EMAIL PROTECTED]:/media/echanges/GDeL/fop-trunk$ ./fop -v -fo test.fo -pdf
test.pdf
FOP Version svn-trunk
fop version is returned but the transformation does not start.
HTH
Best regards
--
Hugues Leonardi
--
View this message in context:
http://www.nabble.com/-FOP-Trunk--Bugs-with-register-fonts-in-fop-configuration-file-or-using--v-option-tp20567039p20567039.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]