I'll have to take a closer look. I know there are still a few problems
left (I've been working in this area lately). The first step is to
create small test cases [1] to cover all the different possibilities.
Once we have that we can define the expectations and fix the problems.
That way we can also avoid regressions in the future.

Can you help with that?

[1] http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

On 31.08.2005 11:00:03 richardw wrote:
> 
> There seems to be a number of bugs concerning the positioning and
> cropping of external SVG images in Fop. In particular, any large
> SVG image gets cropped back to the 100x100 viewport defined in
> getViewportSize() in SVGUserAgent.java. This seems to fit with
> the problems reported against 0.20.5:
> 
>     http://issues.apache.org/bugzilla/show_bug.cgi?id=35797
> 
> I've tried removing this hard-coded limit:
> 
>     public Dimension2D getViewportSize() {
>         return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
>     }
> 
> This allows the image to be displayed in all its glory. However,
> with or without this fix, scaling the image by setting explicit heights
> in the fo file fails to scale the image. Also in both cases, text or
> images following directly on from the svg graphic do not flow properly
> or completely disappear. The example examples/fo/svg/external.fo seems
> similarly afflicted.
> 
> These problems seem to affect both the PDF renderer and the Java2D
> based renderers. I haven't checked the others yet. Both the following
> bugs seem to relate to these issues as well:
> 
>     http://issues.apache.org/bugzilla/show_bug.cgi?id=8463
>     http://issues.apache.org/bugzilla/show_bug.cgi?id=16672
> 
> Does anyone have any good ideas what's going wrong ? Or how to
> fix it ?
> 
> Richard



Jeremias Maerki

Reply via email to