How to Embed a Free PDF or Invoice Tool on Your Website (Copy-Paste Code)

5 min readBy Criply Team

If you run a blog, a small business site, or a content portal, you've probably had the thought: "It would be useful if my readers could compress a PDF / make an invoice / generate a QR code right here on the page, instead of going off to a different site." Until recently, building that kind of utility yourself meant hiring a developer or burning a weekend on a custom integration. Now it's a single copy-paste.

What is an embeddable tool?

An embeddable tool — usually called a widget — is a small piece of HTML you drop into your page that loads a fully working application inside an iframe. The visitor uses the tool on your site, but the actual code, hosting, and updates are handled by the tool provider. You just paste the iframe and forget about it.

You've seen them all over the web: YouTube videos, Twitter/X timelines, Spotify players, Calendly schedulers, Typeform forms. The mechanism is always the same — an iframe with a source URL pointing to the provider's domain.

Why embed a tool instead of linking to one?

Three practical reasons:

1. Visitors stay on your site. When you link to another site, you lose them. They may come back, they may not. With an embed, they get the utility they need without leaving — which means they're more likely to read your other content, sign up for your newsletter, or buy your product.

2. Better engagement signals. Search engines watch how long visitors spend on your pages. A useful interactive tool keeps people on the page longer, which is one of the signals Google uses to judge content quality.

3. Lower bounce rate. A visitor who lands on your "how to compress a PDF" article and immediately bounces to a different site to do the actual compression is a poor outcome. A visitor who reads your article, uses the tool you embedded, and then explores your site is much more valuable.

What you can embed from Criply

Criply offers six embeddable widgets right now, with more being added:

  • Compress PDF — drag-and-drop PDF compression that runs entirely in the visitor's browser. Ideal for blogs about email file size, document workflows, or productivity.
  • Invoice Generator — fill in a form, get a downloadable PDF invoice. Perfect for accounting, freelance, and small business blogs.
  • QR Code Generator — make QR codes for URLs, WiFi credentials, contact cards, and more. Useful for marketing, hospitality, and event sites.
  • VAT Calculator — add or remove VAT for any country and rate. Natural fit for accounting blogs and country-specific business guides.
  • Percentage Calculator — three percentage operations in one widget. Good for finance, education, and shopping blogs.
  • Word Counter — live word, character, and reading time stats. A classic for writer and SEO blogs.

All six are free. No signup, no API key, no payment, no usage limits.

How to embed a Criply widget in 3 steps

  1. Go to criply.co/embed.
  2. Click the tool you want to embed. A live preview appears below.
  3. Click "Copy code" and paste the HTML anywhere on your site — between the <body> tags, into a CMS HTML block, into a WordPress Custom HTML block, into Webflow's Embed widget, into a Ghost HTML card.

That's it. Your visitors can now use the tool directly on your page.

How auto-resizing works

The annoying thing about iframes is they have a fixed height by default. If the embedded tool reveals new sections — like an invoice generator showing the line-items table or a PDF compressor revealing its result panel — the iframe doesn't grow. Visitors end up with scrollbars inside scrollbars.

Criply widgets solve this with a small JavaScript trick called postMessage. Inside the widget, JavaScript watches its own height and posts an update to the parent window every time it changes. The tiny snippet included in the embed code listens for these messages and adjusts the iframe's height to match. The result is a seamless experience — no visible scrollbars, no cut-off content.

You don't have to understand any of this to use it. The snippet handles itself. The reason to mention it is that you'll see two pieces of code in the embed: the iframe itself, and a small <script> block that does the resizing. Keep both.

Where to embed widgets — practical placements

Inside relevant blog posts. The strongest placement is at the natural moment the reader needs the tool. A post about "how to compress a PDF for email" should have the compress tool right after the "step by step" section. The reader's intent is at peak — give them the tool to act on it without leaving.

On dedicated tool pages. Create a page like yoursite.com/tools/invoice-generator with a brief intro, the embedded widget, and FAQ content around it. These pages rank well for tool-specific keywords because they combine content depth with hands-on functionality.

In a sidebar widget area. A "free quick tools" sidebar on every page can host a small calculator or word counter. Good for engagement, less good for content depth.

Inside CRM or admin pages. Embedding a calculator inside your team's internal tools or a customer-facing dashboard saves them from opening another tab.

WordPress, Ghost, Webflow, Notion, Substack — what works where

The iframe + script pattern works in virtually every modern CMS that allows raw HTML:

  • WordPress: Add a "Custom HTML" block in the Gutenberg editor and paste the code.
  • Ghost: Add an "HTML" card and paste.
  • Webflow: Add an "Embed" element and paste.
  • Squarespace: Add a "Code" block and paste (make sure HTML is enabled — it is on most plans).
  • Notion: Notion doesn't allow raw HTML embeds for security reasons. Use a service like Apption that wraps an iframe in a Notion-embeddable URL.
  • Substack: Substack also doesn't allow raw HTML in posts. You can link to the embed page externally.
  • Static sites (Astro, Next.js, Hugo, Jekyll, etc.): Drop the HTML directly into your Markdown or component as a raw HTML block.

Frequently asked questions

Will the widget slow down my page?
The iframe loads with the loading="lazy" attribute by default, which means it only loads when the visitor scrolls near it. The iframe also loads in parallel with the rest of your page — it doesn't block your content rendering.

Can I customise the widget's appearance?
The widget itself uses Criply's design — a clean teal-accent style that fits most sites. You can wrap the iframe in your own container, add a border, change the background. The internals of the widget are fixed for consistency.

Is the data my visitors enter sent to your servers?
For client-side tools (PDF compression, word counter, percentage calculator) — no. Everything runs in your visitor's browser. For server-rendered tools (currently none of the embeddable ones), data is processed on Criply's servers and deleted immediately. Your visitors' privacy is preserved.

Get started

Visit criply.co/embed, pick a widget, and copy-paste. The tools are free now and will stay free — the small "Powered by Criply" link in the corner is how we keep them that way.

Get the free PDF Toolkit guide

7 practical ways to work with PDFs faster. Free, instant download.

Try it free — no signup required

Use our free Criply Widgets tool — works in your browser, nothing to install.

Criply Widgets — Free