Sha256: 303bc88ec5250857363db91e7583f9b4c1e33b275a3a633a21e1a9159892b9d6
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require 'powerpoint' describe 'Powerpoint parsing a sample PPTX file' do before(:all) do @deck = Powerpoint::Presentation.new @deck.add_intro 'Bicycle Of the Mind', 'created by Steve Jobs' @deck.add_textual_slide 'Why Mac?', ['Its cool!', 'Its light!'] @deck.add_textual_slide 'Why Iphone?', ['Its fast!', 'Its cheap!'] @deck.add_pictorial_slide 'JPG Logo', 'samples/images/sample_png.png' @deck.add_text_picture_slide('Text Pic Split', 'samples/images/sample_png.png', content = ['Here is a string', 'here is another']) @deck.add_pictorial_slide 'PNG Logo', 'samples/images/sample_png.png' @deck.add_picture_description_slide('Pic Desc', 'samples/images/sample_png.png', content = ['Here is a string', 'here is another']) @deck.add_picture_description_slide('JPG Logo', 'samples/images/sample_jpg.jpg', content = ['descriptions']) @deck.add_pictorial_slide 'GIF Logo', 'samples/images/sample_gif.gif', {x: 124200, y: 3356451, cx: 2895600, cy: 1013460} @deck.add_textual_slide 'Why Android?', ['Its great!', 'Its sweet!'] @deck.save 'samples/pptx/sample.pptx' # Examine the PPTX file end it 'Create a PPTX file successfully.' do #@deck.should_not be_nil end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
powerpoint-pro-2.1.0.1 | spec/test_spec.rb |
powerpoint-1.8 | spec/test_spec.rb |