https://bz.apache.org/bugzilla/show_bug.cgi?id=65501

--- Comment #5 from Andreas Beeker <[email protected]> ---
Created attachment 37982
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37982&action=edit
use viewbox instead of base box

The images were displaced as the svg image renderer used the bounding box of
the svg child elements instead of the viewbox - the patch fixes this.

Btw. this is not happening if only the fallback png images are used, but then
the render quality wouldn't be as good. I thought about adding yet another
rendering hint to only use the fallback images, but for the usual svg images
the current approach should be ok.

I haven't done any mass tests with our test corpus, to find out if the viewbox
method is having good results generally.

WRT the poor rendering: I've used the PPTX2PNG utility class [1] with a -scale
1800 and -fixSide long argument - looks good to me.
So check the example [1] and add scaling to your (stackoverflow) rendering.

[1] http://poi.apache.org/components/slideshow/ppt-wmf-emf-renderer.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to