Stella
Reading and writing

Convert a PDF to an EPUB that reads properly

A 20-page novel PDF as a reflowable ebook with 8 chapters, no stray page numbers.

Download StellaFree with the plan you already have.

A real run on 14 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. Shown 15× faster; it took 3 min 56 s.

The short answer.

Open the PDF in the free Calibre, fix the title and author, then Convert books with EPUB as the output and turn on header and footer removal, or the book's page numbers and running heads end up mid-sentence. Check the result in Calibre's viewer before copying it to your e-reader. Stella (stella.sh) does the conversion on your computer: it strips page furniture, rejoins split words, builds a chapter list and checks the file with the standard EPUB validator.

Stella does this on Windows, Mac and Linux.

What happened.

An EPUB in about 4 minutes. Checked afterwards against an answer key written before the run: a valid, reflowable EPUB (text, not page pictures) titled The Lantern Keeper's Daughter by Wren Alder, a contents list of all 8 chapters in order, every sampled sentence intact, no running heads or page numbers left in the text, words split at line ends joined back up, and the PDF unchanged.

The novel is made up and was typeset for this run with running heads, page numbers and hyphenation on purpose. The work is sped up 15×.

How Stella does it.

  1. Finds The Lantern Keeper's Daughter - Wren Alder.pdf in Downloads and reads its text and layout, noticing the file's title is the leftover Microsoft Word - LKD_final_v3.docx
  2. Looks at a few page images to see where the running heads, page numbers and chapter openings sit
  3. Writes a small converter of its own that drops the heads and page numbers, joins words split across lines and starts a new section at each chapter
  4. Builds the EPUB with the real title and author, a contents page for all 8 chapters, and the PDF's title page as the cover
  5. Downloads the W3C's EPUBCheck validator (and a Java runtime to run it) into a work folder, checks the book passes with no errors, and previews chapters in a browser
  6. Saves the EPUB next to the PDF, which it leaves untouched

The prompt.

Convert the novel PDF in my Downloads to an EPUB so it reads properly on my e-reader.

Paste it into Stella and press Enter.

This is the exact prompt from the recording. If your files are somewhere else, say where.

Do it yourself.

  1. Add the PDF to Calibre

    Install the free Calibre from calibre-ebook.com and drag the PDF into its window. If the title column shows something like “Microsoft Word - final.docx”, double-click the book and type the real title and author.

  2. Remove the page furniture

    Click Convert books and set the output format to EPUB. Under Search & replace, add a regular expression that matches the running head line (the book or author name) and one that matches lone page numbers, so they don't land in the middle of sentences.

  3. Mark the chapters

    Under Structure detection, set the chapter expression to match lines that start with “Chapter”. That gives the e-reader a table of contents you can tap through.

  4. Check it in the viewer

    Open the new EPUB in Calibre's viewer and page through two or three chapters. Look for numbers or headers inside paragraphs and for words broken with a hyphen. Fix the expressions and convert again if needed.

  5. Copy it to the reader

    Connect the e-reader and use Send to device, or copy the file across. Kindles take EPUB through Amazon's Send to Kindle, which converts it on their side.

Where it stops.

  • This works for PDFs with real text. A scanned book (pictures of pages) needs text recognition first, which is slower and introduces typos.
  • Pictures, footnotes, tables and two-column layouts don't reflow as cleanly as plain novel text. Check those pages yourself.
  • The book's text goes to the AI model you use in Stella while it works out the layout, along with a few page images. The EPUB is built on your computer.
  • Recorded on Linux, where PDF text tools were already installed. On a Mac or Windows PC Stella may install a PDF library or Calibre first, which wasn't recorded. It also fetched a Java runtime and the EPUBCheck validator, about 200 MB, into its work folder.
  • Stella won't convert DRM-protected store books.

Questions.

Why does my converted EPUB have page numbers in the middle of sentences?

The converter copied the PDF's page headers and numbers into the text. Calibre can remove them with header and footer expressions; Stella removes them by recognising the repeated lines on every page.

Can I put the EPUB on a Kindle?

Yes. Send it with Amazon's Send to Kindle (app, web page or email), which accepts EPUB and converts it for the Kindle.

Should I convert a PDF to EPUB or just read the PDF?

Read the PDF if it's a comic, a manual with diagrams or anything laid out page by page. Novels and plain text read far better as EPUB on a small screen, because the text reflows to your font size.

Can it go the other way?

Yes: see convert EPUB to PDF. For old Kindle files, see convert MOBI to EPUB.

Is Stella free for this?

Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

Can I control what Stella changes on my computer?

Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Checked against these sources on 14 November 2026.

Stella