Free plan

Comic / photo book

Lay out pictures as a comic page or photo book
POST
/v1/documents/comic

About this tool

This tool arranges your pictures into pages, as a photo book or a comic. You choose a grid, a comic-style panel pattern, or one picture per page. You can add borders, rounded corners, captions, speech bubbles, a title page and page numbers. It makes a PDF, or a ZIP with a picture of each page. It does not read existing comic files.
For example, you turn 12 holiday photos into a small photo book with captions and a title page.

How to use it

  1. Choose this tool.
  2. Add your pictures in the order you want them.
  3. Choose the layout, the page size and how many pictures per page.
  4. Add options such as captions, borders, a title and page numbers.
  5. Press Generate, then download the PDF or ZIP.

What you get back

You get a PDF of your pages, or a ZIP of page pictures if you chose that. You can download it.
GOOD TO KNOW
Every page is drawn as a picture, so the PDF text is not selectable. A book of more than 60 pages is refused. Counts as one document.
TEST IT LIVE

Try Comic / photo book in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/comic
Tool ID
documents.comic
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/comic" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'layout=grid' \
  -F 'columns=2' \
  -F 'rows=2'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.comic({
    "files": 'document.pdf',
    "layout": "grid",
    "columns": 2,
    "rows": 2
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->comic([
    'files' => 'document.pdf',
    'layout' => 'grid',
    'columns' => 2,
    'rows' => 2,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Lay pictures out as a comic or a photo book: grid or comic-style panels, borders, rounded corners, captions, speech, thought and shout bubbles, a title page and page numbers, as a PDF or a ZIP of page pictures.

Comic / photo book accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Comic / photo book is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/comic with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.