Sha256: 7d81ba81988dcca6c9fd0a87f38d8199c49e764f73026aef7d3bb3b5cf8be0f5
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
require 'zip/filesystem' require 'fileutils' module Powerpoint module Slide class Powerpoint::Slide::Relationship def initialize extract_path, slide_number xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout2.xml"/></Relationships>' path = "#{extract_path}/ppt/slides/_rels/slide#{slide_number}.xml.rels" File.open(path, 'w'){ |f| f << xml } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.5 | lib/powerpoint/slide/relationship.rb |
powerpoint-1.4 | lib/powerpoint/slide/relationship.rb |