- copy all the constant stuff over
- for slide1 ONLY replace the image name
- for all other slides, derive from slide1.xml and .xml.rels
- copy all the mods over, in modified version
- Change number of slides:
- from
<Slides>1
- to
<Slides>n
- replace
$NUM_SLIDES
- from
- Add a new like for slide1 with a new Id
"rId{ 11 + n }"
- replace
$RELATIONSHIPS
<Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide1.xml"/>
- Change
id="4" name="Grafik 4"
- to
id="{n}" name="Grafik {3 + n}descr="slides generated image {n}"
- replace ==$GRAPHIC_ID==
- to
- Change
<a16 ... id={}
to a new guid- replace ==$GUID==
- 6A92AC38-201A-B559-9037-63C6F3D7798E
- Change
<p14 ... val=""
to a new decimal id- replace ==$ID==
- 1577499883
- Just copy and adjust the target path to the image -> rename to
image{n}.png
- replace ==$IMG_NAME==
- Add new
<p:sldId id="{ 255 + n }" r:id="rId{ 11 + n }" ...
- replace ==$SLIDE_IDS==
- Add new tag for the new slides
- replace ==$SLIDES==
<Override PartName="/ppt/slides/slide1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>