DEV Community

Tom
Tom

Posted on • Originally published at slideforge.dev

Add PowerPoint Export to Your SaaS in 5 Minutes

Add "Export to PowerPoint" to your SaaS product with a single API call — no python-pptx, no layout code, no font debugging. $0.03/slide, synchronous response, real editable .pptx.

The Integration (5 minutes)

Python

def export_to_pptx(dashboard_data):
    resp = requests.post(
        "https://api.slideforge.dev/v1/render",
        headers={"Authorization": "Bearer " + SLIDEFORGE_KEY},
        json={
            "template": "kpi_dashboard",
            "params": {"title": dashboard_data["title"], "metrics": dashboard_data["metrics"]},
            "theme_id": dashboard_data.get("theme", "consulting_blue"),
        },
    )
    return resp.json()["pptx_url"]
Enter fullscreen mode Exit fullscreen mode

Node.js

async function exportToPptx(data) {
  const resp = await fetch("https://api.slideforge.dev/v1/render", {
    method: "POST",
    headers: { "Authorization": "Bearer " + process.env.SLIDEFORGE_API_KEY, "Content-Type": "application/json" },
    body: JSON.stringify({ template: "kpi_dashboard", params: { title: data.title, metrics: data.metrics } }),
  });
  return (await resp.json()).pptx_url;
}
Enter fullscreen mode Exit fullscreen mode

Per-Customer Branding

Save a theme per customer — their brand on every export. Themes persist across sessions.

Cost at Scale

  • 100 exports/month x 5 slides = $15/month
  • 1,000 exports/month x 5 slides = $127.50/month (with volume discount)

Full guide | API docs


Originally published at slideforge.dev

Top comments (0)