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 Don Berendsen <do...@hotmail.com> on 2003/01/02 12:43:59 UTC

Pattern fills are all solid black

Any pattern fill (e.g. see below) that I try always results in a solid black 
fill. I'm using FOP 2.0.4 with Batik version 1.5 beta2 and viewing the pdf 
with Acrobat. Can anyone provide me with some guidance or an example of a 
pattern fill that works with FOP pdf generation?

<fo:instream-foreign-object>
<svg:svg width="10cm" height="5cm" xml:space="preserve">
<svg:pattern id="sbBgPatt" preserveAspectRatio="xMidYMid meet" width="5" 
height="6" patternUnits="userSpaceOnUse" shape-rendering="optimizeSpeed">
<svg:rect x="0" y="0" width="5" height="3" fill="rgb(102,204,255)"/>
<svg:rect x="0" y="3" width="5" height="3" fill="rgb(102,204,255)"/>
</svg:pattern>
<svg:rect fill="url(#sbBgPatt)" height="150" width="150" x="100" y="100"/>
</svg:svg>
</fo:instream-foreign-object>

best wishes,

don


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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


RE: Pattern fills are all solid black

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "DB" == Don Berendsen <do...@hotmail.com> writes:

DB> Any pattern fill (e.g. see below) that I try always results in a
DB> solid black fill. I'm using FOP 2.0.4 with Batik version 1.5 beta2
DB> and viewing the pdf with Acrobat. Can anyone provide me with some
DB> guidance or an example of a pattern fill that works with FOP pdf
DB> generation?

    I think that the PDF Graphics2D does not deal properly with custom
paint objects as of yet.  This part is provided by the FOP toolkit, I
suggest you send this query to the FOP team (or cross post as this
does involve the two projects).

    I don't know the details of the PDF graphics implementation but I
would hope that this wouldn't be a huge problem to fix (the pattern
filled/stroked element would however need to be rasterized in all
likelihood).


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