Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtemporal/slidesdotcom2pdf

Docker image for genarating a psf from Slides.com presentation
https://github.com/jtemporal/slidesdotcom2pdf

docker docker-image firefox pdf slide

Last synced: 8 days ago
JSON representation

Docker image for genarating a psf from Slides.com presentation

Awesome Lists containing this project

README

        

# Slides.com to PDF [![Build Status](https://travis-ci.com/jtemporal/slidesdotcom2pdf.svg?branch=master)](https://travis-ci.com/jtemporal/slidesdotcom2pdf)

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](https://github.com/jtemporal/slidesdotcom2pdf/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 .
```