=== Kel Smart Forms – Form Builder + Word & PDF to Online Form ===
Contributors: kel
Tags: forms, form builder, pdf form, word to form, contact form
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Drag & drop form builder that also turns your existing Word (DOCX) and PDF documents into fillable online forms – automatically.

== Description ==

**Kel Smart Forms** is a complete form builder for WordPress, with one feature no other form plugin has: upload a Word or PDF document and the plugin finds the places that need to be filled in and turns them into an online form – keeping the original look of the document.

= Turn documents into online forms =

* **Word (.docx)** – the document becomes editable text. Underscores `____`, dot leaders `......`, underlined blanks, empty table cells, `[ ]` / ☐ boxes, legacy Word form fields and content controls all become fields.
* **PDF** – every page keeps its exact design. Fillable PDF (AcroForm) fields, underscores, drawn lines, empty table cells and check boxes become fields positioned on the page.
* **Scanned pages (JPG / PNG)** – lines, boxes and table cells are detected from the image.
* Smart field types: labels such as "Email", "Phone", "ID number", "Date" or their Hebrew equivalents automatically get the right field type and validation.
* Visual editor: move, resize, draw, duplicate and delete fields on the page, or edit the Word text and insert fields anywhere.
* Submitted documents are sent to the site administrator, who can view and print the filled document from the entry screen or the notification email.

= Full drag & drop form builder =

* 20+ field types: text, paragraph, full name, email (with confirmation), phone, number, URL, dropdown, multiple choice, checkboxes with "Other", consent/GDPR, star rating, Net Promoter Score, date, time, slider, Israeli ID number (check-digit validation), hidden, section heading, HTML and divider.
* 12 ready-made templates (contact, quote, survey, job application, event registration, appointment, support ticket…).
* Field widths (full / half / third), placeholders, default values with smart tags, prefill from the URL, input masks, validation rules (numbers, letters, Israeli phone, Israeli ID), min/max, character counter.
* 6 form styles, accent color, label position (top / side / floating).
* Unlimited email notifications with smart tags, CC/BCC, reply-to, HTML template – plus a confirmation email to the person who filled the form.
* Entries manager: search, filters, stars, read/unread, internal notes, resend notifications, print.
* Spam protection: honeypot, time trap and optional math captcha – no external services, no cookies.
* Form scheduling, entry limits, one entry per user, login-required forms.
* Draft autosave in the visitor's browser.
* Shortcode `[kelsf id="123"]`, Gutenberg block and "create page" button.
* Fully translatable, RTL ready. Hebrew translation included.

= Smart Forms Pro =

The Pro add-on (sold at kel1.com) adds: users printing / saving their filled document as PDF, conditional logic, multi-step forms, signature field (also inside documents), file uploads, calculations, repeaters, CSV/Excel export, webhooks, conditional notifications and automatic updates.

= Privacy =

PDF and image files are processed in the administrator's browser with the bundled PDF.js library. No data is sent to external services. IP storage can be disabled and entries can be deleted automatically after a number of days.

== Installation ==

1. Upload the plugin and activate it.
2. Go to **Smart Forms → Add New**.
3. Choose a template, or "Import Word / PDF" and drop your document.
4. Save and add the form to a page with the shortcode or the "Smart Form" block.

== Frequently Asked Questions ==

= Which Word files are supported? =
.docx files (Word 2007 and newer). Old .doc files must be saved as .docx or PDF first.

= My PDF has no fillable fields. Will it work? =
Yes. Lines, underscores, empty table cells and boxes are detected from the page itself. You can always add or adjust fields by drawing on the page.

= Can visitors print the document they filled in? =
The administrator can always print entries. Visitor printing / saving as PDF is part of Smart Forms Pro.

== Changelog ==

= 1.1.0 =
* New visual builder: 12-column grid, drag handles to change field width and height, resizable and collapsible side panels.
* New "Text block" with a formatting toolbar (bold, colors, sizes, alignment, lists, links) edited directly on the form.
* Edit labels, choices, descriptions and the submit button directly on the form (double-click).
* Undo / redo (Ctrl+Z / Ctrl+Y) and desktop / tablet / mobile preview.
* Document editor: tools toolbar, free text on PDF pages, 8 resize handles, snapping guides, copy / paste, text styling (size, color, bold, alignment).
* Word editor: full formatting toolbar, one-click field insertion and resizable fields.
* Spacer field, label size, text color and background options.

= 1.0.0 =
* First release.

== Third-party libraries ==

* PDF.js 4.10 (Apache License 2.0) – https://github.com/mozilla/pdf.js – bundled in assets/vendor/pdfjs.
