Skip to content

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

PDF-SDK
Images, shapes and links

Add images, shapes and links to PDFs

Place and replace images, draw shapes, add new text and turn text into links. Everything you add is a layer users can move, resize and restack.

Try it in the live demo

Images, shapes and links on any PDF page.

  • Images

    Add images to any page and replace an existing image with a new one.

  • Shapes

    Rectangles, ellipses, lines and arrows.

  • New text

    Add text boxes anywhere, in a built-in family or your own font.

  • Links

    Turn text into a link to a web address, or add new linked text.

  • Layers

    Move, resize, rotate, duplicate and restack everything you add.

  • Document info

    Set the title, author, subject and keywords stored in the file.

From your code.

Adds a logo, links a text block and sets the document title.

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

doc.addImage(logo, 0, { x: 40, y: 40, width: 120, height: 48 });  // logo: ImageData
const [terms] = doc.textBlocks(0);
doc.setLink(terms, 'https://example.com/terms');
doc.setMetadata('Title', 'Signed agreement');

const edited = doc.save();

Images, shapes and links questions.

Yes. Images are layers: replace one with a new image, or move, resize and restack it.

Yes. Turn existing text into a link, or add new linked text.

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.