gslides

command module
v0.0.0-...-1f8755f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 22 Imported by: 0

README

gslides - tool to work with the Google Slides API

install

go install github.com/emicklei/gslides@latest

requirements

Get your OAuth client ID credentials:

  • Create (or reuse) a developer project at https://console.developers.google.com
  • Enable Google Slides API at API library page
  • Go to Credentials page and click "+ Create credentials" at the top
  • Select "OAuth client ID" authorization credentials
  • Choose type "Computer Application" and give it some name.
  • Download client credentials file.
  • Copy it to gslides.json (name has to match).

usage

Commands expect an identifier of a Google slidedeck, such as 1EA.......C6Vuc. Use the flag "-v" for verbose logging.

thumbnails

Create PNG file for each slide in a presentation.

gslides export thumbnails <source-presentation-id>
notes

Create TXT file with notes from each slide in a presentation.

gslides export notes <source-presentation-id>
list

Print the list of presentations with <document-id> and name.

gslides list
gslides list -owner you@company.com

The output is has lines of the format (owner is present unless filtered):

<id>[space]<title>[space]<owner>
pdf

Export a presentation (or any document) to a PDF formatted file. This requires activation of the Drive API in the Google API library page.

gslides export pdf -o mydoc.pdf <document-id>

append (Work in progress)

Add slide numbers 1 and 2 from the source presentation to the end of target presentation. Use all to copy every slide. Slides appended will use the layout styling of the target master.

gslides append <target-presentation-id> <source-presentation-id> 1,2

© 2021+, ernestmicklei.com. MIT License. Contributions welcome.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL