|
Re: Howto get a Basefont without using explicit paths: msg#00125java.lib.itext.general
----- Original Message ----- From: "Thorsten Schäfer" <Newsletter@xxxxxxxxxxxxxxxxxxx> To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx> 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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Bit-Font in PDF, Paulo Soares |
|---|---|
| Next by Date: | Re: Non savable pdf, Leonard Rosenthol |
| Previous by Thread: | Howto get a Basefont without using explicit paths, Thorsten Schäfer |
| Next by Thread: | RE: Howto get a Basefont without using explicit paths, Thorsten Schäfer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |