The pdfx option in @polotno/pdf-export writes native PDF/X-4, with transparency and text kept vector, or PDF/X-1a. outputIntent embeds the ICC printing condition, which PDF/X requires.
Changelog · Aug 13, 2026
Polotno 4.8: PDF/X export with an ICC output intent and CMYK
@polotno/pdf-export writes native PDF/X-4 and PDF/X-1a with an embedded ICC output intent, and can convert PDF/X-4 colours to CMYK. It now requires Node.js 22.13 or newer.
Highlights
PDF/X-4 and PDF/X-1a export
CMYK output for PDF/X-4
colorMode 'cmyk' converts all fills, strokes and gradients through the output profile. The default, 'preserve-rgb', keeps sRGB values tagged for the RIP.
Solid underlines and faster text
The editor renders text faster, and underlines draw as one solid line with no gaps around letter descenders.
Breaking changes
- @polotno/pdf-export 0.8.0: Node.js 22.13 or newer is now required.
All changes
polotno 4.8.0 / 3.8.0
- Text templates load their fonts before the design is inserted, so they no longer flash a fallback font.
- Underlines draw as one solid line, with no gaps around letter descenders.
- Improved text rendering performance
@polotno/pdf-export 0.8.0
- New pdfx option: 'x-4' writes native PDF/X-4 (transparency and text stay vector), 'x-1a' writes PDF/X-1a. The old pdfx1a flag still works and is deprecated.
- New outputIntent option embeds the ICC printing condition. It is required when pdfx is set.
- New colorMode option for X-4: 'cmyk' converts all fills, strokes and gradients through the output profile; 'preserve-rgb' (default) keeps sRGB values tagged for the RIP.
- New onWarning callback reports when PDF/X-1a must flatten a page with transparency;
- PDF/X output is written natively in js, not additional gs calls
- Text gradients render correctly on rotated, curved and stroked text.
@polotno/pdf-import 0.5.0
- Imported pages are sized at the PDF's TrimBox, with the bleed carried outside the page.
- Word text-effect outlines import as one text element instead of overlapping copies.
@polotno/svg-export 0.3.1
- Text highlight backgrounds paint correctly inside curved text.
- Font family names with spaces or special characters are quoted correctly.
- Auto-fit text picks the same font sizes as the editor canvas.
@polotno/html-export 0.3.1
- Underlines draw as one solid line, matching the canvas.
- Text wraps at the exact element width, so line breaks match the editor.
@polotno/svg-import 0.0.25
- SVG files that declare only a viewBox get their size from the markup instead of a fallback.
@polotno/pptx-export 0.4.1
- SVG images are sized with the same rule as the editor canvas.
polotno-node 3.4.0
- Updated bundled renderer: solid underlines and exact-width text wrapping.
Embed creative infrastructure into your product
TRUSTED BY
100,000+
CREATORS
300+
BUSINESSES
