A full PDF editor for your web app. No licence fee.

Inkbar renders PDFs in the browser and lets people fill in forms, highlight text, discuss it in note threads and redact it. It's written in TypeScript, works with Vue, React, Svelte or no framework, and it's free under the MIT licence.

pnpm add @inkbar/react @inkbar/core @inkbar/themeRead the quickstartTry the sandboxView on GitHub
SUPPLIER AGREEMENT · PAGE 3 OF 24
4. Data handling

4.1 The Supplier shall process Customer Data only on documented instructions from the Customer, and shall delete all Customer Data within thirty (30) days of termination.

4.2 Each party shall keep the other's Confidential Information secret and shall not disclose it to any third party without prior written consent.

4.3 Notices under this clause go to Jordan Avery, Legal(marked for redaction) at [email protected] or the address in Schedule 3.

Works withTypeScriptVueReactSveltePlain DOM

A few components and one stylesheet.

Wrap a viewport in a root and build toolbars from the controls you want: tools, undo and redo, pages and zoom. Each is its own component, so move it, drop it or add your own buttons beside it.

Review.tsx
import {
  InkRoot,
  InkViewport,
  InkThreadPopover,
} from '@inkbar/react'
import { highlightTool, noteTool, redactAreaTool } from '@inkbar/core/dom'
import { assets } from 'virtual:inkbar-assets'
import '@inkbar/theme/theme.css'

import { Footer } from './Footer'
import { Toolbar } from './Toolbar'

const tools = [highlightTool(), redactAreaTool(), noteTool()]

export function Review({ url, id }: { url: string; id: string }) {
  return (
    <InkRoot src={{ url, key: id }} assets={assets} tools={tools}>
      <Toolbar />
      <InkViewport />
      <Footer />
      <InkThreadPopover />
    </InkRoot>
  )
}
pnpm add @inkbar/react @inkbar/core @inkbar/theme

Typed end to end

Annotations are plain typed objects with a published JSON Schema. Keep them in your own state or let Inkbar hold them. Undo and redo work either way.

Headless underneath

Vue, React and Svelte share one framework-free core. Without a framework, use createViewer and the same controls from @inkbar/core.

One coordinate system

Inkbar works in PDF points with the origin bottom-left. You store the same numbers the PDF uses.

It should look like your product, not ours.

Ship the default theme as it is, restyle it with CSS, or render the controls as your own components. If your page already defines tokens such as --primary and --radius, the theme uses them.

Use the default

One stylesheet styles the toolbars, popovers and pages, in light and dark.

import '@inkbar/theme/theme.css'

Restyle it with CSS

Every rule has zero specificity, so yours win without !important. Or set Inkbar's --ink-* tokens on a single toolbar or popover.

.ink-toolbar {
  --ink-surface: #0d1026;
  --ink-fg: #ffffff;
  --ink-accent: #e4ff4a;
  --ink-accent-fg: #0d1026;
  --ink-radius: 999px;
  border-radius: 999px;
}

Use your own components

Render the toolbar buttons as your own components. Each keeps its behaviour and its accessible name.

<InkToolbar>
  <InkUndo asChild>
    <YourButton icon="undo" />
  </InkUndo>
</InkToolbar>

What it does today.

Inkbar covers viewing, search, outlines and links, sidebars, forms, signatures, highlights, note threads, drawing, redaction, plugins, printing and downloads. It works by touch, opens password-protected files and ships in English, French and German. Everything below works in every framework package and with no framework.

Viewing

Pages render on PDF.js with a selectable text layer. Fit to width or page, zoom from 10% to 800%, and scroll continuously or a page at a time. Only pages near the viewport are mounted.

Search

Press Ctrl/Cmd+F in the viewer and type. Every match highlights and the count updates as pages scan. doc.search hands your code the same matches, with where each one sits on the page.

Outline and links

The document's bookmarks show as a tree you can move through by keyboard. Links on the page work with no setup and Tab reaches each one. Back and Forward return you to where you were before a jump.

Sidebars

Put panels of thumbnails, search results or your own content beside the pages. Drag the edge or use the arrow keys to resize. When the window gets narrow, a rail panel floats over the pages.

Forms

Fill text fields, checkboxes, radio buttons, lists and signature fields. The form's own scripts calculate totals and check input, and your code reads and sets the values through doc.form.

Signatures

Draw a signature, type it in a handwriting font or upload a scan. Inkbar keeps it in the store you choose and places it on any page or in a signature field.

Highlights

With the Highlight tool on, select text and it is highlighted when you let go. From the keyboard, select text and press Enter.

Note threads

Pin a note to the page, then reply, edit and delete in a thread beside it.

Redaction

Mark selected text, or drag a box over any area. With @inkbar/engine, apply the marks to remove the content under them and the file's metadata, attachments and scripts, then check the result.

Drawing

Draw freehand, add lines, arrows, rectangles, ellipses, stars and polygons, and type into text boxes. A freehand stroke that looks like a shape snaps into one.

Annotations as data

Export and import JSON with a published schema. Underline, strikeout, squiggly, ink, shapes, lines and text boxes from imported data display too, and the PDF's own annotations show as locked.

Plugins

A plugin adds commands, tools and page layers, listens for presses and keeps records of its own. Each record can show as a mark that opens a card, and the same cards list in a sidebar. One plugin runs in every framework package.

Undo and redo

History with grouped steps, whether Inkbar holds the annotations or your app does, and field edits undo too. Press Ctrl/Cmd+Z, or put the undo and redo buttons wherever your toolbar has room.

Keyboard and screen readers

Fill fields, highlight, add notes, and move, resize or delete marks from the keyboard, with labelled controls throughout. Area marks and freehand drawing need a pointer.

Touch

Pinch to zoom the document, not the browser page, on a touch screen or trackpad. With a drawing tool on, one finger draws and two fingers scroll.

Locked files

When a PDF needs a password, a dialog asks for it, with nothing to set up. The password is used once and never stored. Turn the prompt off to run your own flow.

Print and download

Press Ctrl/Cmd+P to print or Ctrl/Cmd+S to download, or use the toolbar buttons. With @inkbar/engine, both give you the PDF with the session's annotations and form values written in.

Translations

French and German ship with Inkbar, and any other language is a set of strings you pass in. Change one string or all of them. A new language relabels the viewer in place, with no remount and no lost scroll position.

A line item you get to renew delete.

Most PDF SDK vendors sell an annual contract, priced after a sales call. Inkbar is MIT licensed, so your team installs it from npm and starts building. The paid SDKs still do more, such as digital signatures.

ComparisoninkbarTypical commercial SDK
PriceFreeAnnual contract, quoted by sales
Price grows withNothingSeats, domains or documents
LicenceMITProprietary
Source codePublic on GitHubClosed
Trying it outInstall from npmTimed trial, often watermarked
Features todayViewing, search, forms, signatures, highlights, notes, drawing, redaction, printing, saving into the fileAlso digital signatures
Custom UICSS, or your own componentsWhatever the vendor's config allows

Free for commercial use. Use it and change it inside a product you sell.

Nothing to procure. You sign no contract and manage no licence keys.

No lock-in. The source is public, and Inkbar renders documents in the browser without sending them to us.

Install it and see.

You don't need a trial or a sign-up form. Open the sandbox to try it on your own PDF, which never leaves your browser, or follow the quickstart to put a document in your app.

pnpm add @inkbar/react @inkbar/core @inkbar/theme