forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brondsema <d...@brondsema.net>
Subject Re: Path for images in PDFs
Date Tue, 05 Oct 2004 00:46:36 GMT
Claus Bech Rasmussen - TELMORE wrote:
> Hi folks,
> 
> I'm running Forrest via Jetty and maybe I just don't understand how
> requests are mapped, but here's my scenario:
> 
> I have something like this in a document:
> 
>     <p><img alt="forrestGif" src="images/111-forrest.gif" /></p>
> 
> The HTML works like a charm, but the images is not included in the PDF
> version.
> 
> Now, if I just do this instead:
> 
>     <p><img alt="forrestGif" src="./images/111-forrest.gif" /></p>
> 
> Everything works fine. 
> 
> The document is sitting in a directory under xdocs and so is the
> "images" dir. I tried changing the properties so that the images dir was
> this local one - that fixed the PDF but broke the HTML.
> 
> Any hints?
> 

Any href of "images/..." maps to src/documentation/resources/images 
(this is used for images common to many pages).  PDF image inclusion is 
not very flexible so it choses to load images from the resources 
directory rather than a relative "images" directory.  HTML generation 
looks in both directories it seems.

-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal

Mime
View raw message