v0.8.3
Forme 0.8.3
New Features
SVG Children API
<Svg> now accepts JSX children as an alternative to the raw content string prop. This restores intellisense, syntax highlighting, and proper JSX formatting for SVG content.
Before:
<Svg width={794} height={200} viewBox="0 0 794 200"
content={`<path fill="#e7f2fe" d="M0 120C80 80 160 60 260 75..."/>`}
/>After:
<Svg width={794} height={200} viewBox="0 0 794 200">
<path fill="#e7f2fe" d="M0 120C80 80 160 60 260 75..." />
<path fill="#d7e8fe" d="M0 150C100 120 180 100 280 120..." />
</Svg>Both forms continue to work. camelCase props are automatically converted to kebab-case SVG attributes (strokeWidth → stroke-width, fillOpacity → fill-opacity, etc.). Nested children via <g> are supported.
SVG Opacity Support
opacity, fill-opacity, and stroke-opacity attributes on SVG elements are now applied correctly via PDF ExtGState. Previously these attributes were silently ignored.
<Svg width={400} height={200} viewBox="0 0 400 200">
<path fill="#60a5fa" opacity="0.3" d="..." />
<rect fill="#ef4444" fill-opacity="0.5" x="0" y="0" width="100" height="100" />
</Svg>Opacity inherits through <g> groups correctly.
VS Code Extension — Python Preview
The VS Code extension now supports previewing Python SDK templates. Open a .py file that imports formepdf and the "Preview PDF" button appears in the editor toolbar. The extension runs the script using your Python interpreter and displays the output PDF in the preview panel.
The script should write PDF bytes to stdout:
import sys
import formepdf
doc = formepdf.Document(...)
pdf = doc.render()
sys.stdout.buffer.write(pdf)Uses the Python interpreter from the VS Code Python extension if installed, falls back to python3 / python.
Bug Fixes
Page style prop now applies correctly
<Page style={{ fontFamily: 'Outfit' }}> was silently dropped — the style was not inherited by child elements. Fixed in both the React serializer and the layout engine. Page-level styles now propagate to children as expected.
Upgrading
npm install @formepdf/react@0.8.3 @formepdf/core@0.8.3
# Docker
docker pull formepdf/forme:0.8.3
# Go SDK
go get github.com/formepdf/forme-go@v0.8.3
# Rust crate
cargo add forme-pdf@0.8.3No breaking changes. Drop-in upgrade from 0.8.2.
All Packages
@formepdf/react · @formepdf/core · @formepdf/cli · @formepdf/renderer · @formepdf/hono · @formepdf/next · @formepdf/resend · @formepdf/mcp · @formepdf/sdk · @formepdf/tailwind · @formepdf/templates · forme-pdf (VS Code) · forme-pdf (crates.io) · formepdf (PyPI) · formepdf/forme (Docker) · github.com/formepdf/forme-go