(No need to Cc to us, we are on the mailing list.)
Regarding the PNG not in PDF issue:
http://forrest.apache.org/faq.html#pdf_images
--David
Bhatia Praveen, HCLT-Japan wrote:
> David, Ross,
> I tested a little more with default forrest mapping of svg and found the
> following problems when I checked the pdf also:
> 1) if I make refernce as images/boxes.png
> RESULT: boxes.png DOES Appear in webpage html. However, DOESNT appear in pdf
> doc
> 2) for images/boxes.jpg
> RESULT: boxes.jpg DOSENT appear in BOTH
> 3) for images/boxes.jpeg
> RESULT: boxes.jpeg DOESNT appear in BOTH
>
> In short, boxes image appeared only as png in html pages and all other
> options it didnt appear. In pdf it didnt appear at all.
>
> Are there some other settings which are required here to make all the 3
> options work correctly? The errors seem to say that the final image file was
> not found so I feel it may not be passing through the pipeline for pdf (and
> perhaps for jpeg/jpg also ie not converting boxes.svg -> boxes.jpg through
> the pipeline). Any hints?
>
>
> Praveen
>
>
>
> -----Original Message-----
> From: Bhatia Praveen, HCLT-Japan
> To: 'David Crossley '; 'user@forrest.apache.org '
> Sent: 2004/12/05 14:41
> Subject: RE: Trouble with forrest's SVGSerializer from cocoon
>
> David and Ross,
> Thanks. It worked by deleting my snippet and letting the default
> mapping
> from the resource.xmap of forrest work on it as adviced by Ross.
> boxes.svg
> got displayed correctly.
>
> Thanks again
>
> Praveen
>
>
> -----Original Message-----
> From: David Crossley
> To: user@forrest.apache.org
> Sent: 2004/12/05 13:15
> Subject: Re: Trouble with forrest's SVGSerializer from cocoon
>
> Bhatia Praveen, HCLT-Japan wrote:
>
>>Ross:
>> Thats a good information. I will also try to use
>>FORREST_HOME/main/webapp/resources.xmap and see if it works.
>
>
> No. I think that you are not understanding.
> Ross was saying that Forrest does this svn2png
> automatically, You do not need a special project
> sitemap. The resources.xmap is part of main forrest.
>
> Everything should just work out-of-the box if you
> put files in xdocs/images/foo.svg and refer to the
> output documents as images/foo.png
>
>
>> Regarding the boxes.svg I have made it work in FOP, in batik,
>
> soddipodi
>
>>and Acrobats svg, so the format should be ok I believe.
>
>
> Did you see issue FOR-229
> http://issues.cocoondev.org/browse/FOR-229
> Some SVG files (but not all) need the DTD declaration
> to be commented-out.
>
> --David
>
>
>>Praveen
>>
>>There should be no need to create a project specific match to create
>>images from svg as Forrest already does this (see
>>FORREST_HOME/main/webapp/resources.xmap). Furthermore, this match will
>
>
>>prevent you serving any "images/*.png" files that are png sources - be
>
>
>>careful (the resources.xmap shows how to deal with this issue).
>>
>>However, given that you have created one, lets find your problem.
>
> Where
>
>>What is project.images-dir set to (if anything) in forrest.properties
>>and where is your boxes.svg file (I've not look at your SVG I trust it
>
>
>>is good, I'm no expert with that format).
>>
>>Ross
>>
>
>
|