Bug 53189 - Shapes drawn wrongly when ppt file converted to image
Summary: Shapes drawn wrongly when ppt file converted to image
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.8-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 09:34 UTC by Dmitry Zamula
Modified: 2015-11-14 02:50 UTC (History)
0 users



Attachments
Source ppt file (136.00 KB, application/vnd.ms-powerpoint)
2012-05-04 09:34 UTC, Dmitry Zamula
Details
result of converting (32.82 KB, image/png)
2012-05-04 09:34 UTC, Dmitry Zamula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Zamula 2012-05-04 09:34:19 UTC
Created attachment 28723 [details]
Source ppt file

There is some problems with shapes, when convering ppt to png.

public class Main {

    public static void main(String[] args) {
        String input[] = {"D:\\Test.ppt"};
        try {
            PPT2PNG.main(input);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
Comment 1 Dmitry Zamula 2012-05-04 09:34:47 UTC
Created attachment 28724 [details]
result of converting
Comment 2 Yegor Kozlov 2012-05-10 14:12:53 UTC
Does XSLF render the file OK ? 

Yegor
Comment 3 Andreas Beeker 2015-11-14 02:50:36 UTC
As of common sl the shapes were already correct rendered.
The rendering still lacks support for wmf pictures, hence they aren't 
displayed.
Apart of that, I've changed two issues as part of r1714290
- the default alignment of text is now top
- the old flipping code contained an unnecessary rotation, instead of it the 
code now traverses the parent group for flipping and supports text rotation, 
i.e. an additional rotation to the shape rotation