# How to add a cover to a Markdown PDF

> A cover is a full-bleed image on its own page, not a heading in a bigger font. How to attach one, what size to make it, and the mistakes that make a letterhead.

Canonical: https://buk.press/blog/markdown-pdf-cover

30 August 2026 · 4 min read

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:

```
<code>![Cover](cover.jpg)

# The Quiet Hour

A short book about leaving the phone in another room.</code>
```

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.

If the cover artwork is in the Markdown, it will reflow like content. If it is attached to the document as a cover, it will behave like a cover. That is the whole distinction.

## 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.

| Destination | Cover size | Notes |
|---|---|---|
| A4 PDF, digital or desktop-printed | 2480 × 3508 px, RGB, JPEG or PNG | Fills the sheet at 300ppi |
| Ebook stores (Kindle, Apple, Kobo) | 1600 × 2560 px, 1:1.6, RGB, JPEG | A different ratio; see [cover dimensions](https://buk.press/blog/ebook-cover-dimensions) |
| Print-on-demand paperback | One spread: back + spine + front, at trim size plus bleed | Not 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](https://buk.press/blog/canva-for-books)) and attach it as a cover, not as an inline image.

## How bukpress attaches one

With [Lifetime](https://buk.press/pricing), 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.

Exporting the book, covers included, needs Lifetime. The [sample book](https://buk.press/sample-book) shows the interior those covers wrap around.

**About this article.** Written by the team that builds bukpress, which turns Markdown into print-ready PDF and EPUB books. Spotted something wrong or out of date? Write to [support@buk.press](mailto:support@buk.press).

## Read next

Design 30 August 2026 · 4 min read

## [Ebook cover sizes that work in every store](https://buk.press/blog/ebook-cover-dimensions)

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](https://buk.press/blog/ebook-cover-dimensions)

How-to 30 August 2026 · 5 min read

## [How to add page numbers to a PDF from Markdown](https://buk.press/blog/markdown-page-numbers)

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](https://buk.press/blog/markdown-page-numbers)

Tools 30 August 2026 · 6 min read

## [Canva ebook templates: when they work, and where they stop](https://buk.press/blog/canva-for-books)

A Canva ebook template works for a short, designed PDF: a lead magnet, a workbook or a guide of up to a couple of dozen pages, plus the cover of any book. Pick an ebook template, replace the text and images, and download it as a PDF. Do not use it to typeset a long book: Canva exports PDF, not the EPUB that Kindle and most stores want, and past a few dozen pages every edit becomes a layout job because there is no manuscript underneath.

[Read it](https://buk.press/blog/canva-for-books)

## 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, ever.

[Get Lifetime, $27 once](https://app.buk.press/signup)
