You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Matthew L. Avizinis" <ml...@gleim.com> on 2002/04/12 03:39:00 UTC
SVG rendering in release 0.20.3
Hello all,
This used to work in version 0.20.2 and 0.20.3rc
<fo:instream-foreign-object>
<svg viewBox="0 0 {number(@width+1)*2.8346}
{number(@height+1)*2.8346}" xmlns="http://www.w3.org/2000/svg"
width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
xml:space="preserve">
<g style="fill:white; stroke:{$stroke}; stroke-width:{$border}">
<rect x="0" y="0" width="{concat(@width,'mm')}"
height="{concat(@height,'mm')}"/>
</g>
<image preserveAspectRatio="xMidYMid" xlink:href="file:{@src}"
x="0" y="0" width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"/>
</svg>
</fo:instream-foreign-object>
It doesn't now in the last 0.20.3. What happens is the box with the border
is drawn but the image is replaced by a broken svg picture. There are no
error messages. Is there some change between versions that I have to change
the above code or is there a change in classpaths or something else. I
don't see anything mentioned in the CHANGES file.
thanks in advance,
Matthew L. Avizinis <ma...@gleim.com>
Gleim Publications, Inc.
4201 NW 95th Blvd.
Gainesville, FL 32606
(352)-375-0772 ext. 101
www.gleim.com <http://www.gleim.com>
Re: Sending generated PDF directly to printer
Posted by Keiron Liddle <ke...@aftexsw.com>.
yes, on this page:
http://xml.apache.org/fop/output.html
On 2002.04.16 09:44 RAYMOND Romain wrote:
>
> Hello,
>
> is there examples or docs to send the result of an FOP transformation to
> a printer ?
>
>
> thanks.
>
Sending generated PDF directly to printer
Posted by RAYMOND Romain <ro...@c-s.fr>.
Hello,
is there examples or docs to send the result of an FOP transformation to
a printer ?
thanks.
RE: SVG rendering in release 0.20.3
Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
Then why would the image display correctly in the Batik viewer 1_1_1? And
why would it render correctly when I use the previous version of the
batik.jar instead of the current one? This is what is mysterious to me.....
Still wondering and trying,
matthew l. avizinis
> -----Original Message-----
> From: Keiron Liddle [mailto:keiron@aftexsw.com]
> Sent: Monday, April 15, 2002 3:05 AM
> To: fop-user@xml.apache.org
> Subject: Re: SVG rendering in release 0.20.3
>
>
>
> The examples in the docs/examples/svg/ directory work fine, so how is
> yours different? Do these examples work for you?
>
> I suspect the svg referenced in the image is invalid.
>
> On 2002.04.13 18:51 Matthew L. Avizinis wrote:
> > The <rect> renders fine. It's actually the <image> that actually causes
> > the
> > problem.
> > Here, I have used an svg that I knew worked previously. I have tried an
> > href URI that is relative and an absolute path, e.g.
> > D:\pictures\test.svg.
> > I have tried a URL, e.g.
> http://test.gleim.com/pictures/test.svg. I have
> > tried file:{@src}, file:/{@src}, file://{@src}, and file:///{@src}. I
> > believe I have tried every option I have ever seen suggested in
> this list
> > to
> > no avail.
Re: SVG rendering in release 0.20.3
Posted by Keiron Liddle <ke...@aftexsw.com>.
The examples in the docs/examples/svg/ directory work fine, so how is
yours different? Do these examples work for you?
I suspect the svg referenced in the image is invalid.
On 2002.04.13 18:51 Matthew L. Avizinis wrote:
> The <rect> renders fine. It's actually the <image> that actually causes
> the
> problem.
> Here, I have used an svg that I knew worked previously. I have tried an
> href URI that is relative and an absolute path, e.g.
> D:\pictures\test.svg.
> I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg. I have
> tried file:{@src}, file:/{@src}, file://{@src}, and file:///{@src}. I
> believe I have tried every option I have ever seen suggested in this list
> to
> no avail.
Re: SVG rendering in release 0.20.3
Posted by RAYMOND Romain <ro...@c-s.fr>.
hello,
same problem for me, it is okay with a .gif file but svg dos not render
...
or gives up a strange picture wich seems to indicate something like "
file not found ".
"Matthew L. Avizinis" a écrit :
>
> The <rect> renders fine. It's actually the <image> that actually causes the
> problem.
> Here, I have used an svg that I knew worked previously. I have tried an
> href URI that is relative and an absolute path, e.g. D:\pictures\test.svg.
> I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg. I have
> tried file:{@src}, file:/{@src}, file://{@src}, and file:///{@src}. I
> believe I have tried every option I have ever seen suggested in this list to
> no avail.
>
> > -----Original Message-----
> > From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> > Sent: Saturday, April 13, 2002 12:13 PM
> > To: fop-user@xml.apache.org
> > Subject: Re: SVG rendering in release 0.20.3
> >
> >
> > Matthew L. Avizinis wrote:
> > > It still doesn't work with the new batik.jar.
> > > Anything else to check?
> >
> > I was going to ask whether your SVG code renders ok
> > in the SVG browser, unfortunately, the SVG browser
> > packaged in the jar distributed with FOP 0.20.3 doesn't
> > run.
> > I got something similar to your code working in the
> > SVG browser from Batik-1.1rc, with some foo values
> > in place of the XPath expression from your XSL code
> > snipped.
> >
> > J.Pietschmann
RE: SVG rendering in release 0.20.3
Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
The <rect> renders fine. It's actually the <image> that actually causes the
problem.
Here, I have used an svg that I knew worked previously. I have tried an
href URI that is relative and an absolute path, e.g. D:\pictures\test.svg.
I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg. I have
tried file:{@src}, file:/{@src}, file://{@src}, and file:///{@src}. I
believe I have tried every option I have ever seen suggested in this list to
no avail.
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> Sent: Saturday, April 13, 2002 12:13 PM
> To: fop-user@xml.apache.org
> Subject: Re: SVG rendering in release 0.20.3
>
>
> Matthew L. Avizinis wrote:
> > It still doesn't work with the new batik.jar.
> > Anything else to check?
>
> I was going to ask whether your SVG code renders ok
> in the SVG browser, unfortunately, the SVG browser
> packaged in the jar distributed with FOP 0.20.3 doesn't
> run.
> I got something similar to your code working in the
> SVG browser from Batik-1.1rc, with some foo values
> in place of the XPath expression from your XSL code
> snipped.
>
> J.Pietschmann
Re: SVG rendering in release 0.20.3
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew L. Avizinis wrote:
> It still doesn't work with the new batik.jar.
> Anything else to check?
I was going to ask whether your SVG code renders ok
in the SVG browser, unfortunately, the SVG browser
packaged in the jar distributed with FOP 0.20.3 doesn't
run.
I got something similar to your code working in the
SVG browser from Batik-1.1rc, with some foo values
in place of the XPath expression from your XSL code
snipped.
J.Pietschmann
RE: SVG rendering in release 0.20.3
Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
I believe either of these would be in scope:
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0
{number(@width+1)*
or
<image xmlns:xlink="http://www.w3.org/1999/xlink" .
It still doesn't work with the new batik.jar.
Anything else to check?
thanks,
matthew l. avizinis
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> Sent: Saturday, April 13, 2002 8:48 AM
> To: fop-user@xml.apache.org
> Subject: Re: SVG rendering in release 0.20.3
>
>
> Matthew L. Avizinis wrote:
> > This used to work in version 0.20.2 and 0.20.3rc
> ...
> > <image preserveAspectRatio="xMidYMid"
> > xlink:href="file:{@src}"
> There ought to be a declaration for the xlink namespace
> somewhere? Check whether it is in scope.
>
> J.Pietschmann
>
>
>
>
Re: SVG rendering in release 0.20.3
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew L. Avizinis wrote:
> This used to work in version 0.20.2 and 0.20.3rc
...
> <image preserveAspectRatio="xMidYMid"
> xlink:href="file:{@src}"
There ought to be a declaration for the xlink namespace
somewhere? Check whether it is in scope.
J.Pietschmann
RE: SVG rendering in release 0.20.3
Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
Nope, but thanks for the suggestions.
Has to be something else.
I know nothing about the insides of Batik, but this is the cause of the
problem. I put the batik.jar from 0.20.2 in place of the current one, and
there you go, it works again.
> -----Original Message-----
> From: Keiron Liddle [mailto:keiron@aftexsw.com]
> Sent: Friday, April 12, 2002 2:41 AM
> To: fop-user@xml.apache.org
> Subject: Re: SVG rendering in release 0.20.3
>
>
>
> I suspect this is a base url problem.
> Are you embedding?, is the base directory set?
> Is your URL correct?
>
> On 2002.04.12 03:39 Matthew L. Avizinis wrote:
> > Hello all,
> >
> > This used to work in version 0.20.2 and 0.20.3rc
> >
> > <fo:instream-foreign-object>
> > <svg viewBox="0 0 {number(@width+1)*2.8346}
> > {number(@height+1)*2.8346}" xmlns="http://www.w3.org/2000/svg"
> > width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
> > xml:space="preserve">
> > <g style="fill:white; stroke:{$stroke};
> stroke-width:{$border}">
> > <rect x="0" y="0" width="{concat(@width,'mm')}"
> > height="{concat(@height,'mm')}"/>
> > </g>
> > <image preserveAspectRatio="xMidYMid" xlink:href="file:{@src}"
> > x="0" y="0" width="{concat(@width,'mm')}"
> > height="{concat(@height,'mm')}"/>
> > </svg>
> > </fo:instream-foreign-object>
> >
> > It doesn't now in the last 0.20.3. What happens is the box with the
> > border
> > is drawn but the image is replaced by a broken svg picture.
> There are no
> > error messages. Is there some change between versions that I have to
> > change
> > the above code or is there a change in classpaths or something else. I
> > don't see anything mentioned in the CHANGES file.
Re: SVG rendering in release 0.20.3
Posted by Keiron Liddle <ke...@aftexsw.com>.
I suspect this is a base url problem.
Are you embedding?, is the base directory set?
Is your URL correct?
On 2002.04.12 03:39 Matthew L. Avizinis wrote:
> Hello all,
>
> This used to work in version 0.20.2 and 0.20.3rc
>
> <fo:instream-foreign-object>
> <svg viewBox="0 0 {number(@width+1)*2.8346}
> {number(@height+1)*2.8346}" xmlns="http://www.w3.org/2000/svg"
> width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
> xml:space="preserve">
> <g style="fill:white; stroke:{$stroke}; stroke-width:{$border}">
> <rect x="0" y="0" width="{concat(@width,'mm')}"
> height="{concat(@height,'mm')}"/>
> </g>
> <image preserveAspectRatio="xMidYMid" xlink:href="file:{@src}"
> x="0" y="0" width="{concat(@width,'mm')}"
> height="{concat(@height,'mm')}"/>
> </svg>
> </fo:instream-foreign-object>
>
> It doesn't now in the last 0.20.3. What happens is the box with the
> border
> is drawn but the image is replaced by a broken svg picture. There are no
> error messages. Is there some change between versions that I have to
> change
> the above code or is there a change in classpaths or something else. I
> don't see anything mentioned in the CHANGES file.