You can embed chart text in PNG files by using the -e
. Then you can use this PNG
file as an input file (and open it in the GUIs, too). You can extract the source text
from a PNG file by using -T src
.
You can also embed charts in PPT files, by using -T embed
and specifying an existing
pptx
file as output. This will append a slide and place the chart in the middle of it.
Using -T embed:<slide>
will place the chart on an existing slide, identified by its
number. Numbers start from 1 and you get an error if the slideshow does not have as many slides.
Finally, specifying -T embed:<slide>:<chart>
will replace an existing chart on
the given slide. Charts on a slide are numbered from one in Z-order, where chart #1 is the
one on the back.
You can extract the source text from a PPT file, by appending the slide and
chart number after the input filename, like msc-gen my.pptx:2:1
. Adding -T src
will save the chart text, but other output graphics formats are also possible. The following
example updates the chart with a given design.
msc-gen my.pptx:2:1 -T embed:2:1 -o my.pptx --design=round_green
In order to see what slides contain what charts, use msc-gen --list-embedded my.pptx
.