Pass onProgress and signal to @polotno/pdf-export to follow a long export and stop it.
Changelog · Aug 3, 2026
Polotno 4.6: cancellable PDF export and password-protected PDF import
@polotno/pdf-export reports progress and can cancel a long export, @polotno/pdf-import opens password-protected PDFs, and audio tracks carry names you can edit.
Highlights
Track and cancel PDF exports
Password-protected PDF import
@polotno/pdf-import opens password-protected PDFs with the password option.
Named audio tracks
Audio tracks carry a name, and you can rename them.
All changes
polotno 4.6.0 / 3.6.0
- Audio tracks now carry a name. Ability to rename audios.
- Little UI fixes in upload panel.
- Clicking outside a text element now reliably leaves edit mode on mobile browsers.
- Media a browser refuses to autoplay no longer retries on every frame.
- Shapes with a shadow or stroke render correctly in non-native aspect ratios.
@polotno/pdf-export 0.6.0
- Track and cancel a long export with onProgress and signal:
const controller = new AbortController();
await jsonToPDF(json, './output.pdf', {
onProgress: (progress) => console.log(progress), // 0 .. 1
signal: controller.signal,
});Fixes
- Much closer to the canvas across the board: shadow colours keep their alpha, text backgrounds sit on the right lines, figure strokes stay inside the shape, curved text is sized and placed correctly, and table cell text is inset properly against interior gridlines.
@polotno/pdf-import 0.3.0
- Import password-protected PDFs with the new password option
- Substantially stronger text import. CJK documents, justified paragraphs with a first-line indent, form field text, and rotated tables in landscape pages.
- Mirrored images are imported instead of being dropped silently.
@polotno/svg-export 0.2.0
- Justified text is justified, in paragraphs and in lists, instead of falling back to left-aligned.
- Tabs and runs of spaces render where the canvas puts them.
- Table cell text wraps the way the editor wraps it.
- Curved text matches the canvas.
- A word wider than its box breaks instead of shrinking the whole text block.
- Line breaks are kept, and the first line sits at the right height for its line height.
@polotno/html-export 0.2.0
- Tables render at their declared size, with gridlines where the canvas draws them.
- Image borders draw inside the element box instead of growing it.
- Lines sit at the top of their box rather than on a text baseline.
- Curved text matches the canvas.
@polotno/pptx-export 0.3.0
- Colour replacement works on SVGs that carry their colour in a <style> block, as Illustrator and CorelDRAW export them.
- Cover-cropped and stretched images export at the right crop.
- A clip mask defined only by a viewBox is applied instead of ignored.
polotno-node 3.2.0
- New navigationTimeout option for the initial page load, defaulting to 120s. Raise it on slow machines; it was previously fixed at 30s with no way to change it.
- Picks up this release's editor rendering fixes.
All exporters@polotno/pdf-export 0.6.0, @polotno/svg-export 0.2.0, @polotno/html-export 0.2.0, @polotno/pptx-export 0.3.0
- Clip masks and their fill now fit and centre the way the canvas does, and stretchEnabled is honoured for every image type.
- Designs saved by older versions of Polotno now render with their original meaning in every converter, not only in the editor.
Embed creative infrastructure into your product
TRUSTED BY
100,000+
CREATORS
300+
BUSINESSES
