You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/12/07 07:16:03 UTC

DO NOT REPLY [Bug 52297] New: Bullets are not aligned properly while converting ppt slide to image

https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

             Bug #: 52297
           Summary: Bullets are not aligned properly while converting ppt
                    slide to image
           Product: POI
           Version: 3.8-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: aki2885@gmail.com
    Classification: Unclassified


Created attachment 28046
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28046
bullets overlap the text in slide image

I tried converting ppt to image in HSLF.
It worked fine ,except the formatting of bullets .

Bullets overlap's the text without any indent or spacing.

Attached the screenshots for the same.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> 2012-02-27 09:00:48 UTC ---
 I'm testing with simple bullet lists created in PowerPoint 2010 and all bullet
offsets are correct. Please attach the problematic ppt file.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

Jared <da...@saic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daviesja@saic.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

--- Comment #1 from akilg <ak...@gmail.com> 2011-12-07 06:20:26 UTC ---
Created attachment 28047
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28047
orginal slide image

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

--- Comment #2 from akilg <ak...@gmail.com> 2011-12-07 06:21:11 UTC ---
I am Using the latest POI 3.8 beta 4 version

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

--- Comment #6 from Jared <da...@saic.com> ---
TextPainter.java, line ~143, added nested if inside of _bullet nullcheck.  This
fixes the text/bullet offset issues in the presentation, still working out the
vertical spacing fix.

if(elem[i]._bullet != null){
    graphics.drawString(elem[i]._bullet.getIterator(), (float)(pen.x +
elem[i]._bulletOffset), (float)pen.y);
    if (elem[i]._textOffset < elem[i]._bulletOffset) 
        elem[i]._textOffset+= elem[i]._bulletOffset+5;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

Jared <da...@saic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #5 from Jared <da...@saic.com> ---
In looking at the failing PPT, this appears to be the failure in
TextPainter.java:

elem[i]._bulletOffset > elem[i]._textOffset

Might change: 
if(elem[i]._bullet != null){
  graphics.drawString(elem[i]._bullet.getIterator(), (float)(pen.x +
elem[i]._bulletOffset), (float)pen.y);
}

To:
if(elem[i]._bullet != null){
  graphics.drawString(elem[i]._bullet.getIterator(), (float)(pen.x +
elem[i]._bulletOffset), (float)pen.y);
  if (elem[i]._bulletOffset >= elem[i]._textOffset) {
    elem[i]._textOffset+= elem[i]._bulletOffset;
  }
}

I will try this out locally.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 52297] Bullets are not aligned properly while converting ppt slide to image

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297

--- Comment #4 from Jared <da...@saic.com> ---
Created attachment 29597
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29597&action=edit
Here is a similar ppt file producing the same rendering artifacts

I added some lines to the 2nd page to show where the text should line up

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org