Questions tagged [pptxgenjs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Error "addTable: Array expected!" after updating pptxgenjs to v3.11

Previously, I had been using version 3.4 of pptxgenjs, which was working well for me in English. However, when I switched to Chinese language, the table overflowed from the report page. The same code ...
0 votes
0 answers
14 views

Is it possible to create text with shape consecutively horizontal/vertical without giving height-width and recalculate x-y?

I'm trying to create several boxes with text consecutively horizontal and vertical in a slide, but cannot find a decent way to do this without having each box the same size (different length of text), ...
  • 326
0 votes
0 answers
43 views

append addtext list with dynamic height and y coordinate in pptxgenjs v 3.11.0 in angular 14.2.0

const pptx = new pptxgen(); slide = pptx.addSlide(); body.map((val: any) => { slide.addText([ { text: val.title, options: { fontSize: 8, fontFace:...
0 votes
0 answers
26 views

pptxgenjs working fine on English but when translating in other lang like Chinese etc the table content get overflow vertically it should on next page

I'm working on vuejs app, and for creating/generating report I'm using the pptxgenjs package, the other important thing is that I'm also using the vuex-i18nto translating my report in different ...
0 votes
0 answers
53 views

How can I create PPT readable XML from JavaScript (browser)?

I have an app where users create designs that they can then export to SVG via JS. Unfortunately, SVG is mostly incompatible with PPT and I need to create a separate export format. How should I export ...
  • 132
0 votes
0 answers
73 views

PPTxGenJS Bar Chart with multiple label values

I have researched through the documentation and haven't found any way of doing the following. Does anyone know if it's possible with the tags from the bar chart properties? Or do I need to try and ...
  • 326
0 votes
0 answers
58 views

Add images to PptxGenJS table

Export table with images to a PPT, for example below image, as the PptxGenJS doesn’t support images in the table component we are looking for different ways we can achieve this. we are using slide....
0 votes
1 answer
154 views

How use a defined PPT template on PPTXGEN

I have a defined template, and I want to use it on the ppt exported using PPTXGEN LIBRARY. is it possible ?
0 votes
0 answers
300 views

How to create Multi Type Charts with pptxgenjs

I am using PptGenJs (https://gitbrent.github.io/PptxGenJS/docs/api-charts/) to create a Multi Type Chart (a bar and a line in the same chart) in my Angular application. I am testing the demo code from ...
0 votes
0 answers
53 views

Pptxgenjs appears to not work in IE11 even with jszip@3.1.5

Having read the previous versions of this question from 2020 this issue appears to have reared it's head again. I have tried these demos with my current jszip@3.7.0 and with jszip 3.1.5 using it as my ...
0 votes
0 answers
148 views

How to edit data of slide in nodejspptx

I use the library "Nodejs - pptx" I'm trying to change color to existing text on a slide and I'm not succeeding. I used: const pre = await pptx.load('pres.pptx'); var slide = pre....
0 votes
0 answers
96 views

why can't I retrieve svg or png by relative pathing pptxjs

I have this code : const createBrandedPresentation = () => { let pptx = new pptxgen(); let slide = pptx.addSlide({ sectionTitle: 'ZG test' }); slide.background = { color: '#1c1c21' }; ...
0 votes
1 answer
156 views

Is there a way to edit existing text in an existing PowerPoint slide using PptxGenJS

I have never used this tool before but I want to know if it would be a good idea to use this tool Will I be able to take an existing slide and edit one line of text using PptxGenJS Image of slide and ...
0 votes
1 answer
419 views

PptxGenJS : How to add font in PptxGenJS

I am creating PPT from a HTML table using PptxGenJS. While exporting it is taking default font. How i can change font in PPT. I need to know how i can pass font family property while i am generating ...
3 votes
0 answers
561 views

Writing large file causes UI to freeze for a short time in React.js

I have a button that generate powerpoint slides onClick, but the screen is frozen for ~1 seconds during the generation process, here is the flow: (1). user clicks on the button (2). turn on the ...
  • 323
0 votes
1 answer
732 views

How to make a borderless table on pptxgenjs in 2d array slide

I am creating a presentation using pptgenjs however i can't seems to create a table border as i wants it to be. here is the data that i'm trying to use: let rows = [ ["data1","data2&...
0 votes
0 answers
175 views

How to add custom data into OOXML for powerpoint?

I have a PPD document in which I need to append some custom XML data for reference. My xml data is like this <?xml version="1.0" encoding="UTF-8" standalone="yes"?> ...
  • 3,548
-1 votes
1 answer
2k views

Converting HTML text string to pptx slide using PptxGenJS

How translate HTML string (not table!) format for example: "<p><strong>Spend</strong></p><ul><li>Media spend: 963 889 SEK</li<li>Avarage vCPM: 47,58 ...
0 votes
1 answer
501 views

SVG in PPT( generated by Pptxgenjs) shown incorrectly when the PPT is opened in libreOffice

Pptxgenjs is able to add SVG images and generate PPT correctly. When this PPT is opened using Microsoft office, SVG images are shown properly. However, when this PPT is opened using libreOffice, SVG ...
  • 193
1 vote
2 answers
2k views

using pptxgenjs, add an image that takes the full size of the slide

PptxGenJS allows creating a Powerpoint file by scripting. https://gitbrent.github.io/PptxGenJS/ we can add an image as follows: slide.addImage({ path: "images/chart_world_peace_near.png", x:....
0 votes
1 answer
844 views

PptxGenJS add chart show nothing

I am working with an export function by using PptxGenJS. It does not work even with basic example code from demo source code on official Github. I am working with export charts. My steps: Install ...
  • 2,406
1 vote
0 answers
197 views

Heap memory leak pptxgenjs

Currently I am creating a ppt file using pptxgenjs and export it. the pptexporter file contain many other function to get assets and string etc. but there is always memory leak when I use large assets ...
  • 1,420
1 vote
1 answer
118 views

Add transitions to the PowerPoint slides with PptxGenJS

Recently, I have been playing with the PptxGenJS API to generate some cool PowerPoint slides and I want to add some transitions to the slides. I don't see any documentation describing the process of ...
1 vote
2 answers
859 views

Delete images from pptx file using python

I have one pptx file which contain 10 image(jpg). Now i want to remove some images from pptx. I have the code through which i can extract all the images present in pptx. But at same time i want to ...
  • 119
1 vote
1 answer
1k views

How can I load an existing pptx file with PptxGenJs [closed]

how can I load an existing pptx file? Our customers would like to create a master pptx file with their own coporate branding. They are users and not developers. Is it possible? Thanks. Holm
0 votes
1 answer
275 views

How to use PptxGenJS with RequireJS

I have tried with the following code: require(['https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.1.1/dist/pptxgen.bundle.js'], (pptxgenjs) => { var pptx = new pptxgenjs(); var slide = pptx....
  • 3
1 vote
2 answers
571 views

PptxGenjs writeFile() not working in IE11

While everything seems to work fine, when debugger hits pres.writeFile() function , i cant get the pptx at all. Mostly like a promise-base issue. Of course when testing with Chrome everything works as ...
  • 26
1 vote
3 answers
864 views

I am getting error 'PptxGenJS is not a constructor'

I am trying to use PptxGenJS. I installed it by npm install pptxgenjs --save I created very simple function, according to the examples. When I am doing: import * as PptxGenJS from 'pptxgenjs'; ...
  • 31
0 votes
2 answers
658 views

pptxgenjs 3.0 node js ReferenceError: JSZip is not defined

On Friday January 3rd, 2019, pptxgenjs library has been upgraded from version 2.6.0 to 3.0.0. This being said when I upgraded the package and attempted to start my server it gave me the following ...
0 votes
1 answer
425 views

How can I add the oveflowing text of slide in the next new slide of same type in node.js

Below is my code.My text is overflowing.I tried shrinking them but didn't work.I want that the extra text(overflowing should get added to the next new slide. How can I do that?I googled but couldn't ...
0 votes
0 answers
215 views

RED X instead of image when generating powerpoint

Starting to use the library PptxGenJs. Wanted to create a masterslide with a image/logo inserted into a slide. However when I open up the powerpoint I get a big red X instead of the graphic that I ...
0 votes
1 answer
1k views

PPTXGENJS Is there a way to insert an HTML formatted text inside a slide?

Is it possible to insert HTML formatted texts inside a slide? I need to insert a set of HTML formatted texts that was entered in a WYSIWYG input from TinyMCE in a powerpoint slide generated by ...
0 votes
1 answer
197 views

ERROR ReferenceError: strXmlBullet is not defined - pptxgenjs

Tried many ways changing tsconfig.json, angular.json but it doesn't work. Taken ref from below links but didn't get any help. # https://github.com/gitbrent/PptxGenJS/issues/220 # https://github.com/...
2 votes
0 answers
1k views

Can't save pptx with image in blob format - pptxGenJS

I want to create a pptx file with javascript and send it to the server. To do so, I am going to create a pptx file as blob. Generating from the regular Client Browser, not Node.js. Below is the ...
2 votes
0 answers
444 views

PptxGenJS - Use addSlidesForTable() to insert table in a existing slide

I need to have 3 columns in a slide with table in the middle column. I have an HTML table to populate the table and hoping to use addSlidesForTable() method to do this. However addSlidesForTable() is ...
0 votes
0 answers
985 views

Use JS/Java to open pptx template and modify it

TL;TR I need a pure js library to open a pptx template and edit some text fields. Full post: I am facing a problem and I am sure you will know the best aproach. I am running a Spring Boot webpage ...
0 votes
0 answers
1k views

How to fix Uncaught (in promise) TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'

I'm trying to save to a SharePoint folder a .pptx file generated using pptxgenjs library. I've generated the blob I need into the console but I haven't been able to save it to the folder once ...
  • 13
0 votes
1 answer
1k views

Use pptxgenjs with chartjs to export charts in one click

I'm using node, express to create a web dashboard and created my charts with ChartJS. Now I want to export them in powerpoint in one click (1 page can have 6-10 graphs/charts) I saw PPTxGen JS is ...
  • 21
0 votes
1 answer
548 views

Can Javascript PptxGenJS library show preview before save?

I am using PptxGenJS library to create a pptx files with javascript. I want to preview of pptx before saving. How can I handle it?
0 votes
1 answer
395 views

Not getting stream of data in angular5 using pptxGenjs library

I am trying to add images in ppt file using pptxGenjs in angular5. I am able to get the file with content, but I want to get the ppt file data in base64 or any other output format, but I am getting ...
  • 307
0 votes
1 answer
316 views

how to use slide.pageNumber() slides methods from pptxgenjs library

I am using PPTxgenjs library. I want to show page number/slide number with my title like this [Dashboard Reporting (Page 1...)] on each slide. I tried Slide methods. var pptx = null; pptx=new ...
0 votes
1 answer
224 views

PptxGenJS - Wait till Save is Finish then Run Function

I am using PptxGenJS and I want to run a function after I save my PowerPoint. I figured I could use the .then(...) method, because the library already uses Promise. However when I do try something ...
0 votes
1 answer
122 views

How to get straight table values or table data into an variable in Qlikview?

How to get straight table values or table data into an variable in Qlikview ? As I am going to use the table data in Javascript fetched through variable and generate PPT reports using pptxgenjs ...
0 votes
2 answers
1k views

Unable to set position of Html Table using PptxGenJs library

Need Help,I'm using PptxGen to create PowerPoint reports of HTML. I'm using function addSlidesForTable to pass HTML table id, also I have requirement to each slide provide title with one straight ...
0 votes
1 answer
566 views

HTML table to PPT using PPtxgen

I'm using PptxGen to create PowerPoint tabular reports of HTML generated in QlikView extension. I'm using function addSlidesForTable to pass HTML table id. Syntax below: pptx.addSlidesForTable("...
0 votes
2 answers
201 views

PptxGenJS - Issue with NPM declaration of file

I'm trying to work with PPTXGenJS in a SharePoint's WebPart and therefore need to import the npm package. Unfortunately, I'm not able to make it available in my program, since code is telling me that ...
  • 1
1 vote
0 answers
243 views

Error 500 when exporting from MxGraph

I Have integrated mxGraph in my codeignitore plategorme but when u try to export using the export form I get error 500 when I checked I found out that the getimage method receives s null value I ...
1 vote
1 answer
262 views

Line charts not working properly in PowerPoint in v2.1.0 of PptxGenJS

I'm trying to generate a pptx file with charts but there is an error while opening the generated file in Power Point when there is some 'chart.LINE'. Charts with '.BAR' type are rendered normally, ...
2 votes
2 answers
313 views

How to divert a number of downloads into a zip file?

I'm using the PptxGenJS library, and one of the functions I'm using it for leads to around 8 powerpoint files being downloaded at once. It works, but it creates a mess, and so putting them into a ...