Build Product Datasheets

Generate professional product specification sheets with images, feature tables, technical specs, and contact information.

Who this is for

Hardware manufacturers and product marketing teams use this recipe to generate consistent datasheets for their product catalog. Define product images, feature highlights, technical specifications, and contact details — producing a polished PDF ready for sales teams, distributors, and trade shows.

curl -X POST https://api.iterationlayer.com/document-generation/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "pdf",
    "document": {
      "metadata": {
        "title": "Product Datasheet - Apex SoundStage 360",
        "author": "Apex Audio Inc."
      },
      "page": {
        "size": { "preset": "A4" },
        "margins": { "top_in_pt": 54, "right_in_pt": 54, "bottom_in_pt": 54, "left_in_pt": 54 }
      },
      "styles": {
        "text": { "font_family": "Helvetica", "font_size_in_pt": 11.0, "line_height": 1.5, "color": "#333333" },
        "headline": { "font_family": "Helvetica", "font_size_in_pt": 24.0, "color": "#111111", "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 6.0, "is_bold": true },
        "link": { "color": "#0066CC", "is_underlined": true },
        "list": { "text_style": { "font_family": "Helvetica", "font_size_in_pt": 11.0, "line_height": 1.5, "color": "#333333" }, "marker_color": "#333333", "marker_gap_in_pt": 8.0 },
        "table": { "header": { "background_color": "#333333", "text_color": "#FFFFFF", "font_size_in_pt": 11.0, "is_bold": true }, "body": { "background_color": "#FFFFFF", "text_color": "#333333", "font_size_in_pt": 11.0 }, "border": { "outer": { "top": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "right": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "bottom": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "left": { "color": "#CCCCCC", "width_in_pt": 1.0 } }, "inner": { "horizontal": { "color": "#EEEEEE", "width_in_pt": 0.5 }, "vertical": { "color": "#EEEEEE", "width_in_pt": 0.5 } } } },
        "grid": { "background_color": "#FFFFFF", "border_color": "#CCCCCC", "border_width_in_pt": 0.0, "gap_in_pt": 12.0 },
        "separator": { "color": "#CCCCCC", "thickness_in_pt": 1.0, "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 12.0 },
        "image": { "border_color": "#000000", "border_width_in_pt": 0.0 }
      },
      "header": [
        { "type": "paragraph", "runs": [{ "text": "Apex Audio Inc. — Product Datasheet", "is_bold": true }] }
      ],
      "footer": [
        { "type": "page-number", "text_alignment": "center" }
      ],
      "content": [
        { "type": "headline", "level": "h1", "text": "Apex SoundStage 360" },
        { "type": "paragraph", "markdown": "The **Apex SoundStage 360** is a premium wireless smart speaker delivering immersive 360-degree audio with built-in voice assistant support, multi-room streaming, and audiophile-grade sound processing." },
        { "type": "grid", "columns": [
          { "column_span": 5, "blocks": [
            { "type": "image", "buffer": "<base64-encoded-image-data>", "width_in_pt": 200, "height_in_pt": 200 }
          ]},
          { "column_span": 7, "blocks": [
            { "type": "headline", "level": "h2", "text": "Key Features" },
            { "type": "list", "variant": "unordered", "items": [
              { "text": "360-degree omnidirectional sound projection" },
              { "text": "Dual 40mm full-range drivers + passive bass radiator" },
              { "text": "Wi-Fi 6E and Bluetooth 5.3 connectivity" },
              { "text": "AirPlay 2, Chromecast, and Spotify Connect built in" },
              { "text": "IPX4 splash resistance for indoor/outdoor use" },
              { "text": "18-hour battery life with USB-C fast charging" }
            ]}
          ]}
        ]},
        { "type": "separator" },
        { "type": "headline", "level": "h2", "text": "Technical Specifications" },
        { "type": "table", "column_widths_in_percent": [35, 65], "header": { "cells": [
          { "text": "Specification" },
          { "text": "Details" }
        ]}, "rows": [
          { "cells": [{ "text": "Drivers" }, { "text": "2 x 40mm full-range neodymium + 1 x 65mm passive bass radiator" }] },
          { "cells": [{ "text": "Frequency Response" }, { "text": "55 Hz – 20 kHz (±3 dB)" }] },
          { "cells": [{ "text": "Peak Output" }, { "text": "96 dB SPL @ 1m" }] },
          { "cells": [{ "text": "Connectivity" }, { "text": "Wi-Fi 6E (802.11ax), Bluetooth 5.3 (aptX HD, AAC, SBC)" }] },
          { "cells": [{ "text": "Voice Assistants" }, { "text": "Amazon Alexa, Google Assistant (far-field 4-mic array)" }] },
          { "cells": [{ "text": "Battery" }, { "text": "5,000 mAh Li-Ion, 18 hours playback, 2.5 hours full charge" }] },
          { "cells": [{ "text": "Water Resistance" }, { "text": "IPX4 (splash-proof)" }] },
          { "cells": [{ "text": "Dimensions" }, { "text": "128mm diameter x 185mm height" }] },
          { "cells": [{ "text": "Weight" }, { "text": "1.2 kg (2.65 lbs)" }] },
          { "cells": [{ "text": "Colors" }, { "text": "Midnight Black, Arctic White, Sage Green" }] }
        ]},
        { "type": "separator" },
        { "type": "headline", "level": "h2", "text": "What'"'"'s in the Box" },
        { "type": "list", "variant": "unordered", "items": [
          { "text": "Apex SoundStage 360 speaker" },
          { "text": "USB-C charging cable (1.5m)" },
          { "text": "30W USB-C power adapter" },
          { "text": "Quick start guide and safety information" }
        ]},
        { "type": "separator" },
        { "type": "grid", "columns": [
          { "column_span": 6, "blocks": [
            { "type": "headline", "level": "h3", "text": "Sales & Distribution" },
            { "type": "paragraph", "markdown": "**Apex Audio Inc.**\n2400 Innovation Drive, Suite 800\nSan Jose, CA 95134\nUnited States" },
            { "type": "paragraph", "runs": [
              { "text": "sales@apexaudio.com", "is_bold": true }
            ]}
          ]},
          { "column_span": 6, "blocks": [
            { "type": "headline", "level": "h3", "text": "Technical Support" },
            { "type": "paragraph", "markdown": "**Phone:** +1 (408) 555-0192\n**Email:** support@apexaudio.com\n**Web:** www.apexaudio.com/support" },
            { "type": "qr-code", "value": "https://www.apexaudio.com/products/soundstage-360", "width_in_pt": 72, "height_in_pt": 72, "fg_hex_color": "#000000", "bg_hex_color": "#FFFFFF" }
          ]}
        ]}
      ]
    }
  }'
import { IterationLayer } from "iterationlayer";
const client = new IterationLayer({ apiKey: "YOUR_API_KEY" });

const result = await client.generateDocument({
  format: "pdf",
  document: {
    metadata: {
      title: "Product Datasheet - Apex SoundStage 360",
      author: "Apex Audio Inc.",
    },
    page: {
      size: { preset: "A4" },
      margins: { top_in_pt: 54, right_in_pt: 54, bottom_in_pt: 54, left_in_pt: 54 },
    },
    styles: {
      text: { font_family: "Helvetica", font_size_in_pt: 11.0, line_height: 1.5, color: "#333333" },
      headline: { font_family: "Helvetica", font_size_in_pt: 24.0, color: "#111111", spacing_before_in_pt: 12.0, spacing_after_in_pt: 6.0, is_bold: true },
      link: { color: "#0066CC", is_underlined: true },
      list: { text_style: { font_family: "Helvetica", font_size_in_pt: 11.0, line_height: 1.5, color: "#333333" }, marker_color: "#333333", marker_gap_in_pt: 8.0 },
      table: { header: { background_color: "#333333", text_color: "#FFFFFF", font_size_in_pt: 11.0, is_bold: true }, body: { background_color: "#FFFFFF", text_color: "#333333", font_size_in_pt: 11.0 }, border: { outer: { top: { color: "#CCCCCC", width_in_pt: 1.0 }, right: { color: "#CCCCCC", width_in_pt: 1.0 }, bottom: { color: "#CCCCCC", width_in_pt: 1.0 }, left: { color: "#CCCCCC", width_in_pt: 1.0 } }, inner: { horizontal: { color: "#EEEEEE", width_in_pt: 0.5 }, vertical: { color: "#EEEEEE", width_in_pt: 0.5 } } } },
      grid: { background_color: "#FFFFFF", border_color: "#CCCCCC", border_width_in_pt: 0.0, gap_in_pt: 12.0 },
      separator: { color: "#CCCCCC", thickness_in_pt: 1.0, spacing_before_in_pt: 12.0, spacing_after_in_pt: 12.0 },
      image: { border_color: "#000000", border_width_in_pt: 0.0 },
    },
    header: [
      { type: "paragraph", runs: [{ text: "Apex Audio Inc. — Product Datasheet", is_bold: true }] },
    ],
    footer: [
      { type: "page-number", text_alignment: "center" },
    ],
    content: [
      { type: "headline", level: "h1", text: "Apex SoundStage 360" },
      { type: "paragraph", markdown: "The **Apex SoundStage 360** is a premium wireless smart speaker delivering immersive 360-degree audio with built-in voice assistant support, multi-room streaming, and audiophile-grade sound processing." },
      { type: "grid", columns: [
        { column_span: 5, blocks: [
          { type: "image", buffer: "<base64-encoded-image-data>", width_in_pt: 200, height_in_pt: 200 },
        ]},
        { column_span: 7, blocks: [
          { type: "headline", level: "h2", text: "Key Features" },
          { type: "list", variant: "unordered", items: [
            { text: "360-degree omnidirectional sound projection" },
            { text: "Dual 40mm full-range drivers + passive bass radiator" },
            { text: "Wi-Fi 6E and Bluetooth 5.3 connectivity" },
            { text: "AirPlay 2, Chromecast, and Spotify Connect built in" },
            { text: "IPX4 splash resistance for indoor/outdoor use" },
            { text: "18-hour battery life with USB-C fast charging" },
          ]},
        ]},
      ]},
      { type: "separator" },
      { type: "headline", level: "h2", text: "Technical Specifications" },
      { type: "table", column_widths_in_percent: [35, 65], header: { cells: [
        { text: "Specification" },
        { text: "Details" },
      ]}, rows: [
        { cells: [{ text: "Drivers" }, { text: "2 x 40mm full-range neodymium + 1 x 65mm passive bass radiator" }] },
        { cells: [{ text: "Frequency Response" }, { text: "55 Hz – 20 kHz (±3 dB)" }] },
        { cells: [{ text: "Peak Output" }, { text: "96 dB SPL @ 1m" }] },
        { cells: [{ text: "Connectivity" }, { text: "Wi-Fi 6E (802.11ax), Bluetooth 5.3 (aptX HD, AAC, SBC)" }] },
        { cells: [{ text: "Voice Assistants" }, { text: "Amazon Alexa, Google Assistant (far-field 4-mic array)" }] },
        { cells: [{ text: "Battery" }, { text: "5,000 mAh Li-Ion, 18 hours playback, 2.5 hours full charge" }] },
        { cells: [{ text: "Water Resistance" }, { text: "IPX4 (splash-proof)" }] },
        { cells: [{ text: "Dimensions" }, { text: "128mm diameter x 185mm height" }] },
        { cells: [{ text: "Weight" }, { text: "1.2 kg (2.65 lbs)" }] },
        { cells: [{ text: "Colors" }, { text: "Midnight Black, Arctic White, Sage Green" }] },
      ]},
      { type: "separator" },
      { type: "headline", level: "h2", text: "What's in the Box" },
      { type: "list", variant: "unordered", items: [
        { text: "Apex SoundStage 360 speaker" },
        { text: "USB-C charging cable (1.5m)" },
        { text: "30W USB-C power adapter" },
        { text: "Quick start guide and safety information" },
      ]},
      { type: "separator" },
      { type: "grid", columns: [
        { column_span: 6, blocks: [
          { type: "headline", level: "h3", text: "Sales & Distribution" },
          { type: "paragraph", markdown: "**Apex Audio Inc.**\n2400 Innovation Drive, Suite 800\nSan Jose, CA 95134\nUnited States" },
          { type: "paragraph", runs: [
            { text: "sales@apexaudio.com", is_bold: true },
          ]},
        ]},
        { column_span: 6, blocks: [
          { type: "headline", level: "h3", text: "Technical Support" },
          { type: "paragraph", markdown: "**Phone:** +1 (408) 555-0192\n**Email:** support@apexaudio.com\n**Web:** www.apexaudio.com/support" },
          { type: "qr-code", value: "https://www.apexaudio.com/products/soundstage-360", width_in_pt: 72, height_in_pt: 72, fg_hex_color: "#000000", bg_hex_color: "#FFFFFF" },
        ]},
      ]},
    ],
  },
});

console.log(result);
from iterationlayer import IterationLayer
client = IterationLayer(api_key="YOUR_API_KEY")

result = client.generate_document(
    format="pdf",
    document={
        "metadata": {
            "title": "Product Datasheet - Apex SoundStage 360",
            "author": "Apex Audio Inc.",
        },
        "page": {
            "size": {"preset": "A4"},
            "margins": {"top_in_pt": 54, "right_in_pt": 54, "bottom_in_pt": 54, "left_in_pt": 54},
        },
        "styles": {
            "text": {"font_family": "Helvetica", "font_size_in_pt": 11.0, "line_height": 1.5, "color": "#333333"},
            "headline": {"font_family": "Helvetica", "font_size_in_pt": 24.0, "color": "#111111", "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 6.0, "is_bold": True},
            "link": {"color": "#0066CC", "is_underlined": True},
            "list": {"text_style": {"font_family": "Helvetica", "font_size_in_pt": 11.0, "line_height": 1.5, "color": "#333333"}, "marker_color": "#333333", "marker_gap_in_pt": 8.0},
            "table": {"header": {"background_color": "#333333", "text_color": "#FFFFFF", "font_size_in_pt": 11.0, "is_bold": True}, "body": {"background_color": "#FFFFFF", "text_color": "#333333", "font_size_in_pt": 11.0}, "border": {"outer": {"top": {"color": "#CCCCCC", "width_in_pt": 1.0}, "right": {"color": "#CCCCCC", "width_in_pt": 1.0}, "bottom": {"color": "#CCCCCC", "width_in_pt": 1.0}, "left": {"color": "#CCCCCC", "width_in_pt": 1.0}}, "inner": {"horizontal": {"color": "#EEEEEE", "width_in_pt": 0.5}, "vertical": {"color": "#EEEEEE", "width_in_pt": 0.5}}}},
            "grid": {"background_color": "#FFFFFF", "border_color": "#CCCCCC", "border_width_in_pt": 0.0, "gap_in_pt": 12.0},
            "separator": {"color": "#CCCCCC", "thickness_in_pt": 1.0, "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 12.0},
            "image": {"border_color": "#000000", "border_width_in_pt": 0.0},
        },
        "header": [
            {"type": "paragraph", "runs": [{"text": "Apex Audio Inc. — Product Datasheet", "is_bold": True}]},
        ],
        "footer": [
            {"type": "page-number", "text_alignment": "center"},
        ],
        "content": [
            {"type": "headline", "level": "h1", "text": "Apex SoundStage 360"},
            {"type": "paragraph", "markdown": "The **Apex SoundStage 360** is a premium wireless smart speaker delivering immersive 360-degree audio with built-in voice assistant support, multi-room streaming, and audiophile-grade sound processing."},
            {"type": "grid", "columns": [
                {"column_span": 5, "blocks": [
                    {"type": "image", "buffer": "<base64-encoded-image-data>", "width_in_pt": 200, "height_in_pt": 200},
                ]},
                {"column_span": 7, "blocks": [
                    {"type": "headline", "level": "h2", "text": "Key Features"},
                    {"type": "list", "variant": "unordered", "items": [
                        {"text": "360-degree omnidirectional sound projection"},
                        {"text": "Dual 40mm full-range drivers + passive bass radiator"},
                        {"text": "Wi-Fi 6E and Bluetooth 5.3 connectivity"},
                        {"text": "AirPlay 2, Chromecast, and Spotify Connect built in"},
                        {"text": "IPX4 splash resistance for indoor/outdoor use"},
                        {"text": "18-hour battery life with USB-C fast charging"},
                    ]},
                ]},
            ]},
            {"type": "separator"},
            {"type": "headline", "level": "h2", "text": "Technical Specifications"},
            {"type": "table", "column_widths_in_percent": [35, 65], "header": {"cells": [
                {"text": "Specification"},
                {"text": "Details"},
            ]}, "rows": [
                {"cells": [{"text": "Drivers"}, {"text": "2 x 40mm full-range neodymium + 1 x 65mm passive bass radiator"}]},
                {"cells": [{"text": "Frequency Response"}, {"text": "55 Hz – 20 kHz (±3 dB)"}]},
                {"cells": [{"text": "Peak Output"}, {"text": "96 dB SPL @ 1m"}]},
                {"cells": [{"text": "Connectivity"}, {"text": "Wi-Fi 6E (802.11ax), Bluetooth 5.3 (aptX HD, AAC, SBC)"}]},
                {"cells": [{"text": "Voice Assistants"}, {"text": "Amazon Alexa, Google Assistant (far-field 4-mic array)"}]},
                {"cells": [{"text": "Battery"}, {"text": "5,000 mAh Li-Ion, 18 hours playback, 2.5 hours full charge"}]},
                {"cells": [{"text": "Water Resistance"}, {"text": "IPX4 (splash-proof)"}]},
                {"cells": [{"text": "Dimensions"}, {"text": "128mm diameter x 185mm height"}]},
                {"cells": [{"text": "Weight"}, {"text": "1.2 kg (2.65 lbs)"}]},
                {"cells": [{"text": "Colors"}, {"text": "Midnight Black, Arctic White, Sage Green"}]},
            ]},
            {"type": "separator"},
            {"type": "headline", "level": "h2", "text": "What's in the Box"},
            {"type": "list", "variant": "unordered", "items": [
                {"text": "Apex SoundStage 360 speaker"},
                {"text": "USB-C charging cable (1.5m)"},
                {"text": "30W USB-C power adapter"},
                {"text": "Quick start guide and safety information"},
            ]},
            {"type": "separator"},
            {"type": "grid", "columns": [
                {"column_span": 6, "blocks": [
                    {"type": "headline", "level": "h3", "text": "Sales & Distribution"},
                    {"type": "paragraph", "markdown": "**Apex Audio Inc.**\n2400 Innovation Drive, Suite 800\nSan Jose, CA 95134\nUnited States"},
                    {"type": "paragraph", "runs": [
                        {"text": "sales@apexaudio.com", "is_bold": True},
                    ]},
                ]},
                {"column_span": 6, "blocks": [
                    {"type": "headline", "level": "h3", "text": "Technical Support"},
                    {"type": "paragraph", "markdown": "**Phone:** +1 (408) 555-0192\n**Email:** support@apexaudio.com\n**Web:** www.apexaudio.com/support"},
                    {"type": "qr-code", "value": "https://www.apexaudio.com/products/soundstage-360", "width_in_pt": 72, "height_in_pt": 72, "fg_hex_color": "#000000", "bg_hex_color": "#FFFFFF"},
                ]},
            ]},
        ],
    },
)

print(result)
package main

import il "github.com/iterationlayer/sdk-go"

client := il.NewClient("YOUR_API_KEY")

result, err := client.GenerateDocument(il.GenerateDocumentRequest{
    Format: "pdf",
    Document: il.DocumentDefinition{
        Metadata: il.DocumentMetadata{
            Title:  "Product Datasheet - Apex SoundStage 360",
            Author: "Apex Audio Inc.",
        },
        Page: il.DocumentPage{
            Size:    il.DocPageSize{Preset: "A4"},
            Margins: il.DocMargins{TopInPt: 54, RightInPt: 54, BottomInPt: 54, LeftInPt: 54},
        },
        Content: []il.ContentBlock{
            il.NewHeadlineBlock("h1", "Apex SoundStage 360"),
            il.NewParagraphBlock(),
            il.NewHeadlineBlock("h2", "Technical Specifications"),
            il.NewTableBlock([]il.TableRow{
                {Cells: []il.TableCell{{Text: "Drivers"}, {Text: "2 x 40mm full-range neodymium + 1 x 65mm passive bass radiator"}}},
                {Cells: []il.TableCell{{Text: "Frequency Response"}, {Text: "55 Hz – 20 kHz (±3 dB)"}}},
                {Cells: []il.TableCell{{Text: "Connectivity"}, {Text: "Wi-Fi 6E (802.11ax), Bluetooth 5.3"}}},
            }),
            il.NewSeparatorBlock(),
            il.NewHeadlineBlock("h2", "What's in the Box"),
            il.NewListBlock("unordered", []il.ListItem{
                {Text: "Apex SoundStage 360 speaker"},
                {Text: "USB-C charging cable (1.5m)"},
                {Text: "30W USB-C power adapter"},
                {Text: "Quick start guide and safety information"},
            }),
        },
    },
})

Related Recipes

Start building in minutes

Free trial credits included. No credit card required.