# Convert comics to PDF

Turn a comic book archive (`.cbz`, `.cbr`, `.cb7`, `.cbt`) or an archive of images into a PDF with one page per image, from SumatraPDF or from the command line.

**Available in [pre-release 3.7](https://www.sumatrapdfreader.org/prerelease)**

**Open the `.cbz` and use File → Convert to PDF… to get one PDF with every page.** At a glance:

- **In SumatraPDF:** **Convert to PDF…** (`CmdConvertToPDF`) — all pages to one PDF.
- **Command line:** `sumatrapdf-tool convert -O compress -o book.pdf comic.cbz`

This restores the pre–3.5 comic → PDF workflow (issues [#4118](https://github.com/sumatrapdfreader/sumatrapdf/issues/4118), [#5532](https://github.com/sumatrapdfreader/sumatrapdf/issues/5532)).

## Convert in SumatraPDF

1. Open the comic (see [Comics and manga](Comics-and-manga.md#open-a-comic-or-image-folder)).
2. Start **Convert to PDF…** in any of these ways:
   - **File → Convert to PDF…**
   - Right-click the document → **Document → Convert to PDF…**
   - `Ctrl + K`, `Convert To PDF` in [Command Palette](Command-Palette.md)
3. A dialog shows the source path and a suggested destination:
   - Default path is the same location and base name with a `.pdf` extension.
   - If that file already exists, the name is made unique (e.g. `book.1.pdf`).
   - Edit the path in the text field, or use **…** to browse.
4. Click **Convert to PDF**. On success the new PDF is written and opened in SumatraPDF. On failure you get a short error dialog.

Press **Esc** or **Cancel** to close the dialog without converting.

What can be converted:

| Source              | Examples                                            |
| ------------------- | --------------------------------------------------- |
| Comic book archives | `.cbz`, `.cbr`, `.cbt`, `.cb7`, `.ora`              |
| Archives of images  | `.zip`, `.rar`, `.7z`, `.tar` that contain images   |

JPEG and PNG pages are embedded as-is, other image formats are losslessly re-encoded; see [how images are stored in the PDF](Convert-images-to-PDF.md#how-images-are-stored-in-the-pdf).

## Convert from the command line

Use `sumatrapdf-tool.exe convert`, or [SumatraPDF.exe convert](Tools.md) with the same arguments:

```
sumatrapdf-tool convert -O compress -o book.pdf comic.cbz
```

- Works for `.cbz`, `.cb7` and `.cbt`.
- `-O compress` compresses the image data. Without it PNG pages are stored uncompressed and the PDF gets much bigger. JPEG pages are always embedded as-is.
- Add a page range to convert only part of the comic: `sumatrapdf-tool convert -O compress -o chapter1.pdf comic.cbz 1-24`

More options: [sumatrapdf-tool convert](Tool-convert.md).

## See also

- [Comics and manga](Comics-and-manga.md) — opening and reading comics
- [Convert images to PDF](Convert-images-to-PDF.md)
- [Convert PDF to images](Convert-PDF-to-images.md) — the reverse direction
- [sumatrapdf-tool convert](Tool-convert.md)
- [All cmd-line tools](Tools.md)
