Git Product home page Git Product logo

comics2pdf's Introduction

comics2pdf

A script to convert comic files (cbr, cbz) to pdf, in python3. Works in Windows. Linux not tested.

Getting Started

To use it, just place the .py script in the same directory the file(s) to convert are in and run the command:

python comic2pdf.py

Prerequisites

Script in Python 3.6 (probably won't work with Python 2.x versions). Requires the "zipfile", "patool" and "pillow"(aka PIL) modules in order to work correctly. To install them run the following commands:

pip install zipfile
pip install patool
pip install pillow

In windows you'll need to run cmd.exe using the "run as administrator" option for those commands to work.

Installing

Just place all the .cbr/.cbz files desired to convert to pdf in one directory, place the script in that same directory and run the following command:

python comic2pdf.py

It's a good idea to rename (before running the script) the .cbr/.cbz files that have names like "01.cbz" to "Comic Name 01.cbz", as the output .pdf will get its name from the input comic file.

Built With

  • [Python 3]

Authors and Acknowledgments

  • MComas1

Based on a python script by bransorem (https://github.com/bransorem/comic2pdf).

comics2pdf's People

Contributors

mcomas1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comics2pdf's Issues

Requires an executable to un-rar .cbr files

Following the install directions as they are leads to the error:

patoolib.util.PatoolError: could not find an executable program to extract format rar; candidates are (rar,unrar,7z),

Maybe a package that unrars files by itself without just being a wrapper around existing tools should be used

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.