---
title: "Embed the PDF editor in your website or app"
description: "Allow your websites, create a publishable key, paste the script or iframe and receive submissions by callback or signed webhook. Enterprise plan."
url: https://help.pdfbetter.com/automation/embed-pdf-editor-in-your-website/
collection: "Workflows & integrations"
section: "Embedded editor"
updated: 2026-11-08
publisher: "PDFBetter (AI Generated Inc.)"
---

# Embed the PDF editor in your website or app

> In **Settings → Embedded editor**, list the websites that may show the editor, create a publishable key and paste the snippet. Visitors fill, sign and submit without an account; you get the values and the PDF. Enterprise includes 20,000 documents a month on up to 25 websites.

- Available on: Enterprise
- Counts toward: Edited-document downloads

Do it in PDFBetter: https://pdfbetter.com/app/settings/embed/

The embedded editor puts PDFBetter's fill-and-sign editor inside your own page. Visitors open a PDF, fill its fields, sign, add text, check marks and dates, and press Submit. They never create a PDFBetter account; the document and the submission belong to your account. It's part of the Enterprise plan ($399 a month, or $299 a month billed yearly).

## Set it up

1. **Allow your websites**: Go to **Settings → Embedded editor** and add the exact origins that may show the editor (up to 25), for example https://portal.example.com. http://localhost works for testing.
2. **Create a publishable key**: Create a key in the same section. It starts with pb_embed_ and is safe to put in page source: it only opens editor sessions, and only on your listed websites. Keep up to two active keys to rotate without downtime.
3. **Paste the snippet**: Copy the script snippet (PDFBetter.embed for an inline editor, PDFBetter.open for a full-screen modal) or the plain iframe, point it at your PDF and choose the tools: fill, sign, text, check and date.
4. **Receive submissions**: Handle **onSubmit** in your page, add a webhook endpoint for embed.document_submitted on the same settings page, or download submissions there.

| Source option | Use it for |
| --- | --- |
| url | A public https PDF, downloaded by PDFBetter's servers (no logins, public addresses only) |
| file | PDF bytes your page already has, such as a file the visitor just picked |
| document | One of your own PDFBetter documents or templates, by id |
| blank | Blank pages to sign or annotate |

## Webhooks and security

- Each delivery carries a **PDFBetter-Signature** header (t=timestamp,v1=signature): an HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with the endpoint's signing secret. Recompute it, compare in constant time and reject old timestamps.
- The webhook body holds the field values and a link to the flattened PDF valid for 24 hours. Signature and photo values are left out (they're in the PDF) and listed by name.
- Only your listed websites can frame the editor, every message is checked against that origin, and no third-party cookies are used: each embed runs on a short-lived session token.

> **Sessions and retention:** Each document opened in an embed counts as one session (20,000 a month on Enterprise). At the limit, visitors see “temporarily unavailable”, your page gets an error with the code quota_exhausted, and you get a notice. Submitted PDFs are kept 30 days and unsubmitted documents 24 hours; keep your own copy from the webhook or callback.

### Can I remove the “Powered by PDFBetter” link?

No. Turn on branding to show your team's logo and colour; the small link stays.

### Are embed signatures sealed like signature requests?

No. Signatures made in the embed are images or typed names on the page. For emailed signing with a certificate of completion and a sealed PDF, use signature requests.

### Which languages does the editor speak?

English, Spanish, French, German and Japanese. Pass locale, or leave it out to follow the visitor's browser.

## Related articles

- [Get webhooks when documents are signed or forms submitted](https://help.pdfbetter.com/automation/webhook-endpoints.md): In Settings → API keys → Webhooks, enter an https Endpoint URL, pick Events and click Add endpoint. Copy the signing secret (shown once) and use it to verify the PDFBetter-Signature header.
- [Use the PDFBetter API and create an API key](https://help.pdfbetter.com/automation/rest-api-keys.md): On Business, open Settings → API keys, name the key, tick its Permissions and click Create key. Copy it right away; send it as Authorization: Bearer pb_live_… to https://api.pdfbetter.com/v1/.

---
Source: https://help.pdfbetter.com/automation/embed-pdf-editor-in-your-website/ · PDFBetter Help Center · Last checked against the product 2026-11-08. Questions: support@pdfbetter.com
