converts PDF files to CBZ archives. https://github.com/gryffyn/pdf2cbz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gryffyn 73161ef886
edited readme, prettified help
3 months ago
.github/workflows Create codeql-analysis.yml 3 months ago
.drone.yml added ci 3 months ago
.gitignore added ci 3 months ago
LICENSE Create LICENSE 4 months ago
README.md edited readme, prettified help 3 months ago
go.mod Switched bar package, added debug info, switched to using percent 3 months ago
go.sum Switched bar package, added debug info, switched to using percent 3 months ago
pdf2cbz.go edited readme, prettified help 3 months ago

README.md

pdf2cbz

CodeQL Build Status

Converts PDF files to CBZ archives.

A Word(s) of Warning

  • Don't use the PNG option as it is right now, it tends to increase the size of the CBZ relative to the PDF by about 2-10x. So a 58MB PDF outputs a CBZ around 530MB.

Building

Requires CGO, and uses the MuPDF Fitz library.

git clone https://github.com/gryffyn/pdf2cbz
cd pdf2cbz
go build

alternatively,

go install github.com/gryffyn/pdf2cbz

Usage

Usage:
  pdf2cbz.linux.x64 [OPTIONS] [<INPUT PDF>] [<OUTPUT CBZ>]

Application Options:
  -i, --images        Extracts images from PDF (default: extracts pages)
  -p, --png           Outputs pages as PNG (default: jpeg)
  -c, --crop=         Dimensions of the crop region (css shorthand, comma-delimited) in percent. Ex. '10,15,20,25' means 10% off the top, 15% off the right, so on
  -q, --quality=      JPEG quality (0-100) (default: 85)
      --debug         enable debug printing

Help Options:
  -h, --help          Show this help message