gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.6k stars 610 forks source link

BUG - Graphs are not shown in Mac Keynote #1306

Open adityapandey216 opened 7 months ago

adityapandey216 commented 7 months ago

We appreciate your feedback - to help the team understand your needs please complete the following template to ensure we have the details to help.

Submission Guidelines

Issue Category

Product Versions

"pptxgenjs": "3.12.0"

Desired Behavior

It should show graphs in mac keynote

Observed Behavior

I have a ppt generated with node.js. It has charts in it. The charts are shown in microsoft powerpoint but not shown in mac keynote

Steps to Reproduce

sample code ppt.stream() .catch((err) => { logger.error("An error occured while generation PPT: "+err) throw err; }) .then((data:any) => { // Send stream of data as res res.writeHead(200, {"Content-disposition": `attachment;filename=sample.pptx, "Content-Length": data.length }); logger.info("Sending ppt generated to client") res.status(200).end(Buffer.from(data, "binary")); }) .catch((err) => { console.log("error",err) logger.error("ERROR occured while sending data to client: " + err); throw err }); } catch (e) { console.log("error",e) logger.error("Error in generating PPT", e); return res.status(500).json({ message: 'An error occurred: ' + e }); }

MP70 commented 2 months ago

I've fixed this in a fork, but it looks like this library is largely unmaintained at this point.

If a future maintainer comes across this and would like a PR please shoot me a message.