Skip to content

Commit e452cc6

Browse files
committed
Create weak-pugs-hear.md
1 parent 1d7c951 commit e452cc6

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.changeset/weak-pugs-hear.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
'@embedpdf/engines': minor
3+
'@embedpdf/models': minor
4+
'@embedpdf/plugin-render': minor
5+
---
6+
7+
Add optional **form widget rendering** to the render pipeline.
8+
9+
### What changed
10+
11+
- **@embedpdf/models**
12+
13+
- `PdfRenderPageOptions` now supports `withForms?: boolean` to request drawing interactive form widgets.
14+
15+
- **@embedpdf/engines**
16+
17+
- `PdfiumEngine.renderPage` and `renderPageRect` honor `withForms`.
18+
When enabled, the engine initializes the page form handle and calls `FPDF_FFLDraw` with the correct device transform.
19+
- New helper `computeFormDrawParams(matrix, rect, pageSize, rotation)` calculates start offsets and sizes for `FPDF_FFLDraw`.
20+
21+
- **@embedpdf/plugin-render**
22+
- New plugin config flags:
23+
- `withForms?: boolean` (default `false`)
24+
- `withAnnotations?: boolean` (default `false`)
25+
- The plugin merges per-call options with plugin defaults so callers can set once at init or override per call.

0 commit comments

Comments
 (0)