開始使用
KDP Interior Pages — Lined, Dot Grid and Planner

KDP Interior Pages — Lined, Dot Grid and Planner

Send a page kind (lined, dot grid, weekly planner, reading log or recipe), a trim size and a length. Get back an interior PDF with KDP's inside margin for that page count. Runs locally on Python 3.9+ with the standard library only; it makes no upload and needs no account.
#生產力
評分
需要更多評價
已售出
0
使用方式
下載

KDP Interior Pages — Lined, Dot Grid and Planner PDFs

Send a page kind (lined, dot grid, weekly planner, reading log or recipe), a trim size and a length. Get back an interior PDF with KDP's inside margin for that page count.
This is a local command-line tool for Python 3.9 and newer. It uses only the standard library, writes the PDF itself, and needs no account, no network and no extra package. It makes interior files only: no cover, no upload, no listing.

What it does

  • Makes lined, dot-grid, weekly-planner, reading-log and recipe-card interiors in 5x8, 5.5x8.5, 6x9 or 8.5x11 inch trim.
  • Sets the inside margin to the minimum in KDP's margin table for your page count (for example 0.375 in for 24-150 pages); you can raise it with --inside.
  • Draws every letter and number as lines (a single-stroke font), so the PDF contains no font to embed. The letters look like thin technical lettering, not like Helvetica.
  • --check FILE reads the page count and size back from a PDF this tool wrote, and refuses a file that is cut short or whose page count does not match its page tree.
  • Refuses text it cannot draw (for example ß, £, §, Cyrillic, Japanese, emoji) with one error line that names the character; it never swaps in another character.

Example (real output)

$ python3 scripts/kdp_interior_pages.py lined --pages 120 --output lined_120_pages_6x9.pdf
Wrote 120 pages, 6x9 in, inside margin 0.375 in -> lined_120_pages_6x9.pdf

$ python3 scripts/kdp_interior_pages.py --check lined_120_pages_6x9.pdf
pages=120 size=432x648 pt trim=6x9 in (ok)

Included

A standalone Python command (standard library only), README, real example PDFs with the commands that made them, and an automated test suite.

Important

KDP can change its margin numbers: check the source page given in the README, and look at every file in KDP's previewer before you publish. This tool does not guarantee that KDP accepts a file. Text is drawn as lines, so it cannot be selected or searched in a PDF reader.