You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Floodgate, Gareth" <gf...@amazon.co.uk.INVALID> on 2022/09/27 14:25:52 UTC

XSLFChart rendering implementation - questions/tips ?

Hello POI Maintainers,

I wanted to take a look at chart rendering in XSLF, but before I do so, I wanted to see if there has been any work on this already,
either in other formats (DOCX, XSLX, etc.) that I can pull from ? or indeed recommended libraries to integrate ?

Do you have any pointers or tips that are worth considering ?


Kind Regards
Gareth




Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284

Amazon Web Services EMEA Sarl, UK Branch, 1 Principal Place, Worship Street, London, EC2A 2FA, United Kingdom, registered in England and Wales, UK Establishment No. BR019315



Re: XSLFChart rendering implementation - questions/tips ?

Posted by "Floodgate, Gareth" <gf...@amazon.co.uk.INVALID>.
Hey,

To expand on my question, when 'rendering' slides to a BufferedImage (like PPTX2PNG) using code akin to:

                BufferedImage slideImg = new BufferedImage(renderWidth, renderHeight, BufferedImage.TYPE_INT_ARGB);
                Graphics2D graphics = slideImg.createGraphics();
	  slide.draw(graphics);

Any instances of XSLFChart are not currently rendered, leaving essentially blank spaces where you would like to see charts.
A Bugzilla related to this is open here -> https://bz.apache.org/bugzilla/show_bug.cgi?id=60201

For completeness of slide rendering, this is a topic of interest.
So my question was, is there any code already in POI that 'renders' i.e. draws to a Graphics instance charts (maybe as part of excel/word 'rendering') that I can leverage ?

Obviously this needs to be brought into the DrawFactory [getDrawable()]  for SL, etc. but if I can avoid starting from scratch [drawing charts from scratch that is], then I can get a jump start on implementation.

Thanks
Gareth


On 27/09/2022, 16:53, "PJ Fanning" <fa...@yahoo.com.INVALID> wrote:

    CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.



    Hi Gareth,
    You might need to be less vague because it is easy to misinterpret what you mean by 'rendering', especially since POI is not a GUI. POI is a lib for parsing, modifying and writing Microsoft format files, including pptx.

    Maybe, you need something like https://github.com/apache/poi/blob/trunk/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java which generates png images for an input pptx file.






    On Tuesday 27 September 2022 at 16:16:36 IST, Floodgate, Gareth <gf...@amazon.co.uk.invalid> wrote:





    Hello POI Maintainers,

    I wanted to take a look at chart rendering in XSLF, but before I do so, I wanted to see if there has been any work on this already,
    either in other formats (DOCX, XSLX, etc.) that I can pull from ? or indeed recommended libraries to integrate ?

    Do you have any pointers or tips that are worth considering ?


    Kind Regards
    Gareth




    Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284

    Amazon Web Services EMEA Sarl, UK Branch, 1 Principal Place, Worship Street, London, EC2A 2FA, United Kingdom, registered in England and Wales, UK Establishment No. BR019315



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





Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284

Amazon Web Services EMEA Sarl, UK Branch, 1 Principal Place, Worship Street, London, EC2A 2FA, United Kingdom, registered in England and Wales, UK Establishment No. BR019315



Re: XSLFChart rendering implementation - questions/tips ?

Posted by PJ Fanning <fa...@yahoo.com.INVALID>.
Hi Gareth,
You might need to be less vague because it is easy to misinterpret what you mean by 'rendering', especially since POI is not a GUI. POI is a lib for parsing, modifying and writing Microsoft format files, including pptx.

Maybe, you need something like https://github.com/apache/poi/blob/trunk/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java which generates png images for an input pptx file.






On Tuesday 27 September 2022 at 16:16:36 IST, Floodgate, Gareth <gf...@amazon.co.uk.invalid> wrote: 





Hello POI Maintainers,

I wanted to take a look at chart rendering in XSLF, but before I do so, I wanted to see if there has been any work on this already,
either in other formats (DOCX, XSLX, etc.) that I can pull from ? or indeed recommended libraries to integrate ?

Do you have any pointers or tips that are worth considering ?


Kind Regards
Gareth




Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284

Amazon Web Services EMEA Sarl, UK Branch, 1 Principal Place, Worship Street, London, EC2A 2FA, United Kingdom, registered in England and Wales, UK Establishment No. BR019315



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