Thomas Singer
Thomas Singer
This PR also includes a fix for passing proper rId to chart. This allows creating multiple charts on a slide and/or mixed with images/links.
@heavysixer don't worry, I can truly understand this PR isn't easy to handle :) You might want to at least cherry pick [this](https://github.com/heavysixer/node-pptx/pull/74/commits/e6e6cda2b3cbb06e275db993251de3a213bef446), as it is required to insert multiple...
Hi! I was also stumbling upon this in the past. To grub out the roots: I guess it is because of `this.templates[tag]` below. `src/helper/modify-xml-helper.ts` ```ts assertElement( collection: HTMLCollectionOf, index: number,...
Hi! You could try: ```ts modify.updatePosition({ // move right by 1cm x: CmToDxa(1), // and reduce width by 1cm w: CmToDxa(1) * -1, }), ``` Additional info for each shape...
> or slide.getAllElementPositions(), bonus points for us using internal helpers similar to the backend workings of my old slide.getAllTextElementIds() (or whatever it was) to tell the user if it is...
Hi @MP70! Can I help you on this? Please provide an example pptx file, I'm always interested in new varieties :)
The `Error: Could not find file` is basically caused by an absolute path in slide relations file: ```xml ``` Please see my latest commit. Have a great week! :)
Hey @MP70, I've added an example to read data from a chart worksheets. I'm using a normal modifier to walk through rows and columns. I think it would be useful...
You could try to invoke a library like [node-xlsx](https://github.com/mgcrea/node-xlsx) or the underlying [sheetjs](https://github.com/SheetJS/sheetjs) if you need more complex manipulation of xlsx worksheets. You just need to override the worksheet after...
Great! Thanks a lot for sharing! :smiley: You can make use of the new `pres.getInfo()` that came yesterday with `v0.4.1` to make the code even shorter: ```ts // ... let...