Bug 52600 - line breaks differ from original ppt after ppt2png export
Summary: line breaks differ from original ppt after ppt2png export
Status: RESOLVED WONTFIX
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 07:00 UTC by Peter B.
Modified: 2012-02-06 06:57 UTC (History)
0 users



Attachments
generated png (13.32 KB, image/png)
2012-02-04 07:00 UTC, Peter B.
Details
problematic ppt (34.00 KB, application/vnd.ms-powerpoint)
2012-02-04 07:01 UTC, Peter B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter B. 2012-02-04 07:00:54 UTC
Created attachment 28268 [details]
generated png

POI Version: 3.8-beta5

Whenever I run sample code: "Export PowerPoint slides into java.awt.Graphics2D"
found on: http://poi.apache.org/slideshow/how-to-shapes.html

line breaks in text box differ in png (see attachment) compated to original ppt (see attachment), (line breaks are present after other words than in original ppt)
Comment 1 Peter B. 2012-02-04 07:01:26 UTC
Created attachment 28269 [details]
problematic ppt
Comment 2 Yegor Kozlov 2012-02-06 06:57:38 UTC
HSLF breaks text using java.awt.font.LineBreakMeasurer and PowerPoint uses its own breaking algorithm which can produce slightly different results. 

Yegor