On 20.02.2003 07:12:04 Raimo Manninen wrote:
> When I set strokeSVGText to false texts in svg images disappears.
> This happens with some pdf viewers and sometimes when printed.
> I tested this with fop-0.20.4  and  fop-0.20.5rc2.
> No problems when strokeSVGText is true but quality is then bad, as we
> know.

Is it? Most people simply forget that it doesn't look good because
anti-aliasing for graphics is disabled. Granted, not every PDF viewer
supports this, but anyway.

> Example SVG image:
> ----------
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
> "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd";
> >
> <svg xml:space="preserve" width="5.5in" height=".5in">
> <text style="fill:blue;" y="15"> "HELLO WORLD" </text>
> </svg>
> ----------

I'm no SVG specialist, but I would not use coordinates without units if
you haven't defined a viexbox on the "svg" element beforehand. Doing
what you do could lead to unpredictable results, I guess. Also, not
setting the font family and size may result in unpredictable results as
well.

> 
> and fo:
> ----------
> ...
> <fo:block break-before="page" font-size="12pt" line-height="12pt" >
> <fo:instream-foreign-object>
> <svg xmlns="http://www.w3.org/2000/svg"; width="200" height="200" >
> <g>
> <image x="0" y="0" width="200" height="200" xlink:href="file:hello.svg" />
> </g>
> </svg>
> </fo:instream-foreign-object>
> </fo:block>
> ...
> ---------

Why don't you use fo:external-graphics? That way, you wouldn't have to
build that SVG wrapper.

> Is this a known problem? I can't find explanation.

I've quickly run your example and did a diff between the two PDFs
generated. I can't explain that behaviour without further investigation
but I'd recommend you used viewboxes and see if this solves the problem.
If not, please file a new bug to buzilla if none is there already.
Please attach a small fully funtioning example to the error report
(attachment, not copy/paste, please).

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to