Skip to main content

A tool to produce a PDF ebook from an cover image and interior PDF

Project description

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.

pip install pdfebook

Usage

To produce just a PDF:

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

You can include a back cover, too:

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:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfebook-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pdfebook-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pdfebook-0.1.2.tar.gz.

File metadata

  • Download URL: pdfebook-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for pdfebook-0.1.2.tar.gz
Algorithm Hash digest
SHA256 95ef00cd2041bebce494576f7f1f5e33e7866ad1fa4bead060bea604c7af6034
MD5 dab7c577a326e19721dfce75ca76d434
BLAKE2b-256 2e80e6f8b0822ef571e985319ef04eec20d676b9621ea11a21414de039b622dd

See more details on using hashes here.

File details

Details for the file pdfebook-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdfebook-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for pdfebook-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8787691a14ad21dca60329ad0a83f744396f3c0ea513af4bfeb56552c6403397
MD5 2fdfeee97811da40b2039009d784d32a
BLAKE2b-256 ce2147e5ceffe76f8350c6d56507729d71b6baf7d759a6eda67017ea7b91a6e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page