Get started

Generate a presentation PDF from JSON

Create a presentation from JSON with Tembuilder Product Story. Add the template, connect slide content to parameters, preview, publish and download your PDF.

4 min read6 sections
On this page

Before you start

This guide uses Tembuilder Product Story, a 4:3 slide template, as an example of creating a presentation from JSON and exporting it as a PDF. For documents intended for printing, choose a template with a suitable paper size such as A4 or A5. You will add the example template to your project, connect the cover to JSON data, then preview and render the slides. Sign in to Tembuilder and have a workspace and project ready.

1. Use the presentation template

Open Tembuilder Product Story and click Use this template below the template details. Sign in if prompted. In the app, choose the destination workspace and project, enter a template name and slug when prompted, then confirm to add it. Open your copy in Templates if the editor does not open automatically.

Tembuilder Product Story · 4:3 presentation cover
Tembuilder Product Story · 4:3 presentation cover

2. Connect the cover to JSON

This template starts with slide content stored in Props and no declared Parameters. Add two Text fields in Parameters → Schema: presentationTitle with default My product presentation, and presentationSubtitle with default From idea to launch. Keep these field names exactly as shown.

In Structure, select the cover section and open HTML. Replace {{ props.title }} with {{ params.presentationTitle }} and {{ props.subtitle }} with {{ params.presentationSubtitle }}. Keep the surrounding HTML and CSS. The cover content should read:

Select the base variant English for this example so the section’s HTML can be edited.

<section class="ed cover" lang="{{ global.props.localeCode }}">
  <div class="cover-center">
    <h1>{{ params.presentationTitle }}</h1>
    <p>{{ params.presentationSubtitle }}</p>
  </div>
</section>
Structure → Cover → HTMLTEMBUILDER
HTMLCSSPropsConfig
<h1>{{ params.presentationTitle }}</h1><p>{{ params.presentationSubtitle }}</p>
Cover section · HTML connected to Parameters

Open Parameters → Payload to inspect the JSON shape. Use this data when you reach Run:

{
  "presentationTitle": "My product presentation",
  "presentationSubtitle": "From idea to launch"
}

These are the two fields you just added. Other slides still use their existing Props; edit those in Structure → Props, or connect more content to Parameters using the same approach. See Declare input data for field settings.

3. Save and preview the slides

Layout reflects your current design edits. Save before opening PDF: PDF preview uses saved template content and the editor’s parameter values, initially populated from defaults. After another edit, save and regenerate the preview. Preview does not consume render quota. Keep the paper size Slide 4:3 for this design.

Preview values and Run inputs are separate. Changing Run JSON affects that render job; it does not update an existing PDF preview. Use the presentation control beside the expanded PDF preview to view the pages as slides. See Present PDF and slides for controls.

4. Publish and render from JSON

  1. Save your changes and publish the intended version.
  2. Create a project API key with template:render permission if needed.
  3. Open Run, choose that key, the published version and the variant you edited.
  4. Enter the JSON above in Run’s data input and click Render.
  5. Wait for success, then open the result in Run or Renders and download the PDF.
Editor / Publish → RunTEMBUILDER
Tembuilder Product Story
SavePublish
Run · v1 · English
{ "presentationTitle": "My product presentation", "presentationSubtitle": "From idea to launch" }
Publish → Run → Render the presentation

Real renders require a published version. Each successful render consumes quota. When integrating through the API, put the JSON object inside parameters; see the render reference.

5. Check your presentation

Confirm the cover shows “My product presentation” and “From idea to launch”. Change the two JSON values and render again to verify that the cover changes while the remaining slide layouts stay intact. Check the first and last slides, text overflow, images and page size in the downloaded PDF. If a job fails, inspect its error before retrying; see common errors.

Search documentation