Django eBook Generator Script
Python Scripts
eBook Generator is a Django-based tool that converts manuscripts (TXT, DOCX, or PDF) into professionally formatted PDF eBooks. It automatically detects chapter and section structure — including headings, numbered sections, and list-style entries — and presents it on an editable Structure step so nothing gets baked into the final book without review. The output PDF ships with an auto-generated table of contents, branded typography (Inter for body, Coderobotics for headings), and a matching AI-generated cover produced via Pollinations.ai, with Hugging Face as a free-tier fallback. The entire pipeline — parsing, cover generation, and PDF building — runs as background jobs, synchronously by default for local development or via Celery and Redis for production. Built entirely on free tools and free-tier services, it requires no paid APIs to run. Complete source code included.
Django eBook Generator Script
Turning a raw manuscript into a properly typeset e-book usually means manual formatting, chapter numbering, a table of contents built by hand, and commissioning cover art. eBook Generator automates the whole pipeline — upload a manuscript, review the auto-detected structure, and download a publication-ready PDF with a matching AI-generated cover.
What You Get
- Manuscript upload and parsing for TXT, DOCX, and PDF source files
- Automatic chapter/section detection (heading styles, "Chapter/Part N" markers, numbered listicle entries, and list-style formatting)
- An editable Structure step so detected chapters/sections can be reviewed and corrected before generation
- Auto-generated table of contents in the final PDF
- AI-generated cover art (Pollinations.ai, with Hugging Face free tier as fallback) with the title/author rendered as a clean text overlay — never baked into the image
- Optional reference image upload used as loose style inspiration for the cover
- Branded PDF output with custom embedded fonts (Inter for body text, CodeRobotics for headings)
- Background job processing for parsing, cover generation, and PDF building
Why This Toolkit?
- Zero paid dependencies — runs entirely on free tools and free-tier AI services
- Human-in-the-loop structure editing means auto-detection mistakes never make it into the final book
- Clean, modern UI (Tailwind + HTMX + Alpine.js) with no page-reload workflow
- Runs fully locally with no external job queue required for development
Perfect For
- Independent authors self-publishing a manuscript as a PDF e-book
- Small publishers needing a fast first-pass layout and cover concept
- Writers who want a quick, presentable PDF without touching design tools
Tech Stack
- Django 6
- Celery (background task processing)
- WeasyPrint (PDF rendering)
- python-docx, PyMuPDF (document parsing)
- Tailwind CSS, HTMX, Alpine.js (frontend)
- Pollinations.ai / Hugging Face (AI cover generation)
Prerequisites
- Python environment with project dependencies installed
- GTK3 runtime on Windows (for WeasyPrint/PDF rendering); native on Linux/Docker via standard Pango/Cairo libraries
- Redis + Celery worker for production-style background processing (optional for local development, which runs jobs synchronously)
License
A regular license permits the use of an item in a single project, whether for personal or commercial purposes, by you or on behalf of a client. Resale of the item, either individually or as part of a project, is prohibited, and the distribution of source files is not allowed.
Server Requirements
- Django 6
- Celery (background task processing)
- WeasyPrint (PDF rendering)
- python-docx, PyMuPDF (document parsing)
- Tailwind CSS, HTMX, Alpine.js (frontend)
- Pollinations.ai / Hugging Face (AI cover generation)
Payment Type
One time Payment: Upon receiving your full payment, we will provide you with the complete source code. After that, no additional payments will be required.
Delivery Time
We will send the Download Link to you Within 2-4 hrs. On Working Days(Monday- Friday) And the source code will deliver within 4-8 hours On Weekends (Saturday -Sunday).
Technical Support
Unlimited Email Support for One Year.
Script Update
Free Updates for One Year.
Customization Scope
Includes Complete Source Code.
Encryption
No Encryption and No Domain Limitations.
Installation
No Free Installation Services. Our charges range from $5 to $10, depending on the software's complexity and criticality.
No comments yet. Be the first to comment!