Sha256: 8deac33d4d2b346ce3aa0ae68a846dc949eb41c31d6d85b5eb1455ef3bbf9638
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
require 'zip/filesystem' require 'fileutils' module Powerpoint class Powerpoint::Meta def initialize extract_path, sllide_number xml = '<p:sldId id="257" r:id="rId' + (sllide_number+666).to_s + '"/></p:sldIdLst>' path = "#{extract_path}/ppt/presentation.xml" template = File.read path template.gsub!('</p:sldIdLst>', xml) File.open(path, 'w'){ |f| f << template } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.5 | lib/powerpoint/meta.rb |
powerpoint-1.4 | lib/powerpoint/meta.rb |