Skip to content

jtemporal/slidesdotcom2pdf

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Slides.com to PDF Build Status

A simple script to print out each slide and turn it into a PDF file using Selenium.

TODOs

Things to improve: Checkout the open issues

Usage

With Docker

Docker is the recommended way to use this.

docker pull jtemporal/slidesdotcom2pdf
docker run --rm --name sdc -v $(pwd)/slides:/tmp/result jtemporal/slidesdotcom2pdf http://slides.com/jtemporal/test

Without Docker

pip install -r src/requirements.txt
python src/sdc2pdf.py http://slides.com/jtemporal/test

You'll also need geckodriver and firefox installed:

  • for geckodriver:
curl -L https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz | tar xz && sudo mv geckodriver /usr/bin/geckodriver
  • for firefox:
curl -L https://download-installer.cdn.mozilla.net/pub/firefox/releases/56.0.2/linux-x86_64/pt-BR/firefox-$FIREFOX_VERSION.tar.bz2 | tar xj && sudo mv firefox /opt/firefox/ && ln -s /opt/firefox/firefox /usr/bin/firefox

Development

to build:

docker build -t slidesdotcom2pdf .