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.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdfebook-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 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.4.tar.gz
Algorithm Hash digest
SHA256 8bf114cc2ca0581f6107ff8f009d367ebba91b913da013ea01de0babcf82beb9
MD5 1adff646fb08297b1336fc847f768937
BLAKE2b-256 4b57324ffbfb3147f28e3dbb4c0f4441ba7c1bc7a1842e1a353d85f17788f80f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdfebook-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d6f9a7c804bd4a11e13db2aa0107471f1448865819c533fc167c0e1df8d89872
MD5 7eb530ec4e7b4c293396b4f590f78526
BLAKE2b-256 dd92c1d048c56276e929e10490861cbf8b388fa51080048f498b2362517bf36c

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