Ooh didn't know about that. Shows I'm still very new to FOP and learning
all the while... This sounds much better than my idea to
programmatically extract the font to a temporary location which may be
disregarded...
Thanks.
-Mike
On 03/06/11 11:33, Theresa Jayne Forster wrote:
Are you just saying your Java App has to be able to access the font to
create the PDF based on data from the database or are you saying you have to
store the ttf file inside the database?
The former, just use<auto-detect/> in the fopconfig. With 1.0 it searches
the classpath (which includes your application Jar) to find fonts, and you
can also have external jar files containing the Fonts as well.
Auto-Detect and auto-embed feature
When the "auto-detect" flag is set in the configuration, FOP will
automatically search for fonts in the default paths for your operating
system.
FOP will also auto-detect fonts which are available in the classpath, if
they are described as "application/x-font" in the MANIFEST.MF file. For
example, if your .jar file contains font/myfont.ttf:
Manifest-Version: 1.0
Name: font/myfont.ttf
Content-Type: application/x-font
This feature allows you to create JAR files containing fonts. The JAR files
can be added to fop by providing them in the classpath, e.g. copying them
into the lib/ directory.
Kindest regards
Theresa Forster
Senior Software Developer
Michael Rubin
Developer
T: +44 20 8238 7400
F: +44 20 8238 7401
mru...@thunderhead.com
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us
immediately and then destroy it.
-----Original Message-----
From: Flipz-007 [mailto:flipz-...@seznam.cz]
Sent: 03 June 2011 10:04
To: fop-users@xmlgraphics.apache.org
Subject: FOP with embedded font running in Oracle 10g
Dear all,
I need to create Java application which will generate PDF report from given
data. This application needs to be run in Oracle DB 10g environment as a
stored procedure.
The main problem is that I don't know how to configure FOP to use my
specific font which is embedded in application jar as a resource. In
Internet there are many examples how to configure FOP if the font is located
on filesystem, but in my case I need to load the font into DB inside my java
archive.
I searched through the Internet but I didn't find any solution.
Could you give me any advice please?
Thank you very much.
Jiri
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org