Skip to content

TiiZss/PortadaKDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PortadaKDP

Version Python Buy Me A Coffee

A Python script to generate Amazon KDP (Kindle Direct Publishing) paperback covers by combining a front and back PDF page and adding a customizable spine text.

Features

  • Automated Composition: Combines front and back covers into a single print-ready PDF.
  • Dynamic Spine Generation: Automatically calculates spine width based on page count and KDP cream paper standards.
  • Text Adjustment: Dynamically adjusts spine text size to fit.
  • UV Support: Designed to be run easily with uv.

Prerequisites

  • uv installed.

Installation & Usage

No manual virtual environment setup is needed if you use uv.

  1. Run the script:
    uv run PortadaKDP.py -i input.pdf -o cover.pdf -p 150 -t "MY BOOK TITLE"

Arguments

Argument Flag Default Description
--input -i entrada.pdf Input PDF containing at least 2 pages (Page 1 = Front, Page 2 = Back).
--output -o CUBIERTA_FINAL_KDP.pdf Output filename.
--paginas -p 177 Number of pages in the book (used for spine calculation).
--texto -t (Preset Title) Text to display on the spine.
--direction -d bottom-up Spine text direction: bottom-up (Europe) or top-down (USA).
--no-confirm False Skip the interactive text confirmation prompt.

Notes

  • The script assumes KDP Cream Paper specifications for spine calculation.
  • Images are extracted at 300 DPI for high-quality printing.

About

Generador automático de cubiertas para Amazon KDP (tapa blanda) a partir de un PDF, optimizado para papel crema y ajustable dinámicamente.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages