Bug 53195 - "Numbering" transforms to "bullets" after converting ppt file to png
Summary: "Numbering" transforms to "bullets" after converting ppt file to png
Status: RESOLVED WORKSFORME
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 12:47 UTC by Dmitry Zamula
Modified: 2015-11-09 00:54 UTC (History)
0 users



Attachments
source ppt file (119.00 KB, application/vnd.ms-powerpoint)
2012-05-04 12:47 UTC, Dmitry Zamula
Details
result of converting (16.68 KB, image/png)
2012-05-04 12:48 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 12:47:55 UTC
Created attachment 28733 [details]
source ppt file

I use PPT2PNG utility to convert ppt file to image. There is a bug with numbering. In result image, it draws as a bullets.

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 12:48:08 UTC
Created attachment 28734 [details]
result of converting
Comment 2 Yegor Kozlov 2012-05-10 14:12:05 UTC
Numbered lists are not yet supported and replaced with plain bullets.

The first step to fix it is to support numbered lists in the .ppt format reader. Current implementation does not read this info and renders simple bullets instead.  

The second step is to fix the renderer to make sense of this information. Note that the actual text is not saved in the format. PowerPoint decides what to show based on the chosen numbering scheme and index of a text block. For example, if the the numbering scheme is "roman upper-case paren-both", then the numbering for the first paragraph  will be (I), for the second paragraph - (II), etc. 


Yegor
Comment 3 Andreas Beeker 2015-11-09 00:54:20 UTC
I've added auto numbering some time back, although it still has some issues, 
with continued lists.
Apart of the ordered numbers, the hanging indent doesn't match, but this is a 
different issue.