The **Book** tab of the **Export** window turns your story into a gamebook to print or to read on screen. You get a print-ready PDF and its cover, an ebook (EPUB or HTML page), or the text of the book (Word manuscript or Markdown file).

![Export window, Book tab: section 1 Use with the Print, Digital and Text use cards](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdjRKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ba2454ee2848c06183354fc1161b91eba433df06/project-exporter--exporter-livre.en.png)
*the Export window open on the Book tab*

## What the book export does

The book starts from the **starting module** you choose:

- each text block becomes a **numbered paragraph**;
- each choice becomes a **link** to the paragraph it leads to, for example "Open the door: turn to 42";
- a condition becomes a conditional choice ("if ...", "otherwise");
- a paragraph with no choice ends with "(The End)".

Blocks are analyzed before the export. Those the book cannot reproduce (for example an animation or an interactive block) are left out and listed in the check, so you know what will be missing.

## Open the Export window

- In the project menu, choose **Export**.
- Or use the shortcut **Cmd + Shift + S** (Mac) or **Ctrl + Shift + S** (Windows, Linux).

The window opens on the **Book** tab. The other tabs (Modules, Data, Files) are for other exports. For a playable app (web, mobile, desktop, SCORM, VR), use **Publish** instead.

The **?** button at the right of the tabs opens this help page.

When the window is wide (maximized, for example), the form scrolls on the left and the book preview stays on the right. The book is then computed again automatically shortly after each change. For an EPUB, a web page, a Word manuscript or a Markdown file, the preview shows the file in that format.

![Maximized Export window: book form on the left, book preview reader on the right](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdjhKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5ca7b4528d7e076f395d84100daf082b981d8a77/project-exporter--exporter-livre-lecteur.en.png)
*the maximized window, form on the left and preview on the right*

## Step 1: the use

Choose what the book is for, in the **Use** section. The uses are cards sorted into three groups: **Printed**, **Digital** and **Text**. Each card shows the format of the file it makes (PDF, EPUB, HTML, DOCX or MD).

### A PDF book

For a PDF, the use sets the format, the margins, the bleed and the links. "On-screen reading" sits in the Digital group, but it does make a PDF.

| Use | For | Starting settings |
|---|---|---|
| Print on demand (paperback) | A paperback ordered one copy at a time | 5.5 x 8.5 inches, cream paper, even page count, no links, separate cover |
| Professional printer | A file ready for a printer | A5, white paper, 3 mm bleed, even page count, no links |
| Home printer (default) | To print and bind at home | A4, white paper, page count a multiple of 4, clickable links kept |
| On-screen reading | A PDF to read on screen | A5, clickable links, no bleed |

Your browser remembers the last use you chose.

With the home printer, the **Booklet to fold (signatures)** option also produces (or only produces) a booklet: each page is reduced to half a sheet, and the links are no longer clickable. Print it double-sided, flipped on the short edge, at 100%.

### An ebook or the text of the book

| Use | Group | What you get |
|---|---|---|
| E-reader and ebook | Digital | An EPUB file for e-readers and reading apps (Kindle, Kobo, Apple Books, Google Play Books); each choice is a link. |
| Web page | Digital | A single HTML file to open in a browser or to host, with links between paragraphs. |
| Word manuscript | Text | A DOCX file to proofread and annotate the text in a word processor, with links between paragraphs. The final layout remains that of the PDF. |
| Plain text | Text | A Markdown file, readable anywhere, with anchors between paragraphs. |

With these four uses, the window has only three steps: the use, the content, then **Check and generate**. There is no layout and no flat cover to set.

- In the content, the **Language of the book** field (French or English) sets the language of the wording the book adds and the typography of the file. The text of your story is not translated.
- In **Check and generate**, the check of the book is shown, then the download button: **Download the EPUB**, **Download the HTML page**, **Download the manuscript (DOCX)** or **Download the Markdown**.
- For the EPUB only: **Add a cover** (the project image by default, or an image chosen from the project files or uploaded from your computer) and **Embed the book font**. An image that is too small (1600 x 2560 pixels recommended) or whose proportions are far from 1.6 is reported.
- The Word manuscript includes the title page, the dedication, the rules, the adventure sheet and the end of the book, each on its own page.
- In a wide window, the preview on the right shows the file. The one of the Word manuscript is approximate: the exact page breaks depend on Word. For Markdown, the **Source** tab of the preview shows the text of the file.

## Step 2: the content

### Starting module, author and numbering

- **Starting module**: the module the story starts from. The book begins at its start block.
- **Author**: your name by default.
- **Numbering**:
  - **Story order**: numbers follow the order of the story;
  - **Shuffled**: numbers are drawn at random, which keeps the reader from guessing the next paragraph.

With shuffled numbering, the **Seed** field lets you make exactly the same book again: the same seed gives the same shuffle. Leave it empty to draw one; the drawn seed is written in the field when you click **Compute** or when you download the file, and it is printed in the colophon of the PDF book. If linked paragraphs stay close to each other (a short or very dense book), a message lists them.

### The pages around your paragraphs

Your choices are kept for this project, in this browser.

- **Title page**: a subtitle (printed under the title) and a **dedication** (printed on a page of its own, after the title page).
- **Rules of the game**: the rules and the introduction, printed before paragraph 1.
- **End of the book**: the **colophon** (printed on the last page), the **copyright notice** and the **ISBN**. The ISBN is optional; it is issued by the ISBN agency of your country or by your print service. An ISBN that does not look valid is reported, but printed as is.

### Format the text

The dedication, the rules, the colophon and the free sheet use a rich text editor, as in comments:

- bold, italic, underline;
- heading;
- lists;
- alignment.

**Shift + Enter** starts a new line within the paragraph. A counter shows the number of characters used.

![Game rules part enlarged: Rules and introduction field with its formatting bar, keyboard shortcuts and page preview](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0FLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--331dde747ec7779423cca95feb256ca731821ec6/project-exporter--exporter-livre-plein-ecran.en.png)
*the rules editor with its formatting bar*

### The adventure sheet

The **Print an adventure sheet** switch (on by default) adds the sheet the reader fills in while playing. It comes in two forms.

**Structured sheet**:

- a title;
- **characteristics** (8 at most), each with a roll reminder, for example "1d6 + 6";
- **sections** (12 at most), each with its number of lines.

The sample template, inspired by classic gamebooks, offers SKILL, STAMINA and LUCK, then Gold, Backpack, Weapons, Spells, Encounters and Notes. Replace it with your own characteristics, or use **Start from the project variables**: one characteristic is created for each number variable of the project. **Reset the sheet** goes back to the sample template.

**Free sheet**: a rich text you write entirely. It starts from the structured sheet; the "______" are the blanks the reader fills in. **Start again from the structured sheet** copies the structured sheet again.

**Layout of the sheet**:

- **Condense the sheet** so that it fits on one page;
- **Columns of characteristics**: 2, 3 or 4;
- **Style of the boxes**: frame, underline or circle;
- **Lines of the rows**: normal or tight.

With the free sheet, only the Condense option applies. The text of the free sheet also follows the **Hyphenation** setting of the layout, like the rules of the game.

The **preview in the book** shows the sheet on two pages, as it will be printed, and tells whether it fits or overflows. For the free sheet, the preview is an estimate: the generated book is what counts.

![Adventure sheet part: sheet settings (form, attributes, sections, layout) then its two-page preview](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0VLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--80a27c62a610d66c3cea7edf82e08cb68208e552/project-exporter--exporter-livre-feuille-aventure.en.png)
*the adventure sheet and its two-page preview*

## Step 3: the layout

This step and the next two are for the PDF uses. This section is folded by default: the use has already set everything. Open it to change:

- the **format**: 5 x 8, 5.5 x 8.5 or 6 x 9 inches, A5, A4 or custom (in mm);
- the **paper**: white or cream;
- the **book font**: Classic, Modern or Readable;
- the **bleed** and its width;
- justified text, **hyphenation** (long words cut at the end of a line) and the running head;
- the **body text size**, automatic by default;
- the title page (title and author at the start of the book);
- **Merge text and choices** (on by default): choices are placed at the end of the paragraph before them instead of forming a paragraph of their own.

## Step 4: check and generate

- **Compute** prepares the preview of the book and runs the check.
- **Generate the book (PDF)** saves the book.

The summary gives the number of pages (blank ones included), the estimated spine width and the size of the flat cover.

### What the check reports

The check sorts its remarks into three groups.

**Problems that keep the book from being playable to the end**:

- a choice leads to a block that no longer exists;
- a choice leads nowhere (nothing is connected to its output);
- a paragraph only leads back to itself: the reader can no longer get out.

**Points to check**:

- no choice leads to a paragraph (it is printed at the end of the book);
- no ending can be reached from a paragraph;
- every choice of a paragraph depends on a condition, with no "otherwise";
- a paragraph sends the reader back to itself.

**What the book cannot reproduce**:

- a block left out near a paragraph (see the known limits below);
- several choices of a paragraph lead to the same paragraph;
- an empty paragraph;
- the number of paragraphs of the book.

The check also reports printing points: fewer than 24 pages, more than 828 pages, too many blank pages in a row or at the end, blank pages added, a font not embedded, a margin too small for print on demand.

When there are problems, you can **export anyway**, but the book will keep these defects.

![Check and generate section: check report with issues to fix, points to check and notes, Cancel and Export anyway buttons](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bc080a9f43da04613d38edfa7fe8efc75c11261a/project-exporter--exporter-livre-generer.en.png)
*the check report*

## Step 5: the cover

Compute the book first: the cover depends on it. The cover of an EPUB is set elsewhere, in **Check and generate** of the **E-reader and ebook** use (see step 1).

### The flat cover

The flat cover puts the back cover, the spine and the front cover on a single page. **Customize** lets you set:

- the texts: title, author, back cover text;
- the image: the project image or a PNG or JPEG image;
- the colors: background and spine;
- the marks: an area kept for the barcode, and guides not to send to print.

Under 80 pages, the spine is too thin to carry text: it stays plain.

### The printer preset and the spine

The **printer preset** sets the spine width from the data published by the printer. The spine width is the number of pages times the thickness of a page.

| Preset | Thickness used |
|---|---|
| KDP | 0.0635 mm per page on cream paper, 0.0572 mm on white paper |
| IngramSpark | about 0.061 mm per page on cream paper |
| Lulu | 1/444 inch per page, plus 1.5 mm for the cover |
| Other | the thickness of a page given by your printer |

When the chosen paper has not been measured at that printer, the value is estimated and a message says so. Always check with the printer's template.

The bleed of the cover is 3.175 mm (1/8 inch) for print on demand and 3 mm for a professional printer.

### CMYK colors

With the **Professional printer** use, the **CMYK colors for the print shop** switch (on by default) writes the background and the texts of the cover in CMYK. A cover image stays in RGB, and the file is not a PDF/X: see the tips for IngramSpark below.

## The preview and the reader

For a PDF book, the preview is the final file: the links, fonts and margins are those of the book you will save.

- **Show the covers** adds the front and back covers around the pages; **Flat cover** shows the whole cover.
- **Page display**: single page, continuous or two pages (book).
- **Zoom**: from 25% to 400%, whole page or width. Ctrl + wheel or pinch to zoom.
- **Thumbnails** to go to a page.
- With the keyboard: arrows and Page Up/Down to turn pages, + and - to zoom, 0 to fit.

![Book preview reader in Two pages (book) mode with the Thumbnails pane open: thumbnails of pages 3 to 5 on the left, page 3 framed, and on the right the inside cover facing page 3](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ01LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--72aa0a5e39d933b962422f682995978bdebb958f/aide-visuels--livre-lecteur-double-page-miniatures.en.png)
*the reader in two-page mode with the thumbnails*

## Downloaded files

| File | Name |
|---|---|
| Book | "title - gamebook.pdf" |
| Booklet (home printer) | "... - booklet.pdf" |
| Cover | "title-couverture.pdf" |
| EPUB | "title.epub" |
| HTML page | "title.html" |
| Word manuscript | "title.docx" |
| Markdown | "title.md" |

For the EPUB, the HTML page, the Word manuscript and the Markdown file, the file name is the title without accents, in lowercase, with dashes between words.

## Tips by platform

### Amazon KDP, paperback

- **Print on demand (paperback)** use, **KDP** printer preset.
- Upload the book and the cover PDF separately.
- KDP runs no check of the file and no online preview until an ISBN is assigned to the book (free KDP ISBN or your own). Plan for it before uploading.
- KDP requires at least 24 pages; text on the spine is only allowed from 79 pages.

### Amazon KDP, ebook

- Choose the **E-reader and ebook** use (EPUB). KDP does not require an ISBN for a Kindle ebook.

### Lulu

- **Print on demand (paperback)** use, **Lulu** preset.
- Without bleed, Lulu adds a thin white margin around the pages; if a color must run to the edge, turn the bleed on.
- Compare the spine width with the cover template Lulu computes.

### IngramSpark and professional printers

- **Professional printer** use, **IngramSpark** preset, or **Other** with your printer's thickness.
- IngramSpark requires PDF/X-1a or PDF/X-3 files and a CMYK cover. The file of the app is not a PDF/X: convert it with Ghostscript (free software).

To convert the cover to PDF/X-3:

1. Get the CMYK ICC profile of your printer and note its full path.
2. Copy the Ghostscript template under another name, for example: `cp /opt/homebrew/share/ghostscript/lib/PDFX_def.ps pdfx-imprimeur.ps`
3. In this copy, replace `(ISO Coated sb.icc)` with the full path of the profile, `/Title (Title)` with the title of the book, and `/OutputConditionIdentifier` and `/OutputCondition` with those of the printer.
4. Run:

```
gs -dPDFX=3 -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \
   -sColorConversionStrategy=CMYK -sProcessColorModel=DeviceCMYK \
   --permit-file-read=/absolute/path/profile.icc \
   -sOutputFile=couverture-pdfx.pdf pdfx-imprimeur.ps couverture.pdf
```

For a black and white interior, do the same with a gray profile and `-sColorConversionStrategy=Gray -sProcessColorModel=DeviceGray`. Ghostscript declares the file PDF/X; have your printer validate the result.

### Kobo, Apple Books, Google Play Books

- Choose the **E-reader and ebook** use (EPUB). Kobo Writing Life only accepts EPUB files for upload.

## Known limits

The book does not reproduce what has no equivalent on paper. These blocks are left out, the story goes on after them, and the check lists them:

- player inputs: text, number, camera, forms, word recognition;
- quick time events, swipes, clickable zones, audio choices, the timer of a choice;
- chance and repetition: random path, random number, once, repeat, sequence;
- lists and objects: add, remove, loops, multiple assignments;
- opening another module or graph, checkpoints;
- web calls, code, AI generation and external connectors.

Media (images, sounds, videos, animations) do not appear in the paragraphs.

Simple variable changes (add, subtract, set a value) are printed as an action on the paragraph, for example "(Gold + 5)".

The book supports the Latin, Greek and Cyrillic alphabets. Emojis and scripts such as Chinese, Japanese, Korean or Arabic are not supported yet: these characters are removed and the check tells where they were.

## Troubleshooting

| Message | Solution |
|---|---|
| The choice "..." of paragraph ... leads to a block that no longer exists | Connect the choice output to an existing block again. |
| ... leads nowhere: nothing is plugged into its output | Connect the choice output, or delete the choice. |
| Paragraph ... only leads back to itself | Add an output to what follows or to an ending. |
| Paragraph ... is reached by no choice | Link it from a choice, or delete it if it is no longer used. |
| From paragraph ..., no ending of the adventure can be reached | Add a path to an ending paragraph. |
| Every choice of paragraph ... depends on a condition, with no "otherwise" | Add an "otherwise" branch or a choice without a condition. |
| Near paragraph ..., the book does not show the "..." block | Expected for an interactive block: check that the text still makes sense without it. |
| Some characters cannot be written in the book | Replace the emojis or characters reported in the title or paragraph shown. |
| This ISBN does not look valid | Check the 10 or 13 digits of the ISBN. |
| The book has ... pages: most printers ask for at least 24 | Print on demand services require a minimum page count: make the book longer or the body text larger. |
| Professional printers often ask for a PDF/X | Convert the file with Ghostscript (see IngramSpark). |
| Estimated value: ... paper was not measured at ... | Check the spine width with the printer's template. |

## Frequently asked questions

**Why does a paragraph end up at the end of the book?**
No choice leads to it. It is printed at the end so that nothing is lost; the check reports it.

**How do I make exactly the same book again with shuffled numbering?**
Keep the seed: it is shown after computing or downloading, and printed in the colophon of the PDF book. Enter it again in the Seed field.

**My texts (rules, dedication, sheet) are gone on another computer.**
They are kept for this project in this browser. On another computer or browser, you need to enter them again.

**Are the links clickable?**
Yes for the home printer, on-screen reading, EPUB and the web page. The Word manuscript also has links between paragraphs, and the Markdown file has anchors. No for print on demand and the professional printer, nor in the booklet to fold.

**Do I need an ISBN?**
It is optional in the app. KDP needs one to check a paperback, but not for an ebook.
