Giter Club home page Giter Club logo

cbx2pdf's Introduction

alt tag

cbx2pdf

Ruby script to convert CBR or CBZ files to PDF.

Features:

  • Can trim whitespace from pictures
  • Autoscales images to fit page
  • Auto orientates page according to dimensions

Requirements:

  • p7zip and unzip

Usage

cbx2pdf -[crtvVd:i:o:p:]

-V: Display version information
-h: Display usage information
-d: Deskew images (by threshold - 0.40 is good for most images)
-t: Trim pictures
-i: Input file (.cbr or .cbz)
-o: Output file (pdf)
-c: Check local configuration
-p: Page size (default A4)
-r: Resize images rather than scaling them

Example

Convert file "Issue 001.cbr":

cbx2pdf.rb -i "Issue 001.cbr"

Convert file "Issue 001.cbr", trim white space from edges, deskew them, and output to "Issue_001.pdf":

cbx2pdf.rb -i "Issue 001.cbr" -o Issue_001.pdf -t -d 0.40

If no output file is given, the output will be to the current directory. The file name will be the same as the input file, but with a .pdf extension, rather than a .cbr or .cbz extension.

If no switches are given it will assume the first argument is the input file and the second is the output file. For example:

cbx2pdf Painter\ \&\ Poet\ William\ Blake.zip Painter\ \&\ Poet\ William\ Blake.pdf

Wildcards can now also be used, eg:

cbx2pdf *.cbr

License

This software is licensed as CC-BA (Creative Commons By Attrbution)

http://creativecommons.org/licenses/by/4.0/legalcode

cbx2pdf's People

Contributors

richardatlateralblast avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.