[Bug 63818] New: PPT to image bug

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63818] New: PPT to image bug

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

            Bug ID: 63818
           Summary: PPT to image bug
           Product: POI
           Version: 4.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

I tried converting ppt to image in HSLF.
I created a HSLFSlide,then initialized a Graphics2D object,When I call
HSLFSlide's draw(Graphics2D) method, appear NullPointerException,like this:
Exception in thread "main" java.lang.NullPointerException
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph.getBulletFont(HSLFTextParagraph.java:683)
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph$1.getBulletFont(HSLFTextParagraph.java:495)
        at
org.apache.poi.sl.draw.DrawTextParagraph.getBullet(DrawTextParagraph.java:354)
        at
org.apache.poi.sl.draw.DrawTextParagraph.draw(DrawTextParagraph.java:169)
        at
org.apache.poi.sl.draw.DrawTextShape.drawParagraphs(DrawTextShape.java:178)
        at
org.apache.poi.sl.draw.DrawTextShape.drawContent(DrawTextShape.java:127)
        at
org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:103)
        at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
        at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
        at org.apache.poi.hslf.usermodel.HSLFSlide.draw(HSLFSlide.java:474)

POI version is 4.1.0,but when i used POI version 3.15,this exception does not
exist

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63818] PPT to image bug

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

Andreas Beeker <[hidden email]> changed:

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

--- Comment #1 from Andreas Beeker <[hidden email]> ---
Please try the PPTX2PNG utility class to render your .ppt.
If it works, compare it's source code against yours.
If not, please upload your .ppt here.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63818] PPT to image bug

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

--- Comment #2 from 蒋勇兵 <[hidden email]> ---
I used PPTX2PNG utility class to render my .ppt,this problem still exists,I'm
sure this is a little bug due to carelessness.This is the console output:
Processing F:\公司制度\入职培训.ppt
Rendering slide 0
Rendering slide 1
Rendering slide 2
java.lang.NullPointerException
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph.getBulletFont(HSLFTextParagraph.java:683)
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph$1.getBulletFont(HSLFTextParagraph.java:495)
        at
org.apache.poi.sl.draw.DrawTextParagraph.getBullet(DrawTextParagraph.java:354)
        at
org.apache.poi.sl.draw.DrawTextParagraph.draw(DrawTextParagraph.java:169)
        at
org.apache.poi.sl.draw.DrawTextShape.drawParagraphs(DrawTextShape.java:178)
        at
org.apache.poi.sl.draw.DrawTextShape.drawContent(DrawTextShape.java:127)
        at
org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:103)
        at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
        at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
        at org.apache.poi.hslf.usermodel.HSLFSlide.draw(HSLFSlide.java:474)
        at org.apache.poi.xslf.util.PPTX2PNG.main(PPTX2PNG.java:154)
        at cn.iter.market.poi.PPTToHtml.main(PPTToHtml.java:257)

Because the PPT is too large, I can't upload it. This is the link
https://github.com/jiangyongbing24/poi/raw/master/images/%E5%85%A5%E8%81%8C%E5%9F%B9%E8%AE%AD.ppt.
If you download it, I will delete it immediately.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63818] PPT to image bug

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

--- Comment #3 from 蒋勇兵 <[hidden email]> ---
(In reply to Andreas Beeker from comment #1)
> Please try the PPTX2PNG utility class to render your .ppt.
> If it works, compare it's source code against yours.
> If not, please upload your .ppt here.

I used PPTX2PNG utility class to render my .ppt,this problem still exists,I'm
sure this is a little bug due to carelessness.This is the console output:
Processing F:\公司制度\入职培训.ppt
Rendering slide 0
Rendering slide 1
Rendering slide 2
java.lang.NullPointerException
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph.getBulletFont(HSLFTextParagraph.java:683)
        at
org.apache.poi.hslf.usermodel.HSLFTextParagraph$1.getBulletFont(HSLFTextParagraph.java:495)
        at
org.apache.poi.sl.draw.DrawTextParagraph.getBullet(DrawTextParagraph.java:354)
        at
org.apache.poi.sl.draw.DrawTextParagraph.draw(DrawTextParagraph.java:169)
        at
org.apache.poi.sl.draw.DrawTextShape.drawParagraphs(DrawTextShape.java:178)
        at
org.apache.poi.sl.draw.DrawTextShape.drawContent(DrawTextShape.java:127)
        at
org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:103)
        at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
        at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
        at org.apache.poi.hslf.usermodel.HSLFSlide.draw(HSLFSlide.java:474)
        at org.apache.poi.xslf.util.PPTX2PNG.main(PPTX2PNG.java:154)
        at cn.iter.market.poi.PPTToHtml.main(PPTToHtml.java:257)

Because the PPT is too large, I can't upload it. This is the link
https://github.com/jiangyongbing24/poi/raw/master/images/%E5%85%A5%E8%81%8C%E5%9F%B9%E8%AE%AD.ppt.
If you download it, I will delete it immediately.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63818] Allow multiple charsets for same font typeface

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

Andreas Beeker <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|PPT to image bug            |Allow multiple charsets for
                   |                            |same font typeface

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63818] Allow multiple charsets for same font typeface

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63818

Andreas Beeker <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Andreas Beeker <[hidden email]> ---
The test file contained multiple WingDings font entries with the same name but
with different charsets. This is now handled.
Furthermore I've fixed an endless recursion in determining text properties.
Carelessly ;) applied via r1868358

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]