Generate Multi-Page PDF for Printing

How to generate asynchronously a multi page PDF - Abyssale REST API

This feature is available from the Prime plan..

Asynchronous Asset Generation Endpoint

POST /async/banner-builder/{design_id}/generate

Generation Characteristics

  • Supported Design Type: Print multi page

  • Response: Asynchronous

  • Enables batch generation of multiple assets

  • Retrieval methods:

    • Webhooks

    • Polling

Output File Types

Supported formats:

  • Multi page printable PDF

Additional information

Retrieval Mechanism

  • Initial request returns a generation_request_id

  • You can track generation status and retrieve results using:

    • Webhook notifications

    • Periodic API polling

Key feature

  • Supports bulk asset creation

  • Allows handling of complex or time-consuming generation tasks

  • Provides flexibility in result retrieval

Output customisation

In addition to the supported image properties, a print property can be set to customise the output PDF. Here is the available option:

Display crop marks

  • Default: the value you have in the builder

  • Boolean

Color profile

Configuration Example:

"print": {
 "display_crop_marks": true,
 "color_profile": "e0c86a8a-050c-41f1-885a-0f74b9baac50"
}

Multi page print design

Sample request

Do not forget to replace {YOUR-API-KEY} and {design_id}

curl -X POST -H "x-api-key:{YOUR-API-KEY}" -H "Content-Type: application/json"  \
-d '{
  "pages": {
    "page_1": {
      "root": {
        "background_color": "cmyka(0,0,0,0,100)"
      },
      "tb-image_0": {
        "image_url": "https://mycompany.com/image.jpeg"
      },
      "tb-text_0": {
        "payload": "Lorem Ipsum"
      }
    },
    "page_2": {
      "root": {
        "background_color": "cmyka(0,0,0,0,100)"
      },
      "tb-image_0": {
        "image_url": "https://mycompany.com/image.jpeg"
      },
      "tb-text_0": {
        "payload": "Lorem Ipsum"
      },
      "tb-text_1": {
        "payload": "Lorem Ipsum"
      }
    }
}' \
https://api.abyssale.com/async/banner-builder/{design_id}/generate

Sample response

{"generation_request_id": "166e1852-dc97-43e3-a5f2-142076452c74"}

Last updated