powerpoint 1.5 → 1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.codeclimate.yml +9 -0
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/lib/powerpoint.rb +3 -6
- data/lib/powerpoint/presentation.rb +37 -22
- data/lib/powerpoint/slide/intro.rb +21 -11
- data/lib/powerpoint/slide/pictorial.rb +42 -94
- data/lib/powerpoint/slide/textual.rb +20 -14
- data/lib/powerpoint/util.rb +26 -0
- data/lib/powerpoint/version.rb +1 -1
- data/lib/powerpoint/views/content_type.xml.erb +30 -0
- data/lib/powerpoint/views/intro_slide.xml.erb +74 -0
- data/lib/powerpoint/views/pictorial_rel.xml.erb +5 -0
- data/lib/powerpoint/views/pictorial_slide.xml.erb +87 -0
- data/lib/powerpoint/views/presentation.xml.erb +124 -0
- data/lib/powerpoint/views/presentation.xml.rel.erb +12 -0
- data/lib/powerpoint/views/textual_rel.xml.erb +4 -0
- data/lib/powerpoint/views/textual_slide.xml.erb +78 -0
- data/powerpoint.gemspec +4 -1
- data/samples/pptx/sample.pptx +0 -0
- data/spec/test_spec.rb +1 -2
- data/template/_rels/.rels +5 -1
- data/template/docProps/app.xml +2 -0
- data/template/docProps/core.xml +7 -0
- data/template/ppt/{media/README → _rels/.keep} +0 -0
- data/template/ppt/media/.keep +0 -0
- data/template/ppt/presProps.xml +13 -1
- data/template/ppt/slideLayouts/_rels/slideLayout1.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout10.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout11.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout2.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout3.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout4.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout5.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout6.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout7.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout8.xml.rels +0 -0
- data/template/ppt/slideLayouts/_rels/slideLayout9.xml.rels +0 -0
- data/template/ppt/slideLayouts/slideLayout1.xml +236 -1
- data/template/ppt/slideLayouts/slideLayout10.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout11.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout2.xml +164 -1
- data/template/ppt/slideLayouts/slideLayout3.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout4.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout5.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout6.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout7.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout8.xml +1 -1
- data/template/ppt/slideLayouts/slideLayout9.xml +1 -1
- data/template/ppt/slideMasters/_rels/slideMaster1.xml.rels +1 -1
- data/template/ppt/slideMasters/slideMaster1.xml +504 -1
- data/template/ppt/slides/_rels/.keep +0 -0
- data/template/ppt/tableStyles.xml +0 -0
- data/template/ppt/theme/theme1.xml +0 -0
- data/template/ppt/viewProps.xml +31 -1
- metadata +45 -15
- data/lib/powerpoint/content_type.rb +0 -14
- data/lib/powerpoint/meta.rb +0 -14
- data/lib/powerpoint/relationship.rb +0 -14
- data/lib/powerpoint/slide/relationship.rb +0 -15
- data/samples/images/sample_svg.svg +0 -69
- data/template/[Content_Types].xml +0 -32
- data/template/ppt/_rels/presentation.xml.rels +0 -2
- data/template/ppt/presentation.xml +0 -2
- data/template/ppt/slides/_rels/slide1.xml.rels +0 -2
- data/template/ppt/slides/_rels/slide2.xml.rels +0 -2
- data/template/ppt/slides/slide1.xml +0 -6
- data/template/ppt/slides/slide2.xml +0 -6
@@ -0,0 +1,74 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
3
|
+
<p:cSld>
|
4
|
+
<p:spTree>
|
5
|
+
<p:nvGrpSpPr>
|
6
|
+
<p:cNvPr id="1" name=""/>
|
7
|
+
<p:cNvGrpSpPr/>
|
8
|
+
<p:nvPr/>
|
9
|
+
</p:nvGrpSpPr>
|
10
|
+
<p:grpSpPr>
|
11
|
+
<a:xfrm>
|
12
|
+
<a:off x="0" y="0"/>
|
13
|
+
<a:ext cx="0" cy="0"/>
|
14
|
+
<a:chOff x="0" y="0"/>
|
15
|
+
<a:chExt cx="0" cy="0"/>
|
16
|
+
</a:xfrm>
|
17
|
+
</p:grpSpPr>
|
18
|
+
<p:sp>
|
19
|
+
<p:nvSpPr>
|
20
|
+
<p:cNvPr id="2" name="Title 1"/>
|
21
|
+
<p:cNvSpPr>
|
22
|
+
<a:spLocks noGrp="1"/>
|
23
|
+
</p:cNvSpPr>
|
24
|
+
<p:nvPr>
|
25
|
+
<p:ph type="ctrTitle"/>
|
26
|
+
</p:nvPr>
|
27
|
+
</p:nvSpPr>
|
28
|
+
<p:spPr/>
|
29
|
+
<p:txBody>
|
30
|
+
<a:bodyPr/>
|
31
|
+
<a:lstStyle/>
|
32
|
+
<a:p>
|
33
|
+
<a:r>
|
34
|
+
<a:rPr dirty="0" lang="en-US" smtClean="0"/>
|
35
|
+
<a:t><%= title %></a:t>
|
36
|
+
</a:r>
|
37
|
+
<a:endParaRPr dirty="0" lang="en-US"/>
|
38
|
+
</a:p>
|
39
|
+
</p:txBody>
|
40
|
+
</p:sp>
|
41
|
+
<p:sp>
|
42
|
+
<p:nvSpPr>
|
43
|
+
<p:cNvPr id="3" name="Subtitle 2"/>
|
44
|
+
<p:cNvSpPr>
|
45
|
+
<a:spLocks noGrp="1"/>
|
46
|
+
</p:cNvSpPr>
|
47
|
+
<p:nvPr>
|
48
|
+
<p:ph idx="1" type="subTitle"/>
|
49
|
+
</p:nvPr>
|
50
|
+
</p:nvSpPr>
|
51
|
+
<p:spPr/>
|
52
|
+
<p:txBody>
|
53
|
+
<a:bodyPr/>
|
54
|
+
<a:lstStyle/>
|
55
|
+
<a:p>
|
56
|
+
<a:r>
|
57
|
+
<a:rPr lang="en-US" smtClean="0"/>
|
58
|
+
<a:t><%= subtitile %></a:t>
|
59
|
+
</a:r>
|
60
|
+
<a:endParaRPr lang="en-US"/>
|
61
|
+
</a:p>
|
62
|
+
</p:txBody>
|
63
|
+
</p:sp>
|
64
|
+
</p:spTree>
|
65
|
+
<p:extLst>
|
66
|
+
<p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
|
67
|
+
<p14:creationId val="1633108117" xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
|
68
|
+
</p:ext>
|
69
|
+
</p:extLst>
|
70
|
+
</p:cSld>
|
71
|
+
<p:clrMapOvr>
|
72
|
+
<a:masterClrMapping/>
|
73
|
+
</p:clrMapOvr>
|
74
|
+
</p:sld>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
3
|
+
<Relationship Id="rId1" Target="../slideLayouts/slideLayout2.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"/>
|
4
|
+
<Relationship Id="rId2" Target="../media/<%= image_name %>" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"/>
|
5
|
+
</Relationships>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
3
|
+
<p:cSld>
|
4
|
+
<p:spTree>
|
5
|
+
<p:nvGrpSpPr>
|
6
|
+
<p:cNvPr id="1" name=""/>
|
7
|
+
<p:cNvGrpSpPr/>
|
8
|
+
<p:nvPr/>
|
9
|
+
</p:nvGrpSpPr>
|
10
|
+
<p:grpSpPr>
|
11
|
+
<a:xfrm>
|
12
|
+
<a:off x="0" y="0"/>
|
13
|
+
<a:ext cx="0" cy="0"/>
|
14
|
+
<a:chOff x="0" y="0"/>
|
15
|
+
<a:chExt cx="0" cy="0"/>
|
16
|
+
</a:xfrm>
|
17
|
+
</p:grpSpPr>
|
18
|
+
<p:sp>
|
19
|
+
<p:nvSpPr>
|
20
|
+
<p:cNvPr id="2" name="Title 1"/>
|
21
|
+
<p:cNvSpPr>
|
22
|
+
<a:spLocks noGrp="1"/>
|
23
|
+
</p:cNvSpPr>
|
24
|
+
<p:nvPr>
|
25
|
+
<p:ph type="title"/>
|
26
|
+
</p:nvPr>
|
27
|
+
</p:nvSpPr>
|
28
|
+
<p:spPr/>
|
29
|
+
<p:txBody>
|
30
|
+
<a:bodyPr/>
|
31
|
+
<a:lstStyle/>
|
32
|
+
<a:p>
|
33
|
+
<a:r>
|
34
|
+
<a:rPr dirty="0" lang="en-US" smtClean="0"/>
|
35
|
+
<a:t><%= title %></a:t>
|
36
|
+
</a:r>
|
37
|
+
<a:endParaRPr dirty="0" lang="en-US"/>
|
38
|
+
</a:p>
|
39
|
+
</p:txBody>
|
40
|
+
</p:sp>
|
41
|
+
<p:pic>
|
42
|
+
<p:nvPicPr>
|
43
|
+
<p:cNvPr id="4" name="Content Placeholder 3"/>
|
44
|
+
<p:cNvPicPr>
|
45
|
+
<a:picLocks noChangeAspect="1" noGrp="1"/>
|
46
|
+
</p:cNvPicPr>
|
47
|
+
<p:nvPr>
|
48
|
+
<p:ph idx="1"/>
|
49
|
+
</p:nvPr>
|
50
|
+
</p:nvPicPr>
|
51
|
+
<p:blipFill>
|
52
|
+
<a:blip r:embed="rId2">
|
53
|
+
<a:extLst>
|
54
|
+
<a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
|
55
|
+
<a14:useLocalDpi val="0" xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main"/>
|
56
|
+
</a:ext>
|
57
|
+
</a:extLst>
|
58
|
+
</a:blip>
|
59
|
+
<a:stretch>
|
60
|
+
<a:fillRect/>
|
61
|
+
</a:stretch>
|
62
|
+
</p:blipFill>
|
63
|
+
<% if coords.any? %>
|
64
|
+
<p:spPr>
|
65
|
+
<a:xfrm>
|
66
|
+
<a:off x="<%= coords[:x].to_s %>" y="<%= coords[:y].to_s %>"/>
|
67
|
+
<a:ext cx="<%= coords[:cx].to_s %>" cy="<%= coords[:cy].to_s %>"/>
|
68
|
+
</a:xfrm>
|
69
|
+
<a:prstGeom prst="rect">
|
70
|
+
<a:avLst/>
|
71
|
+
</a:prstGeom>
|
72
|
+
</p:spPr>
|
73
|
+
<% else %>
|
74
|
+
<p:spPr/>
|
75
|
+
<% end %>
|
76
|
+
</p:pic>
|
77
|
+
</p:spTree>
|
78
|
+
<p:extLst>
|
79
|
+
<p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
|
80
|
+
<p14:creationId val="1474098577" xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
|
81
|
+
</p:ext>
|
82
|
+
</p:extLst>
|
83
|
+
</p:cSld>
|
84
|
+
<p:clrMapOvr>
|
85
|
+
<a:masterClrMapping/>
|
86
|
+
</p:clrMapOvr>
|
87
|
+
</p:sld>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<p:presentation saveSubsetFonts="1" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
3
|
+
<p:sldMasterIdLst>
|
4
|
+
<p:sldMasterId id="2147483648" r:id="rId1"/>
|
5
|
+
</p:sldMasterIdLst>
|
6
|
+
<p:sldIdLst>
|
7
|
+
<% slides.each_with_index do |slide, index| %>
|
8
|
+
<p:sldId id="<%= 255 + (index+1) %>" r:id="rId<%= (index + 1) + 5 %>"/>
|
9
|
+
<% end %>
|
10
|
+
</p:sldIdLst>
|
11
|
+
<p:sldSz cx="9144000" cy="6858000" type="screen4x3"/>
|
12
|
+
<p:notesSz cx="6858000" cy="9144000"/>
|
13
|
+
<p:defaultTextStyle>
|
14
|
+
<a:defPPr>
|
15
|
+
<a:defRPr lang="en-US"/>
|
16
|
+
</a:defPPr>
|
17
|
+
<a:lvl1pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="0" rtl="0">
|
18
|
+
<a:defRPr kern="1200" sz="1800">
|
19
|
+
<a:solidFill>
|
20
|
+
<a:schemeClr val="tx1"/>
|
21
|
+
</a:solidFill>
|
22
|
+
<a:latin typeface="+mn-lt"/>
|
23
|
+
<a:ea typeface="+mn-ea"/>
|
24
|
+
<a:cs typeface="+mn-cs"/>
|
25
|
+
</a:defRPr>
|
26
|
+
</a:lvl1pPr>
|
27
|
+
<a:lvl2pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="457200" rtl="0">
|
28
|
+
<a:defRPr kern="1200" sz="1800">
|
29
|
+
<a:solidFill>
|
30
|
+
<a:schemeClr val="tx1"/>
|
31
|
+
</a:solidFill>
|
32
|
+
<a:latin typeface="+mn-lt"/>
|
33
|
+
<a:ea typeface="+mn-ea"/>
|
34
|
+
<a:cs typeface="+mn-cs"/>
|
35
|
+
</a:defRPr>
|
36
|
+
</a:lvl2pPr>
|
37
|
+
<a:lvl3pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="914400" rtl="0">
|
38
|
+
<a:defRPr kern="1200" sz="1800">
|
39
|
+
<a:solidFill>
|
40
|
+
<a:schemeClr val="tx1"/>
|
41
|
+
</a:solidFill>
|
42
|
+
<a:latin typeface="+mn-lt"/>
|
43
|
+
<a:ea typeface="+mn-ea"/>
|
44
|
+
<a:cs typeface="+mn-cs"/>
|
45
|
+
</a:defRPr>
|
46
|
+
</a:lvl3pPr>
|
47
|
+
<a:lvl4pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="1371600" rtl="0">
|
48
|
+
<a:defRPr kern="1200" sz="1800">
|
49
|
+
<a:solidFill>
|
50
|
+
<a:schemeClr val="tx1"/>
|
51
|
+
</a:solidFill>
|
52
|
+
<a:latin typeface="+mn-lt"/>
|
53
|
+
<a:ea typeface="+mn-ea"/>
|
54
|
+
<a:cs typeface="+mn-cs"/>
|
55
|
+
</a:defRPr>
|
56
|
+
</a:lvl4pPr>
|
57
|
+
<a:lvl5pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="1828800" rtl="0">
|
58
|
+
<a:defRPr kern="1200" sz="1800">
|
59
|
+
<a:solidFill>
|
60
|
+
<a:schemeClr val="tx1"/>
|
61
|
+
</a:solidFill>
|
62
|
+
<a:latin typeface="+mn-lt"/>
|
63
|
+
<a:ea typeface="+mn-ea"/>
|
64
|
+
<a:cs typeface="+mn-cs"/>
|
65
|
+
</a:defRPr>
|
66
|
+
</a:lvl5pPr>
|
67
|
+
<a:lvl6pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="2286000" rtl="0">
|
68
|
+
<a:defRPr kern="1200" sz="1800">
|
69
|
+
<a:solidFill>
|
70
|
+
<a:schemeClr val="tx1"/>
|
71
|
+
</a:solidFill>
|
72
|
+
<a:latin typeface="+mn-lt"/>
|
73
|
+
<a:ea typeface="+mn-ea"/>
|
74
|
+
<a:cs typeface="+mn-cs"/>
|
75
|
+
</a:defRPr>
|
76
|
+
</a:lvl6pPr>
|
77
|
+
<a:lvl7pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="2743200" rtl="0">
|
78
|
+
<a:defRPr kern="1200" sz="1800">
|
79
|
+
<a:solidFill>
|
80
|
+
<a:schemeClr val="tx1"/>
|
81
|
+
</a:solidFill>
|
82
|
+
<a:latin typeface="+mn-lt"/>
|
83
|
+
<a:ea typeface="+mn-ea"/>
|
84
|
+
<a:cs typeface="+mn-cs"/>
|
85
|
+
</a:defRPr>
|
86
|
+
</a:lvl7pPr>
|
87
|
+
<a:lvl8pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="3200400" rtl="0">
|
88
|
+
<a:defRPr kern="1200" sz="1800">
|
89
|
+
<a:solidFill>
|
90
|
+
<a:schemeClr val="tx1"/>
|
91
|
+
</a:solidFill>
|
92
|
+
<a:latin typeface="+mn-lt"/>
|
93
|
+
<a:ea typeface="+mn-ea"/>
|
94
|
+
<a:cs typeface="+mn-cs"/>
|
95
|
+
</a:defRPr>
|
96
|
+
</a:lvl8pPr>
|
97
|
+
<a:lvl9pPr algn="l" defTabSz="914400" eaLnBrk="1" hangingPunct="1" latinLnBrk="0" marL="3657600" rtl="0">
|
98
|
+
<a:defRPr kern="1200" sz="1800">
|
99
|
+
<a:solidFill>
|
100
|
+
<a:schemeClr val="tx1"/>
|
101
|
+
</a:solidFill>
|
102
|
+
<a:latin typeface="+mn-lt"/>
|
103
|
+
<a:ea typeface="+mn-ea"/>
|
104
|
+
<a:cs typeface="+mn-cs"/>
|
105
|
+
</a:defRPr>
|
106
|
+
</a:lvl9pPr>
|
107
|
+
</p:defaultTextStyle>
|
108
|
+
<p:extLst>
|
109
|
+
<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}">
|
110
|
+
<p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main">
|
111
|
+
<p15:guide id="1" orient="horz" pos="2160">
|
112
|
+
<p15:clr>
|
113
|
+
<a:srgbClr val="A4A3A4"/>
|
114
|
+
</p15:clr>
|
115
|
+
</p15:guide>
|
116
|
+
<p15:guide id="2" pos="2880">
|
117
|
+
<p15:clr>
|
118
|
+
<a:srgbClr val="A4A3A4"/>
|
119
|
+
</p15:clr>
|
120
|
+
</p15:guide>
|
121
|
+
</p15:sldGuideLst>
|
122
|
+
</p:ext>
|
123
|
+
</p:extLst>
|
124
|
+
</p:presentation>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
3
|
+
<Relationship Id="rId1" Target="slideMasters/slideMaster1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"/>
|
4
|
+
<Relationship Id="rId2" Target="presProps.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps"/>
|
5
|
+
<Relationship Id="rId3" Target="viewProps.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps"/>
|
6
|
+
<Relationship Id="rId4" Target="theme/theme1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"/>
|
7
|
+
<Relationship Id="rId5" Target="tableStyles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"/>
|
8
|
+
<% slides.each_with_index do |slide, index| %>
|
9
|
+
<% id = 5 + (index+1) %>
|
10
|
+
<Relationship Id="rId<%= id %>" Target="slides/slide<%= index+1 %>.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide"/>
|
11
|
+
<% end %>
|
12
|
+
</Relationships>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
3
|
+
<Relationship Id="rId1" Target="../slideLayouts/slideLayout1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"/>
|
4
|
+
</Relationships>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
3
|
+
<p:cSld>
|
4
|
+
<p:spTree>
|
5
|
+
<p:nvGrpSpPr>
|
6
|
+
<p:cNvPr id="1" name=""/>
|
7
|
+
<p:cNvGrpSpPr/>
|
8
|
+
<p:nvPr/>
|
9
|
+
</p:nvGrpSpPr>
|
10
|
+
<p:grpSpPr>
|
11
|
+
<a:xfrm>
|
12
|
+
<a:off x="0" y="0"/>
|
13
|
+
<a:ext cx="0" cy="0"/>
|
14
|
+
<a:chOff x="0" y="0"/>
|
15
|
+
<a:chExt cx="0" cy="0"/>
|
16
|
+
</a:xfrm>
|
17
|
+
</p:grpSpPr>
|
18
|
+
<p:sp>
|
19
|
+
<p:nvSpPr>
|
20
|
+
<p:cNvPr id="2" name="Title 1"/>
|
21
|
+
<p:cNvSpPr>
|
22
|
+
<a:spLocks noGrp="1"/>
|
23
|
+
</p:cNvSpPr>
|
24
|
+
<p:nvPr>
|
25
|
+
<p:ph type="title"/>
|
26
|
+
</p:nvPr>
|
27
|
+
</p:nvSpPr>
|
28
|
+
<p:spPr/>
|
29
|
+
<p:txBody>
|
30
|
+
<a:bodyPr/>
|
31
|
+
<a:lstStyle/>
|
32
|
+
<a:p>
|
33
|
+
<a:r>
|
34
|
+
<a:rPr dirty="0" lang="en-US" smtClean="0"/>
|
35
|
+
<a:t><%= title %></a:t>
|
36
|
+
</a:r>
|
37
|
+
<a:endParaRPr dirty="0" lang="en-US"/>
|
38
|
+
</a:p>
|
39
|
+
</p:txBody>
|
40
|
+
</p:sp>
|
41
|
+
<p:sp>
|
42
|
+
<p:nvSpPr>
|
43
|
+
<p:cNvPr id="3" name="Content Placeholder 2"/>
|
44
|
+
<p:cNvSpPr>
|
45
|
+
<a:spLocks noGrp="1"/>
|
46
|
+
</p:cNvSpPr>
|
47
|
+
<p:nvPr>
|
48
|
+
<p:ph idx="1"/>
|
49
|
+
</p:nvPr>
|
50
|
+
</p:nvSpPr>
|
51
|
+
<p:spPr/>
|
52
|
+
<p:txBody>
|
53
|
+
<a:bodyPr/>
|
54
|
+
<a:lstStyle/>
|
55
|
+
<% content.each_with_index do |c, index| %>
|
56
|
+
<a:p>
|
57
|
+
<a:r>
|
58
|
+
<a:rPr dirty="0" lang="en-US" smtClean="0"/>
|
59
|
+
<a:t><%= c %></a:t>
|
60
|
+
</a:r>
|
61
|
+
<% if content.length == (index + 1) %>
|
62
|
+
<a:endParaRPr lang="en-US"/>
|
63
|
+
<% end %>
|
64
|
+
</a:p>
|
65
|
+
<% end %>
|
66
|
+
</p:txBody>
|
67
|
+
</p:sp>
|
68
|
+
</p:spTree>
|
69
|
+
<p:extLst>
|
70
|
+
<p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
|
71
|
+
<p14:creationId val="1231192379" xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
|
72
|
+
</p:ext>
|
73
|
+
</p:extLst>
|
74
|
+
</p:cSld>
|
75
|
+
<p:clrMapOvr>
|
76
|
+
<a:masterClrMapping/>
|
77
|
+
</p:clrMapOvr>
|
78
|
+
</p:sld>
|
data/powerpoint.gemspec
CHANGED
@@ -23,6 +23,9 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
spec.add_development_dependency 'rspec', '~> 2.13.0'
|
26
|
+
spec.add_development_dependency 'pry'
|
26
27
|
|
27
|
-
|
28
|
+
|
29
|
+
spec.add_dependency 'rubyzip', '~> 1'
|
30
|
+
spec.add_dependency 'fastimage', '~> 1'
|
28
31
|
end
|
data/samples/pptx/sample.pptx
CHANGED
Binary file
|
data/spec/test_spec.rb
CHANGED
@@ -2,14 +2,13 @@ require 'powerpoint'
|
|
2
2
|
|
3
3
|
describe 'Powerpoint parsing a sample PPTX file' do
|
4
4
|
before(:all) do
|
5
|
-
@deck = Powerpoint::Presentation.new
|
5
|
+
@deck = Powerpoint::Presentation.new
|
6
6
|
@deck.add_intro 'Bicycle Of the Mind', 'created by Steve Jobs'
|
7
7
|
@deck.add_textual_slide 'Why Mac?', ['Its cool!', 'Its light!']
|
8
8
|
@deck.add_textual_slide 'Why Iphone?', ['Its fast!', 'Its cheap!']
|
9
9
|
@deck.add_pictorial_slide 'JPG Logo', 'samples/images/sample_jpg.jpg'
|
10
10
|
@deck.add_pictorial_slide 'PNG Logo', 'samples/images/sample_png.png'
|
11
11
|
@deck.add_pictorial_slide 'GIF Logo', 'samples/images/sample_gif.gif', {x: 124200, y: 3356451, cx: 2895600, cy: 1013460}
|
12
|
-
@deck.add_pictorial_slide 'SVG Logo', 'samples/images/sample_svg.svg'
|
13
12
|
@deck.add_textual_slide 'Why Android?', ['Its great!', 'Its sweet!']
|
14
13
|
@deck.save 'samples/pptx/sample.pptx' # Examine the PPTX file
|
15
14
|
end
|
data/template/_rels/.rels
CHANGED
@@ -1,2 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"
|
2
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
3
|
+
<Relationship Id="rId1" Target="ppt/presentation.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"/>
|
4
|
+
<Relationship Id="rId2" Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"/>
|
5
|
+
<Relationship Id="rId3" Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"/>
|
6
|
+
</Relationships>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><TotalTime>0</TotalTime><Words>43</Words><Application>Microsoft Macintosh PowerPoint</Application><PresentationFormat>On-screen Show (4:3)</PresentationFormat><Paragraphs>15</Paragraphs><Slides>8</Slides><Notes>0</Notes><HiddenSlides>0</HiddenSlides><MMClips>0</MMClips><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="6" baseType="variant"><vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant><vt:variant><vt:i4>2</vt:i4></vt:variant><vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant><vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant><vt:variant><vt:i4>8</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="11" baseType="lpstr"><vt:lpstr>Arial</vt:lpstr><vt:lpstr>Calibri</vt:lpstr><vt:lpstr>Office Theme</vt:lpstr><vt:lpstr>Bicycle Of the Mind</vt:lpstr><vt:lpstr>Why Mac?</vt:lpstr><vt:lpstr>Why Iphone?</vt:lpstr><vt:lpstr>JPG Logo</vt:lpstr><vt:lpstr>PNG Logo</vt:lpstr><vt:lpstr>GIF Logo</vt:lpstr><vt:lpstr>SVG Logo</vt:lpstr><vt:lpstr>Why Android?</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>15.0000</AppVersion></Properties>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
2
|
+
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<dc:title>Powerpoint</dc:title>
|
4
|
+
<cp:lastModifiedBy>Nobody</cp:lastModifiedBy>
|
5
|
+
<cp:revision>1</cp:revision>
|
6
|
+
<dcterms:modified xsi:type="dcterms:W3CDTF">2015-07-15T00:51:18Z</dcterms:modified>
|
7
|
+
</cp:coreProperties>
|
File without changes
|
File without changes
|