Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README.md and bin/console #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ Example of usage
require 'power_point_pptx'

# Open an existing PowerPoint presentation
presentation = PowerPointPptx::Document.open('path/to/presentation.pptx')
pptx_file = 'path/to/presentation.pptx'
presentation = PowerPointPptx::Document.open(pptx_file)

# Get the first slide
slide = presentation.slides.first

# Retrieve content slide
slide.contents
slide.content

# Change content

slide.contents = ["This is a new content]
slide.content = ["This is a new content]

# Stream the new version and save it in a temporary file

Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "bundler/setup"
require "pptx"
require "power_point_pptx"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down