Metadata-Version: 2.3
Name: pdfebook
Version: 0.1.4
Summary: A tool to produce a PDF ebook from an cover image and interior PDF
Author-email: Jacob Smullyan <smulloni@saggingmeniscus.com>
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: click>=8.1.7
Requires-Dist: fpdf2>=2.7.9
Requires-Dist: pypdf>=4.2.0
Description-Content-Type: text/markdown

# pdfebook

A tool to produce a PDF ebook from a cover image and interior PDF,
or a ZIP archive containing a PDF ebook and an EPUB.

## Installation

Python 3.12 or better is expected.

```bash
pip install pdfebook
```

## Usage

To produce just a PDF:

```bash
pdfebook \
    --cover cover.jpg \
    --interior interior.pdf \
    --author "An Author" \
    --title "Title of Book" \
    --outfile ebook.pdf
```

You can include a back cover, too:

```bash
pdfebook \
    --cover cover.jpg \
    --interior interior.pdf \
    --author "An Author" \
    --title "Title of Book" \
    --back back_cover.jpg \
    --outfile ebook.pdf
```

Or, if you have an EPUB, you can create a ZIP file with both formats:

```bash
pdfebook \
    --cover cover.jpg \
    --interior interior.jpg \
    --author "Quite N. Author" \
    --title "That Book" \
    --outfile "that_book.zip"
```

In the latter case, the resulting ZIP file will contain a directory,
`that_book`, itself containing files `that_book.pdf` and `that_book.epub`.
