1. You don't have SVGs in your PDF, but JPEGs. Why are you using the svg2jpeg serializer instead of svgxml? FOP supports SVG in PDFs.
2. In the sitemap currently delivered with Cocoon a parameter is specified in the following way: <map:serializer mime-type="image/jpeg" name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer"> <parameter name="quality" type="float" value="0.9"/> </map:serializer> This should avoid the warning. Regards, Joerg Yogesh Mulwani wrote: > Hello > > We are using Cocoon-2.0.2 on Tomcat-3.3.1 in our application. > Our Application is a reporting tool which generates the PDF files > using XML - XSL transformation > We are also using SVG images embedded into the PDF files. > In the sitemap.xmap, we are specifying the pattern for tranformation as: > <map:match pattern="bar.svg"> > <map:generate src="working/Hermes.xml"/> > <map:transform src="working/barsvg.xsl"/> > <map:serialize type="svg2jpeg"/> > </map:match> > > We are facing some major problems in our PDF file which is generated > through cocoon. > The following are the problems we are facing: > > 1. The SVGs embedded in our PDF has a problem in the sharpness, > the pictures get distorted . > > 2. There is an error on the Tomcat console when the PDF gets > generated : > "ERROR: The JPEG quality has not been specified. Use the > default one: no compression" > How can we set the JPEG quality > > 3. We want that we can set the background of our PDF report so we > are specifying 'background-image' attribute in <fo:block> element but it > seems the cocoon2.0.2 does not support the 'backgorund-image' attribute. > Is there any solution to set the background image of the PDF. > > > Thanx > Yogesh > Uniqueware Software & Consultancy > India --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>