----- Original Message -----
From: "Thorsten Sch�fer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 11:34
Subject: [iText-questions] 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?
>
BaseFont will look for the file in the path you give but if it's not found
it tries the classpath.
Best Regards,
Paulo Soares
-------------------------------------------------------
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.
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions