Code Monkey home page Code Monkey logo

kindle2pdf's Introduction

kindle2pdf

A Python tool that converts Kindle to PDF.

DEMO

Features

If you place the cursor on the upper left and lower right of the e-book you want to shoot, it will automatically turn the page.

If it is an e-book that can be page turned with the left and right keys on the keyboard, it can be converted to PDF even if it is not a Kindle.

As long as you have an execution environment for Python and its libraries, it can run on any OS.

Requirements

Pillow img2pdf opencv-python pyautogui

Installation

If you use pip:

pip install -r requirements.txt

If you use Anaconda:

conda create --name <env name> --file conda_requirements.txt

Usage

git clone https://github.com/1plus1is3/kindle2pdf.git
cd examples
(Create virtual environment with pip or conda)
(Install the virtual environment as above)
python kindle2pdf.py

Note

  • By default, the pagination direction is right, so change it to left if necessary. (capture.py lines 82-83, line 96-97)

  • In current version you have to specify a path to save many images in png format before converting to PDF. Change accordingly according to your environment. (capture.py line 71, pdf_write.py line 33)

  • In the current version, many captured images are not automatically deleted. Please clear it manually if necessary.

Author

  • Suhito Sagara
  • Twitter: @1plus1is__

kindle2pdf's People

Contributors

1plus1is3 avatar

Stargazers

 avatar

Watchers

 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.