Skip to content

PDF-SDK 2.4.1 is out.See what’s new

PDF-SDK
Annotations

Mark up PDFs the way people do on paper

Highlight and strike out text, draw, add shapes, notes and stamps. You choose which tools appear, their colours and their defaults.

Try it in the live demo

Every PDF annotation your users reach for.

  • Text markup

    Highlight, underline, strike out and squiggly-underline text.

  • Freehand and shapes

    Draw freehand, or add rectangles, ellipses, lines and arrows.

  • Notes and sound

    Pin notes to the page, or attach a sound clip as a note.

  • Stamps

    Place stamps such as “Approved” where they belong.

  • Your defaults

    Set each tool’s colour and opacity, hide tools you do not need and rename the ones you keep.

  • From code

    Mark up text layers in a colour you pick, without the editor on screen.

From your code.

Highlights the first text block. Users get every tool in the editor; code marks up text with highlight, strikeout or squiggly.

See the API reference
const doc = await PDFDocumentEditor.open(bytes);

const [title] = doc.textBlocks(0);
doc.setMarkup(title, 'highlight', 0xfacc1580);   // RRGGBBAA

const marked = doc.save();

Annotations questions.

Highlight, underline, strikeout and squiggly on text; freehand drawing; rectangles, ellipses, lines and arrows; notes, sound notes and stamps.

Yes. Set each tool’s colour and opacity, hide tools and rename them in the editor’s configuration.

Try it in your app.

A free trial unlocks every feature on every platform, in any app. Open a document today.

Talk to us

Questions about licensing, several apps, volume, or OEM and site terms — we will work out what fits.