How to add a cover to a Markdown PDF

Treat the cover as a separate full-bleed image, sized to the page, placed as page one of the PDF and — for an ebook — as the file's native cover. Do not fake it with a large heading and a JPEG dropped into the first paragraph; that produces a title page with a picture on it, which is a different object and reads as one.

Markdown can include an image. That is not the same as a cover. A cover has no margins, no page number, no body type sitting under it, and it is how the file is judged at thumbnail size before anyone opens it. Getting from a manuscript to that object is a production step, not a syntax one.

A cover is a page, not an image in the flow

If you write this at the top of the file:

![Cover](cover.jpg)

# The Quiet Hour

A short book about leaving the phone in another room.

you get an illustration, then a heading, then a paragraph, all sitting inside the page margins. The image will be scaled to the content width, it will not reach the edges, and a page number may well sit under it. That is a title page with a picture. Stores, printers and readers all treat it as the first page of content.

A real cover is a different kind of page: zero margin, the image filling the sheet, no footer, a page break after it so the title page or chapter one starts clean. The manuscript should not have to describe any of that.

What size to make the artwork

Match the page, at print resolution, or slightly above. For an A4 PDF that is 210 × 297 mm. At 300 pixels per inch — the number a printer will ask for — that is roughly 2480 × 3508 pixels. RGB is correct for a digital PDF; a commercial printer may ask for CMYK, which is a conversion you do to a copy, not to the file you also use on screen.

DestinationCover sizeNotes
A4 PDF, digital or desktop-printed2480 × 3508 px, RGB, JPEG or PNGFills the sheet at 300ppi
Ebook stores (Kindle, Apple, Kobo)1600 × 2560 px, 1:1.6, RGB, JPEGA different ratio — see cover dimensions
Print-on-demand paperbackOne spread: back + spine + front, at trim size plus bleedNot an A4 page. Ask the printer first.

The ebook cover and the PDF cover are usually two files. A4 is 1:1.41; store thumbnails are 1:1.6. One image cannot be both without letterboxing or cropping, and you do not control which the store will do. Make the tall one for the storefront and the page-shaped one for the PDF.

The mistakes that read as amateur

  • A white border around the art. That is the page margin showing. The cover was placed as content, not as a cover page.
  • A page number on the cover. The footer leaked onto a page that should have suppressed it.
  • The title set twice — once in the artwork and once as a Markdown # under it. Pick one. The artwork is the one that survives at thumbnail size.
  • Low-resolution art stretched to the page. Anything under about 150ppi on paper looks soft, and readers blame the book, not the image.
  • Tiny type in the artwork. Shrink the cover to 150 pixels wide. If you cannot read the title, neither can a shopper.

A back cover, if you have one, is the same object at the other end of the PDF: full-bleed, no number, no body text leaking onto it. Ebooks do not have a back cover — the metadata and the store page do that job — so a back-cover file is for print and for a PDF you hand to someone as a finished book.

What each route actually supports

Pandoc will put an image on the title page with -V titlegraphic: and a bit of template; making it full-bleed is a LaTeX problem. Browser-print and most "paste Markdown, get PDF" sites have no cover concept at all — you concatenate a one-page PDF in front with a separate tool, and then the page numbers of the whole file are wrong. InDesign and Affinity treat the cover as page one of a layout, which is correct and is also why people open them for a cover and then feel they have to typeset the book in them too.

The clean split is: write the book in Markdown, make the cover in whatever you already use for images — even Canva is fine for *this* job, see where Canva actually stops — and attach it as a cover, not as an inline image.

How bukpress attaches one

On Essentials and above, you upload a front cover and optionally a back. The front becomes PDF page one, full-bleed, no footer; it is also the native cover of the EPUB, so the same file is what a Kindle shows in the library. The back becomes the last page of the PDF. Neither is written into the Markdown, so editing chapter four cannot disturb them.

The free plan typesets the interior and leaves the cover off — a limitation of the plan, not of the file format. The sample book shows the interior those covers wrap around.

Read next

Design · 4 min read

Ebook cover sizes that work in every store

Make one cover at 1,600 by 2,560 pixels — a 1:1.6 ratio, RGB, saved as a high-quality JPEG under about 5MB — and it will satisfy every major ebook store. A print cover is a separate job entirely, because it is one spread covering back, spine and front at the physical size of the book.

Read it
How-to · 5 min read

How to add page numbers to a PDF from Markdown

Page numbers are not Markdown — they are a property of the page the file is rendered onto. The working method is to turn them on in the renderer, in the footer, and to suppress them on the cover and any other full-bleed page. Anything that tries to type "12" into the manuscript itself will be in the wrong place the moment the text reflows.

Read it
Tools · 4 min read

Canva for books: what it is good at, and where it stops

Use Canva for the cover, for a one-page lead sheet, and for any document that is really a designed poster with a few sisters. Do not use it to typeset a book. Past a couple of dozen pages you are doing frame-by-frame layout with no manuscript underneath, and every edit becomes a layout job.

Read it

Write it in Markdown. Ship a book.

bukpress turns the file you are already writing into a typeset PDF and EPUB — your type, your covers, no watermark on any plan.

Start free — no card required