Bug 52600

Summary: line breaks differ from original ppt after ppt2png export
Product: POI Reporter: Peter B. <puk007>
Component: HSLFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: generated png
problematic ppt

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.