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 2015/03/27 12:59:52 UTC

[Bug 57766] New: XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

https://bz.apache.org/bugzilla/show_bug.cgi?id=57766

            Bug ID: 57766
           Summary: XSLFTable isn't exported on convert slides of a .pptx
                    slide show to a PNG/SVG image
           Product: POI
           Version: 3.11-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: 23589828@qq.com

Created attachment 32612
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32612&action=edit
original report

I'm trying to convert slides of a .pptx slide show to a PNG image.

it works fine until there are table on pptx.

As the result, other parts are exported correctly, while the table is not shown
in the result of png/svg.

I have attached the original report and the result. 

My code is according 
https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
and
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PPTX2SVG.txt.

Anyone can help?

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

Wu Huajie <23...@qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |23589828@qq.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


[Bug 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 OS|Linux                       |All
         Resolution|---                         |FIXED
           Hardware|PC                          |All

--- Comment #9 from Andreas Beeker <ki...@apache.org> ---
Implemented via r1746856
Of course there are still a lot of tables, which aren't rendered correctly, but 
it should be ok for the usual suspects ...

Regarding the table creation - the example [1] worked for me.
I had to fix a regression introduced via r1745100 and fixed by r1746858
The table handling you've mentioned is also tested via [2]
Maybe you need to use the complete ooxml-schema.jar, i.e. I haven't tested it 
in a standalone app.

Andi

[1] 
https://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java
[2] 
https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #2 from Wu Huajie <23...@qq.com> ---
Created attachment 32614
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32614&action=edit
the result of png

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #4 from Wu Huajie <23...@qq.com> ---
May i know the approximate time to implement this feature?

Table is popular part in a PPTX.  Otherwise, i need to search other solutions.

Thanks a lot.

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #1 from Wu Huajie <23...@qq.com> ---
Created attachment 32613
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32613&action=edit
the result svg

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #7 from Wu Huajie <23...@qq.com> ---
(In reply to Andreas Beeker from comment #5)
> > May i know the approximate time to implement this feature?
> I guess it won't be finished within the next 2 month and even after
> finishing my current work, I don't know if this will be the first item on my
> todo list.
> 
> > Table is popular part in a PPTX.
> yeah, that's what I think also about a feature XY, and then after I've
> patched/implemented it, nobody uses it :)
> 
> > Otherwise, i need to search other solutions.
> Your best bet is to implement it yourself, and please upload the patch here
> - I'm thankfully adapting your code to the new rendering classes then.
> Otherwise maybe check aspose.slides if this feature was implemented there.


As your experience, how many days would it take for me, if you guide me,  to
implement this feature: export table to png?

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #8 from mark.o <Ma...@gmx.net> ---
(In reply to Andreas Beeker from comment #3)
> Table drawing is currently not implemented.

> I'm currently rewriting the
> drawing part (see common_sl snapshot), but it still will take some time
> until this is finished and then I put this feature on my todo list.

(off-topic or maybe related, or maybe needs to be asked elsewhere?)

Does the creation of a XSLFTable actually work?
I used the XSLSSlide.createTable followed by
  -> addRow  (+ setHeight)
  -> addCell
  -> addNewTextParagraph
  -> addNewTextRun -> setText
as well as the table setColumnWidth()

In the generated PPTX, only the table itself comes through without any content
(no rows, no cells).
Unzipping the content shows the same - no content.

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

Jenson <je...@live.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jenson_zhang@live.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


[Bug 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #3 from Andreas Beeker <ki...@apache.org> ---
Table drawing is currently not implemented.

I'm currently rewriting the drawing part (see common_sl snapshot), but it still
will take some time until this is finished and then I put this feature on my
todo list.

Andi

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #6 from Wu Huajie <23...@qq.com> ---
(In reply to Andreas Beeker from comment #5)
> > May i know the approximate time to implement this feature?
> I guess it won't be finished within the next 2 month and even after
> finishing my current work, I don't know if this will be the first item on my
> todo list.
> 
> > Table is popular part in a PPTX.
> yeah, that's what I think also about a feature XY, and then after I've
> patched/implemented it, nobody uses it :)
> 
Sorry to hear that. Is this feature not used widely? How others do about the
pptx to png/svg?

No worry. I'm on you. I'll use it when you implement it. :)


> > Otherwise, i need to search other solutions.
> Your best bet is to implement it yourself, and please upload the patch here
> - I'm thankfully adapting your code to the new rendering classes then.
> Otherwise maybe check aspose.slides if this feature was implemented there.

Thanks for providing this information.

-- 
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 57766] XSLFTable isn't exported on convert slides of a .pptx slide show to a PNG/SVG image

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

--- Comment #5 from Andreas Beeker <ki...@apache.org> ---
> May i know the approximate time to implement this feature?
I guess it won't be finished within the next 2 month and even after finishing
my current work, I don't know if this will be the first item on my todo list.

> Table is popular part in a PPTX.
yeah, that's what I think also about a feature XY, and then after I've
patched/implemented it, nobody uses it :)

> Otherwise, i need to search other solutions.
Your best bet is to implement it yourself, and please upload the patch here -
I'm thankfully adapting your code to the new rendering classes then. Otherwise
maybe check aspose.slides if this feature was implemented there.

-- 
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