logo       

Howto get a Basefont without using explicit paths: msg#00123

java.lib.itext.general

Subject: Howto get a Basefont without using explicit paths

Hi there,

I've written an application which writes PDF files using images and
truetype-fonts. Now I also want to use this application in a servlet
environment. There you've the problem, that you don't know the exact
path. For the images, I'm using a classloader, which returns me the
proper URL - the image only have to be in the classpath:
image =
Image.getInstance(PdfCreator.class.getResource("/organizer.wmf"));

The problem is, that you don't have a signature to retrieve a basefont
via a URL. Has anyone an idea, how to handle these circumstances withous
using different pathes for "normal" and servlet environment?

Thanks in advance,

Thorsten



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise