Git Product home page Git Product logo

epub-to-pdf's Introduction

EPUB-to-PDF

Telegram bot EPUB to PDF converter, this bot is available on Telegram with the following username: @epub_to_pdf_bot

EPUB to PDF

Usage

Just contact the Telegram bot @epub_to_pdf_bot and send a file.epub, you will receive back a file.pdf.

Local installation (development)

Requirements

  • python3
  • python-telegram-bot
  • calibre (ebook-convert)

If you are using Linux as OS you could install the requirements using the package manager, for debian-based you could use the following command to install the main requirements:

sudo apt install python3 python3-pip calibre

To install the python-telegram-bot framework you can use pip the python package manager:

pip3 install python-telegram-bot

Configure

Create a personal bot contacting @Botfather. Created the bot you will receive an API token, so copy the file token.conf.dist into token.conf, delete the content and put inside the API token.

Well, now, you can run the script main.py and send to your bot the file.epub, you will get a file,pdf back.

Docker installation (production)

docker build -t epub_to_pdf:latest .
docker run -d epub_to_pdf

Credits

epub-to-pdf's People

Contributors

helias avatar v0lp3 avatar herbrant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.