You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by marco scotoni <ms...@gruppotrafomec.com> on 2002/10/30 11:10:30 UTC

Gradient in FO

Hi,

I read that someone use command of lineargradient or radialgradient in svg inside Fo to FO->PDF, and it goes...
it's that true?

 I try using 

<fo:instream-foreign-object> 
<svg width="8cm" height="4cm" viewBox="0 0 800 400" xmlns="http://www.w3.org/2000/svg" version="1.1"> 
<g> 
 <defs>
   <radialGradient id="MyGradient" gradientUnits="userSpaceOnUse" cx="400" cy="200" r="300" fx="400" fy="200">
       <stop offset="0%" stop-color="red" />
       <stop offset="50%" stop-color="blue" />
       <stop offset="100%" stop-color="red" /> 
</radialGradient> 
</defs> 
  <rect fill="none" stroke="blue" x="1" y="1" width="798" height="398"/>
  <rect fill="url(#MyGradient)" stroke="black" stroke-width="5" x="100" y="100" width="600" height="200"/>
  </g>
</svg> 
</fo:instream-foreign-object>

but it shows me only a blu rectangle. 

any suggest?

Re: Gradient in FO

Posted by "J.Pietschmann" <j3...@yahoo.de>.
marco scotoni wrote:
> That's problem seems to be solved in latest CVS FOP,
> it's possible make runnable CVS FOP with cocoon?

You are probably referring to FOP CVS HEAD, which is not
fully working currently. It could just for for your problems,
but watch out.

If you don't use the svg2jpeg and svg2png serializer, just drop
in the new fop.jar and batik-all.jar into the Cocoon lib
directory.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Gradient in FO

Posted by marco scotoni <ms...@gruppotrafomec.com>.
That's problem seems to be solved in latest CVS FOP,
it's possible make runnable CVS FOP with cocoon?
  ----- Original Message ----- 
  From: marco scotoni 
  To: Batik Users 
  Sent: Wednesday, October 30, 2002 11:16 AM
  Subject: Re: Gradient in FO


  Sorry i forgot to say that 
  I'm using Batik 1.5b4 e FOP 0.20.4 on Cocoon 2.0.3

Re: Gradient in FO

Posted by marco scotoni <ms...@gruppotrafomec.com>.
Sorry i forgot to say that 
I'm using Batik 1.5b4 e FOP 0.20.4 on Cocoon 2.0.3