You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Jay Chiu <ja...@ureach.com> on 2003/09/24 03:44:47 UTC
Re: (Jay) RE: RE: Batik Extension/FOP problem
Glen,
The reason that the svg portion does not work in Batik Squiggle
is because of the namespace. The embedded svg needs "svg:"
prefix and probably "batik:" prefix for flowText elements.
Attached please find a svg file that works in squiggle. I tried
three different ways to embed it into a fo file. But all
failed.
Here are the fop result:
(1) embedding_flowtext.fo, with not svg:/batik: prefix
FOP output:
[INFO] 1.0dev
[WARNING] Unknown formatting object ^svg
[WARNING] Unknown formatting object ^title
[WARNING] Unknown formatting object ^g
[WARNING] Unknown formatting object ^text
Process terminated with exit code 0
(2) embedding_flowtext1.fo with svg: prefix, without batik:
prefix and embedding_flowtext2.txt with both svg: and batik:
prefix
FOP output:
[INFO] 1.0dev
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
[ERROR] findHyphenPoss: problem!
FOP program keeps print out this error. Never stop.
Can you please tell me how to embed the svg into the fo file?
Thanks a lot.
Jay
---- On Sun, 23 Sep 2003, Glen Mazza (grm7793@yahoo.com) wrote:
Jay,
I took your FO file and stripped out everything but
the SVG portion (i.e., everything within
<fo:instream-foreign-object>), and renamed the file
test.svg.
Next, I ran Batik's Squiggle SVG browser on this
test.svg--I got the same undesired result within
Squiggle--a yellow rectangle--as you got in the PDF
document. So the problem does not appear to be with
FOP--at least on this issue--but with either your SVG
or with Batik.
FOP uses Batik for SVG--if your SVG portion is not
working with Batik/Squiggle, it won't work with FOP.
Batik is another library, another team--I don't handle
it.
In this debugging, what I need next from you is an SVG
file using Batik extension elements that runs fine in
Squiggle, but when put within FOP
<fo:instream-foreign-object>, won't run. If you can
do that, then we can resume debugging within FOP. If
you *can't* get there--i.e., Squiggle isn't doing
anything with those extension elements--then you may
need to start directing some questions to the Batik
user list to find out what the problem is.
Thanks,
Glen
> Jay,
>
> I added in a new Batik extension element mapping in
> our main trunk code--this should help you. It is not
> perfect--I noticed a hyphenation warning during
> running your sample fo document; also I ran one of the
> samples in the Batik directory (I embedded gears.svg
> into an FO document)--it *appears* to work, but
> several issues may appear on our side or Batik's that
> we will need to fix.
>
> Please test it out--wait 6 hours for a nightly
> snapshot to appear (see our Download link on the main
> FOP page)--any problems you find, please add to
> Bugzilla, so we can get them fixed. (You'll find a
> "Bugs" link on the main FOP page.)
>
> Thanks,
> Glen
>
>
> --- Jay Chiu <ja...@ureach.com> wrote:
> > Attached please find a sample fo file with embedded
> > svg object.
> > You may also take a look at the batik samples,
> > xml-batik/samples/extensions/flow/flowtext.svg
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design
software
> http://sitebuilder.yahoo.com
>
>
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
Re: (Jay) RE: RE: Batik Extension/FOP problem
Posted by Thomas DeWeese <Th...@Kodak.com>.
Jay Chiu wrote:
> Glen,
>
> The reason that the svg portion does not work in Batik Squiggle
> is because of the namespace. The embedded svg needs "svg:"
> prefix and probably "batik:" prefix for flowText elements.
>
> Attached please find a svg file that works in squiggle. I tried
> three different ways to embed it into a fo file. But all
> failed.
The third example is the closest to being correct but you
didn't define the batik namespace prefix you need to add:
xmlns:batik="http://xml.apache.org/batik/ext"
On the 'svg' element where you define the 'svg', and 'xlink'
namespace prefixes.
Have you tried splitting up the 'averylongrunnonword...'?
This might be causing FOP problems since it isn't in it's dictionary.
>
> Here are the fop result:
> (1) embedding_flowtext.fo, with not svg:/batik: prefix
> FOP output:
> [INFO] 1.0dev
> [WARNING] Unknown formatting object ^svg
> [WARNING] Unknown formatting object ^title
> [WARNING] Unknown formatting object ^g
> [WARNING] Unknown formatting object ^text
> Process terminated with exit code 0
>
> (2) embedding_flowtext1.fo with svg: prefix, without batik:
> prefix and embedding_flowtext2.txt with both svg: and batik:
> prefix
> FOP output:
> [INFO] 1.0dev
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> FOP program keeps print out this error. Never stop.
>
> Can you please tell me how to embed the svg into the fo file?
>
> Thanks a lot.
>
> Jay
>
> ---- On Sun, 23 Sep 2003, Glen Mazza (grm7793@yahoo.com) wrote:
> Jay,
>
> I took your FO file and stripped out everything but
> the SVG portion (i.e., everything within
> <fo:instream-foreign-object>), and renamed the file
> test.svg.
>
> Next, I ran Batik's Squiggle SVG browser on this
> test.svg--I got the same undesired result within
> Squiggle--a yellow rectangle--as you got in the PDF
> document. So the problem does not appear to be with
> FOP--at least on this issue--but with either your SVG
> or with Batik.
>
> FOP uses Batik for SVG--if your SVG portion is not
> working with Batik/Squiggle, it won't work with FOP.
> Batik is another library, another team--I don't handle
> it.
>
> In this debugging, what I need next from you is an SVG
> file using Batik extension elements that runs fine in
> Squiggle, but when put within FOP
> <fo:instream-foreign-object>, won't run. If you can
> do that, then we can resume debugging within FOP. If
> you *can't* get there--i.e., Squiggle isn't doing
> anything with those extension elements--then you may
> need to start directing some questions to the Batik
> user list to find out what the problem is.
>
> Thanks,
> Glen
>
>
>>Jay,
>>
>>I added in a new Batik extension element mapping in
>>our main trunk code--this should help you. It is not
>>perfect--I noticed a hyphenation warning during
>>running your sample fo document; also I ran one of the
>>samples in the Batik directory (I embedded gears.svg
>>into an FO document)--it *appears* to work, but
>>several issues may appear on our side or Batik's that
>>we will need to fix.
>>
>>Please test it out--wait 6 hours for a nightly
>>snapshot to appear (see our Download link on the main
>>FOP page)--any problems you find, please add to
>>Bugzilla, so we can get them fixed. (You'll find a
>>"Bugs" link on the main FOP page.)
>>
>>Thanks,
>>Glen
>>
>>
>>--- Jay Chiu <ja...@ureach.com> wrote:
>>
>>>Attached please find a sample fo file with embedded
>>>svg object.
>>>You may also take a look at the batik samples,
>>>xml-batik/samples/extensions/flow/flowtext.svg
>>>
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>Yahoo! SiteBuilder - Free, easy-to-use web site design
>
> software
>
>>http://sitebuilder.yahoo.com
>>
>>
>
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
Re: (Jay) RE: RE: Batik Extension/FOP problem
Posted by Thomas DeWeese <Th...@Kodak.com>.
Jay Chiu wrote:
> Glen,
>
> The reason that the svg portion does not work in Batik Squiggle
> is because of the namespace. The embedded svg needs "svg:"
> prefix and probably "batik:" prefix for flowText elements.
>
> Attached please find a svg file that works in squiggle. I tried
> three different ways to embed it into a fo file. But all
> failed.
The third example is the closest to being correct but you
didn't define the batik namespace prefix you need to add:
xmlns:batik="http://xml.apache.org/batik/ext"
On the 'svg' element where you define the 'svg', and 'xlink'
namespace prefixes.
Have you tried splitting up the 'averylongrunnonword...'?
This might be causing FOP problems since it isn't in it's dictionary.
>
> Here are the fop result:
> (1) embedding_flowtext.fo, with not svg:/batik: prefix
> FOP output:
> [INFO] 1.0dev
> [WARNING] Unknown formatting object ^svg
> [WARNING] Unknown formatting object ^title
> [WARNING] Unknown formatting object ^g
> [WARNING] Unknown formatting object ^text
> Process terminated with exit code 0
>
> (2) embedding_flowtext1.fo with svg: prefix, without batik:
> prefix and embedding_flowtext2.txt with both svg: and batik:
> prefix
> FOP output:
> [INFO] 1.0dev
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> [ERROR] findHyphenPoss: problem!
> FOP program keeps print out this error. Never stop.
>
> Can you please tell me how to embed the svg into the fo file?
>
> Thanks a lot.
>
> Jay
>
> ---- On Sun, 23 Sep 2003, Glen Mazza (grm7793@yahoo.com) wrote:
> Jay,
>
> I took your FO file and stripped out everything but
> the SVG portion (i.e., everything within
> <fo:instream-foreign-object>), and renamed the file
> test.svg.
>
> Next, I ran Batik's Squiggle SVG browser on this
> test.svg--I got the same undesired result within
> Squiggle--a yellow rectangle--as you got in the PDF
> document. So the problem does not appear to be with
> FOP--at least on this issue--but with either your SVG
> or with Batik.
>
> FOP uses Batik for SVG--if your SVG portion is not
> working with Batik/Squiggle, it won't work with FOP.
> Batik is another library, another team--I don't handle
> it.
>
> In this debugging, what I need next from you is an SVG
> file using Batik extension elements that runs fine in
> Squiggle, but when put within FOP
> <fo:instream-foreign-object>, won't run. If you can
> do that, then we can resume debugging within FOP. If
> you *can't* get there--i.e., Squiggle isn't doing
> anything with those extension elements--then you may
> need to start directing some questions to the Batik
> user list to find out what the problem is.
>
> Thanks,
> Glen
>
>
>>Jay,
>>
>>I added in a new Batik extension element mapping in
>>our main trunk code--this should help you. It is not
>>perfect--I noticed a hyphenation warning during
>>running your sample fo document; also I ran one of the
>>samples in the Batik directory (I embedded gears.svg
>>into an FO document)--it *appears* to work, but
>>several issues may appear on our side or Batik's that
>>we will need to fix.
>>
>>Please test it out--wait 6 hours for a nightly
>>snapshot to appear (see our Download link on the main
>>FOP page)--any problems you find, please add to
>>Bugzilla, so we can get them fixed. (You'll find a
>>"Bugs" link on the main FOP page.)
>>
>>Thanks,
>>Glen
>>
>>
>>--- Jay Chiu <ja...@ureach.com> wrote:
>>
>>>Attached please find a sample fo file with embedded
>>>svg object.
>>>You may also take a look at the batik samples,
>>>xml-batik/samples/extensions/flow/flowtext.svg
>>>
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>Yahoo! SiteBuilder - Free, easy-to-use web site design
>
> software
>
>>http://sitebuilder.yahoo.com
>>
>>
>
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org