=== signwpdf PDF Sign & Fill ===
Contributors: signwpdf
Tags: pdf, signature, forms, esignature, document
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional PDF signature collection plugin. Upload fillable PDFs, collect signatures, and store signed documents securely.

== Description ==

signwpdf PDF Sign & Fill is a professional WordPress plugin that enables you to upload fillable PDF forms, collect electronic signatures, and store completed documents securely. Perfect for contracts, agreements, waivers, and any document requiring signatures.

**Core Features:**
* Upload fillable PDF templates
* Collect digital signatures via web forms
* Store signed agreements securely in WordPress
* Email notifications for completed documents
* PDF generation with TCPDF library
* Audit trail and certificate generation
* Template management system
* Shortcode integration for forms
* Gutenberg block support
* AJAX-powered signature collection

**Premium Features (Optional):**
* Priority support with faster response times
* Access to future premium features

**Soft Activation Model:**
This plugin works fully without activation. Activation only enables premium features and priority support. All PDF signature features are available to everyone. Free version updates are always available from WordPress.org.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/signwpdf-pdf-sign-fill/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to 'Signed Agreements' in the WordPress admin menu
4. Upload your fillable PDF templates
5. Use shortcodes or Gutenberg blocks to embed signature forms

== Frequently Asked Questions ==

= Do I need a license to use the plugin? =

No! All core PDF signature features work without a license. A premium license only enables premium features and priority support. Free version updates are always available from WordPress.org.

= What PDF features are included? =

The plugin includes TCPDF for PDF generation, FPDI for PDF manipulation, signature collection, form filling, email notifications, and audit trails.

= Is it compatible with my theme? =

Yes! The plugin works with any WordPress theme and includes responsive signature forms.

= Can I collect multiple signatures? =

Yes, you can create unlimited templates and collect unlimited signatures.

== External Services ==

This plugin connects to the following external third-party services. No external connections are made for core PDF signing functionality — all PDF processing happens locally on your server.

= Freemius (freemius.com) =

This plugin uses the Freemius SDK for license management and premium feature activation. When the plugin is activated, it connects to the Freemius API to register the site and validate license status.

* What data is sent: Site URL, plugin version, WordPress version, PHP version, and admin email address (if the admin opts in to usage tracking).
* When data is sent: On plugin activation, during periodic license validation checks, on update checks, and optionally for anonymous usage analytics (only if the admin explicitly opts in).
* Why: To manage premium license activation, enable premium features, and provide support services.
* Service provider: Freemius Inc.
* Terms of Service: https://freemius.com/terms/
* Privacy Policy: https://freemius.com/privacy/

= WordPress.org API (api.wordpress.org) =

This plugin connects to the WordPress.org API solely for a network connectivity diagnostic test. This is only triggered when an admin manually clicks "Run Diagnostics" on the License settings page.

* What data is sent: A standard HTTP GET request with default WordPress HTTP headers (site URL, WordPress version).
* When data is sent: Only when an administrator manually initiates a diagnostics check from the plugin License page.
* Why: To verify the server can make outbound HTTPS connections, which is required for license validation.
* Service provider: WordPress.org
* Privacy Policy: https://wordpress.org/about/privacy/
* Terms of Service: https://wordpress.org/about/

== Bundled Libraries ==

This plugin includes the following JavaScript and PHP libraries locally (no CDN calls):

**PDF.js (Mozilla) v5.4.624**
* Purpose: PDF rendering in browser
* License: Apache-2.0
* Source: https://github.com/mozilla/pdf.js
* Note: Bundled locally - no external connections

**Signature Pad**
* Purpose: Signature capture functionality
* License: MIT
* Source: https://github.com/szimek/signature_pad
* Note: Bundled locally - no external connections

**PDF-lib**
* Purpose: Client-side PDF form filling
* License: MIT
* Source: https://github.com/Hopding/pdf-lib
* Note: Bundled locally - no external connections

**TCPDF (tecnickcom/tcpdf) v6.11.2**
* Purpose: Server-side PDF generation for audit trail certificates
* License: GNU-LGPLv3
* Source: https://github.com/tecnickcom/TCPDF
* Note: Bundled locally under a custom PHP namespace prefix (Swpdf_Vendor_) using Strauss to prevent conflicts with other plugins. Loaded only when generating audit certificates. No external connections.

**FPDI (setasign/fpdi) v2.6.4**
* Purpose: PDF template importing and overlay for audit certificates
* License: MIT
* Source: https://github.com/Setasign/FPDI
* Note: Bundled locally under a custom PHP namespace prefix (Swpdf\Vendor\) using Strauss to prevent conflicts with other plugins. No external connections.

**Freemius SDK**
* Purpose: License management and premium feature activation
* License: GNU-GPLv3
* Source: https://github.com/Freemius/wordpress-sdk
* Note: Uses class_exists('Freemius') check to avoid conflicts if another plugin has already loaded the SDK. See External Services section above for data transmission details.

== Changelog ==

= 1.1.2 =
* Updated TCPDF library from 6.10.1 to 6.11.2 (latest stable)
* Clarified license page messaging: free version updates always come from WordPress.org at no cost
* Premium license only enables premium features and priority support

= 1.1.1 =
* Security: nonce verification now required on all AJAX endpoints including public template loading
* Compliance: extracted inline CSS/JS from settings page into properly enqueued external files
* Compliance: improved Freemius SDK loading to preserve built-in version selection logic
* Fixed template error response no longer exposes available template keys

= 1.1.0 =
* Added Freemius integration for licensing
* Implemented soft activation model - all features work without license
* Free version updates delivered via WordPress.org (no license required)
* Premium license enables premium features and priority support
* Added account management through Freemius SDK
* Improved admin menu structure
* Enhanced license page with diagnostics
* Fixed compatibility with WordPress 6.9

= 1.0.0 =
* Initial release
* PDF upload and template management
* Signature collection via shortcodes
* Email notifications
* Audit trail generation
* Secure document storage

== Upgrade Notice ==

= 1.1.2 =
Updated TCPDF to latest version. Clarified that free updates are always free from WordPress.org.

= 1.1.1 =
Security and compliance improvements for WordPress.org review.

= 1.1.0 =
Freemius integration added for easier updates and support. All features continue to work without activation.
