Polotno

Changelog · Jul 22, 2026

Polotno 4.5: edge resizing for groups and faster PDF import

Resize groups and multi-selections from any side. @polotno/pdf-import 0.1.0 reports import warnings, handles images far faster, and defaults to CSS pixels and Google font matching.

Highlights

Edge resizing for groups

Multi-selections and groups get edge anchors, so you can resize them from any side, not only the corners.

Google font weights on demand

Google fonts load only the weights a design uses.

PDF import warnings

An onWarning callback in @polotno/pdf-import reports non-fatal problems, such as an image it couldn't extract, so you can tell a clean import from a lossy one.

Faster PDF image import

@polotno/pdf-import handles images much faster and lighter. A 21.7MB banner now imports in 9.3s using 785MB, down from 24.4s and 18.8GB, and keeps all its images at full resolution.

Breaking changes

  • @polotno/pdf-import 0.1.0: Output is now in CSS pixels by default. A 1080×1350 Canva design imports as 1080×1350 instead of 810×1012.5. Pass scale: 1 to keep raw PDF points.
  • @polotno/pdf-import 0.1.0: Default fontStrategy is now 'auto': fonts that resolve to a real Google family keep their name and load from Google Fonts (editable text, full glyph coverage); custom fonts are still embedded. Pass fontStrategy: 'embed' for the previous behavior.
tsx
const json = await pdfToJson({ pdf, scale: 1, fontStrategy: 'embed' }); // old behavior

All changes

polotno 4.5.0 / 3.5.0

✨ Features

  • Edge anchors for multi-select and groups, resize a multi-selection or group from any side, not just the corners. Text elements now stop at their measured minimum width instead of collapsing.
  • Google font weight variants load on demand, so only the weights actually used are fetched.

Fixes

  • Underline / strike-through / italic toolbar buttons now report the right active state and toggle per text token — toggling one decoration no longer strips another on the same selection, and element-level decorations can be removed from a sub-selection while editing.
  • Selection tooltip no longer flickers or appears on the wrong side.
  • Rubber-band selection respects element rotation.
  • Page selection stays in sync when pages are added, cloned, or deleted.
  • List markers in edit mode sit exactly where the canvas draws them.

@polotno/pdf-import 0.1.0

✨ Features

  • New onWarning callback reports non-fatal import problems (e.g. an image that couldn't be extracted), so you can tell a clean import from a lossy one.
  • Much better fidelity: proper clip intersection and transparency-group alpha, smarter color attribution, simple rectangles imported as editable figures, image frames folded into border properties, better font weight/style detection and Google font matching.

Fixes

  • Dramatically faster and lighter image handling — JPEGs pass through untouched, CMYK/YCCK JPEGs stream-transcode. A 21.7MB banner went from 24.4s / 18.8GB with 2 images dropped to 9.3s / 785MB with all images at full resolution. Images shared across pages are no longer dropped.

@polotno/pdf-export 0.4.1

  • Per-span inline font families in rich text now load correctly.

@polotno/svg-export 0.1.1

  • Bullet markers now match the canvas size and position.

@polotno/psd-import 0.0.8

  • Smaller output images (real compression), pixel-identical results.

polotno-node 3.1.1

  • Picks up the editor rendering fixes above

Embed creative infrastructure into your product

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai