Hello,
I'm new here because I've got a problem I can't resolve by myself.
I'm generating a PDF in Java using FOP. My PDF is generated perfectly -
without embedded fonts. This is my Java-Code and my userconfig.xml:
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
fopFactory.setStrictValidation(false);
//config-Datei für Font-Embedding einbinden
DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(new
File(baseDir,"userconfig.xml"));
fopFactory.setUserConfig(cfg);
fopFactory.setFontBaseURL(baseDir.getAbsolutePath()+"/");
foUserAgent.setBaseURL("file://"+baseDir.getAbsolutePath()+"/");
<fonts>
<auto-detect/>
//absolute_path is a correct path within my system
<font-triplet name="Arial Unicode MS" style="italic"
weight="normal"/>
<font-triplet name="Arial Unicode MS" style="normal"
weight="normal"/>
<font-triplet name="Arial Unicode MS" style="normal"
weight="bold"/>
</fonts>
I'm using FOOP 0.95 and I've tried with Java 1.4 and 1.6. I've also tried
with and without <font-base>-URL. No changes.
Pathes are correctly because I can run it from command line without any
problems, fonts will be embedded.
I'm working on Ubuntu, could that be a problem?
What else can it be? I've got no idea left, I've tried many things found in
the internet. Can you please help me?
Greetings,
Breanna
--
View this message in context:
http://www.nabble.com/Embed-Fonts-in-PDF-using-Java-tp26112969p26112969.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]