Skip to content
PDFBetter Help center

Workflows & integrations · Embedded editor

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.

Updated 2 min read Available on Enterprise Counts toward edited-document downloads

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. Step 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. Step 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. Step 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. Step 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 optionUse it for
urlA public https PDF, downloaded by PDFBetter's servers (no logins, public addresses only)
filePDF bytes your page already has, such as a file the visitor just picked
documentOne of your own PDFBetter documents or templates, by id
blankBlank 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.
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.

Tools in this article

Did this answer your question?

Still stuck? Ask a person.

Tell us what you were trying to do and what happened instead. We reply within two business days, usually sooner.