- Ya
- 5 Agosti 2026, 23:21 UTC
- Mwandishi
- kamo
- Ahadi ya
- 0f0631e
Opening an editable PDF in the document editor now reads its AcroForm widget annotations off the pdf.js document and recreates each one as a DesignField on the same page, at the same position and size, with the closest matching Kamo field type. On an untouched design the fields are placed automatically (one undo step, with an Undo action on the notice); otherwise the toolbox offers a review dialog that skips anything already covered by a placed field. - app/lib/esign/acroform.ts: pure detection. Widget rects are converted through the page viewport so page /Rotate is honoured. Structural mapping covers Sig/Btn/Ch/Tx (push buttons and hidden widgets dropped); text widgets get a semantic pass over the tooltip, field name and the caption printed beside them on the page, so "Borrower Signature" becomes a signature box and "Signature Date" a date. Radio buttons keep their individual boxes and are tied together through a shared linkedGroupId. - DesignField gains optional options[], matching the field option contract the signer app already accepts; the properties panel now edits them, and can also reassign a field to another signer. Verified against real pdf.js 4.10.38 parsing a real pdf-lib-built form, in addition to the unit suite.