You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Claus Bech Rasmussen - TELMORE <cb...@telmore.dk> on 2004/10/04 17:25:11 UTC
Path for images in PDFs
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?
Re: Path for images in PDFs
Posted by Dave Brondsema <da...@brondsema.net>.
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