Add theme to pptx template to fix OnlyOffice presentation crash
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m2s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m2s
This commit is contained in:
parent
fd991a1d4b
commit
e738a2cb72
1 changed files with 50 additions and 1 deletions
|
|
@ -225,6 +225,7 @@ func writePptxContents(w *zip.Writer) error {
|
||||||
<Override PartName="/ppt/slides/slide1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>
|
<Override PartName="/ppt/slides/slide1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>
|
||||||
<Override PartName="/ppt/slideLayouts/slideLayout1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>
|
<Override PartName="/ppt/slideLayouts/slideLayout1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>
|
||||||
<Override PartName="/ppt/slideMasters/slideMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>
|
<Override PartName="/ppt/slideMasters/slideMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>
|
||||||
|
<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
|
||||||
</Types>`,
|
</Types>`,
|
||||||
"_rels/.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
"_rels/.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||||
|
|
@ -236,14 +237,60 @@ func writePptxContents(w *zip.Writer) error {
|
||||||
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
|
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
|
||||||
<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>
|
<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>
|
||||||
<p:sldIdLst><p:sldId id="256" r:id="rId2"/></p:sldIdLst>
|
<p:sldIdLst><p:sldId id="256" r:id="rId2"/></p:sldIdLst>
|
||||||
<p:sldSz cx="9144000" cy="6858000" type="screen4x3"/>
|
<p:sldSz cx="12192000" cy="6858000"/>
|
||||||
<p:notesSz cx="6858000" cy="9144000"/>
|
<p:notesSz cx="6858000" cy="9144000"/>
|
||||||
</p:presentation>`,
|
</p:presentation>`,
|
||||||
"ppt/_rels/presentation.xml.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
"ppt/_rels/presentation.xml.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>
|
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>
|
||||||
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide1.xml"/>
|
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide1.xml"/>
|
||||||
|
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>
|
||||||
</Relationships>`,
|
</Relationships>`,
|
||||||
|
"ppt/theme/theme1.xml": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
|
||||||
|
<a:themeElements>
|
||||||
|
<a:clrScheme name="Office">
|
||||||
|
<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>
|
||||||
|
<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>
|
||||||
|
<a:dk2><a:srgbClr val="44546A"/></a:dk2>
|
||||||
|
<a:lt2><a:srgbClr val="E7E6E6"/></a:lt2>
|
||||||
|
<a:accent1><a:srgbClr val="4472C4"/></a:accent1>
|
||||||
|
<a:accent2><a:srgbClr val="ED7D31"/></a:accent2>
|
||||||
|
<a:accent3><a:srgbClr val="A5A5A5"/></a:accent3>
|
||||||
|
<a:accent4><a:srgbClr val="FFC000"/></a:accent4>
|
||||||
|
<a:accent5><a:srgbClr val="5B9BD5"/></a:accent5>
|
||||||
|
<a:accent6><a:srgbClr val="70AD47"/></a:accent6>
|
||||||
|
<a:hlink><a:srgbClr val="0563C1"/></a:hlink>
|
||||||
|
<a:folHlink><a:srgbClr val="954F72"/></a:folHlink>
|
||||||
|
</a:clrScheme>
|
||||||
|
<a:fontScheme name="Office">
|
||||||
|
<a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont>
|
||||||
|
<a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont>
|
||||||
|
</a:fontScheme>
|
||||||
|
<a:fmtScheme name="Office">
|
||||||
|
<a:fillStyleLst>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
</a:fillStyleLst>
|
||||||
|
<a:lnStyleLst>
|
||||||
|
<a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln>
|
||||||
|
<a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln>
|
||||||
|
<a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln>
|
||||||
|
</a:lnStyleLst>
|
||||||
|
<a:effectStyleLst>
|
||||||
|
<a:effectStyle><a:effectLst/></a:effectStyle>
|
||||||
|
<a:effectStyle><a:effectLst/></a:effectStyle>
|
||||||
|
<a:effectStyle><a:effectLst/></a:effectStyle>
|
||||||
|
</a:effectStyleLst>
|
||||||
|
<a:bgFillStyleLst>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>
|
||||||
|
</a:bgFillStyleLst>
|
||||||
|
</a:fmtScheme>
|
||||||
|
</a:themeElements>
|
||||||
|
</a:theme>`,
|
||||||
"ppt/slideMasters/slideMaster1.xml": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
"ppt/slideMasters/slideMaster1.xml": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<p:sldMaster xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
|
<p:sldMaster xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
|
||||||
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
||||||
|
|
@ -251,11 +298,13 @@ func writePptxContents(w *zip.Writer) error {
|
||||||
<p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>
|
<p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>
|
||||||
<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>
|
<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>
|
||||||
</p:spTree></p:cSld>
|
</p:spTree></p:cSld>
|
||||||
|
<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>
|
||||||
<p:sldLayoutIdLst><p:sldLayoutId id="2147483649" r:id="rId1"/></p:sldLayoutIdLst>
|
<p:sldLayoutIdLst><p:sldLayoutId id="2147483649" r:id="rId1"/></p:sldLayoutIdLst>
|
||||||
</p:sldMaster>`,
|
</p:sldMaster>`,
|
||||||
"ppt/slideMasters/_rels/slideMaster1.xml.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
"ppt/slideMasters/_rels/slideMaster1.xml.rels": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout1.xml"/>
|
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout1.xml"/>
|
||||||
|
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>
|
||||||
</Relationships>`,
|
</Relationships>`,
|
||||||
"ppt/slideLayouts/slideLayout1.xml": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
"ppt/slideLayouts/slideLayout1.xml": `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<p:sldLayout xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
|
<p:sldLayout xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
|
||||||
|
|
|
||||||
Reference in a new issue