All articles
Document Tips6 min read

How to Add PDF Search to Your Webflow Site

Webflow is powerful but has no native PDF search. Here is how to add a fully branded document search widget using Webflow Embeds — no code required.

Sparks Simple Team

4 February 2026

Webflow and the PDF Problem

Webflow has become the platform of choice for design-conscious professional services firms. Its visual editor, clean output code, and powerful CMS make it an excellent choice for law firms, consultancies, and financial services companies that want a polished web presence without the overhead of a custom build.

But like every major website builder, Webflow has a limitation when it comes to PDF documents: its native search doesn't index them. A visitor who types "GDPR policy" or "fee schedule" into a Webflow search field will get results from your CMS collections and static pages — not from the text inside your PDF files.

Webflow also has no native document management or search functionality. There's no Webflow-native way to build a searchable document library. What it does have, though, is a flexible Embed element that makes it straightforward to drop in external tools.

The Solution: A JavaScript Embed Widget

The approach is simple: use a hosted document search service that provides a JavaScript widget, and embed that widget on any Webflow page using the Embed element. The widget handles all the indexing and search logic — your Webflow site just displays it.

Here's exactly how to do it.

Step 1: Set Up Your Document Search Widget

Sign up for Sparks Simple and create a new widget. Name it to reflect its purpose — "Client Resources," "Policy Library," "Regulatory Documents" — and upload your PDF files. The platform extracts the full text of each document and makes it instantly searchable.

While you're in the settings, take a few minutes to match the widget to your Webflow site's design:

  • Primary colour: Set this to your brand's accent colour. In Webflow you can find your exact hex codes in the Style Manager.
  • Border radius: If your Webflow design uses rounded corners on inputs and buttons, set a matching border radius on the widget.
  • Placeholder text: Customise this to match your site's voice — "Search documents…" or "Find policies and guides…"

When the widget looks right, copy the embed code from the Embed tab. It's a single script tag.

Step 2: Add an Embed Element in Webflow

Open your Webflow project in the Designer. Navigate to the page where you want the search widget — typically your Resources or Client Centre page.

In the Add Elements panel (the + icon in the left sidebar), scroll down to find the Embed element under Components, or search for "embed." Drag it onto your page canvas and position it where you want the search widget to appear.

Double-click the Embed element (or click the edit button in the settings panel) to open the Embed code editor. Delete any placeholder content and paste your Sparks Simple embed code. Click Save & Close.

You'll see a blue placeholder box in the Designer canvas — Webflow shows a placeholder for embeds during editing. To see the actual widget, click the Preview button or publish to a staging URL.

Step 3: Style the Container in Webflow

The Embed element's surrounding div can be styled like any other Webflow element. You might want to:

  • Add padding above and below the widget to give it breathing room
  • Set a maximum width that matches your content columns
  • Add a subtle background colour or border to define the search area

The widget itself renders inside a sandboxed script, so Webflow styles won't cascade into it — but you can control the surrounding layout entirely in Webflow's visual editor.

Step 4: Test on Mobile

Switch to Webflow's responsive preview modes and check the widget on tablet and mobile breakpoints. The widget is designed to be responsive, but you may want to adjust the surrounding container's padding or width at smaller sizes for the best result.

Test the actual functionality on a real mobile device rather than just the simulator — type a search query and confirm that results appear clearly and are tappable.

Using Webflow CMS to Complement Document Search

If your firm uses Webflow's CMS, you can combine it with your document search widget for a richer experience. For example:

  • Use a CMS Collection to list your document categories with descriptions
  • Place the search widget prominently at the top of your resources page
  • Use CMS-powered pages for practice area sections, with the relevant documents embedded on each page

This gives visitors two ways to access documents: browsing by category (via CMS) or searching by keyword (via the widget). Different users prefer different discovery methods — giving them both maximises the chance they'll find what they need without contacting you.

Adding the Widget to Multiple Pages

If you want the search widget available on multiple pages, you can create a Symbol in Webflow containing the Embed element. Symbols are reusable components — update the Symbol once and the change propagates to every page where it's used.

Create a Symbol from your Embed element by right-clicking it and selecting "Create Symbol." Give it a name like "Document Search Widget" and you can then drag it onto any other page in your project.

Publishing and Going Live

When you're happy with the placement and styling, publish your Webflow project as normal. The search widget will be live immediately after publishing. Test on your live URL to confirm the widget loads and search returns results from your documents.

If you later add more documents to your Sparks Simple library, they'll be indexed and searchable automatically — no changes needed to your Webflow site.

The Result

Your Webflow site now has a branded, full-text search widget that searches across all your PDF documents. Visitors can find answers without calling. Your design stays intact. And you haven't had to touch a line of code or add a single plugin to maintain.

Ready to get started?

Make your documents searchable in 15 minutes.

Start your free 14-day trial — no credit card required. Upload your PDFs, embed a search widget, done.

Start free trial →