Last Updated:

Xojo FPDF - Forms Module

Jean-Yves POCHEZ Xojo FPDF

πŸ“‹Β Interactive PDF Forms Made Easy

πŸš€ Coming Soon!

The Problem

Static PDFs are one-way documents. Users can’t:

  • ❌ Fill in fields
  • ❌ Check boxes
  • ❌ Make selections
  • ❌ Sign digitally
  • ❌ Submit data

You’re stuck with printable forms that require manual data entry, scanning, and retyping.

The Solution

The VNS PDF Forms Module creates interactive AcroForms - fillable PDF forms that users can complete directly in their PDF reader, then save, print, or submit electronically.


✨ Complete Form Field Support

Text Fields

  • Single-line and multi-line input
  • Rich text formatting
  • Character limits
  • Input validation (email, phone, numeric)
  • Password masking
  • Read-only fields

Checkboxes

  • Individual checkboxes
  • Checkbox groups
  • Default checked/unchecked
  • Custom check marks
  • Tooltip support

Radio Buttons

  • Mutually exclusive groups
  • Visual grouping
  • Default selection
  • Custom button styles
  • Single and multi-select
  • Editable combo boxes
  • Option lists
  • Default values
  • Alphabetical sorting

Buttons

  • Submit buttons (HTTP POST/GET, email)
  • Reset buttons
  • Custom actions
  • JavaScript triggers
  • Navigation buttons

Signature Fields

  • Digital signature support
  • Hand-drawn signature capture
  • Timestamp and certification
  • Multiple signatures per document
  • Signature appearance customization

πŸ’Ό Perfect For

Online Registration Event registrations, membership applications, contest entries with automatic data collection.

Customer Intake New customer forms, account opening, service requests with structured data capture.

HR & Employment Job applications, employee onboarding, time-off requests, performance reviews.

Surveys & Questionnaires Market research, customer feedback, satisfaction surveys with exportable data.

Legal Documents Contracts, agreements, consent forms requiring signatures and witness attestation.

Medical Forms Patient intake, consent forms, insurance claims, HIPAA-compliant data collection.

Order Forms Product orders, service requests, purchase orders with calculation fields.


🎯 Advanced Features

Field Calculation

Built-in calculation engine for totals, subtotals, taxes, discounts:

  • Sum, average, min, max
  • Percentage calculations
  • Conditional formulas
  • Currency formatting

Field Validation

Ensure data quality with validators:

  • Email format checking
  • Phone number patterns
  • Date range validation
  • Numeric min/max
  • Custom regex patterns

Conditional Logic

Show/hide fields based on user input:

  • If checkbox A is checked, show field B
  • If dropdown = β€œOther”, show text field
  • Progressive disclosure for complex forms

Tab Order

Control form navigation:

  • Logical tab sequence
  • Skip read-only fields
  • Group related fields

Data Export

Extract form data programmatically:

  • FDF (Forms Data Format)
  • XFDF (XML Forms Data Format)
  • JSON export
  • CSV for database import

πŸ“ Simple API

// Create a simple contact form
Dim pdf As New VNSPDFDocument()

// Add text fields
pdf.AddTextField("name", 20, 50, 170, 10, "Full Name")
pdf.AddTextField("email", 20, 65, 170, 10, "Email Address")
pdf.AddTextField("phone", 20, 80, 170, 10, "Phone Number")

// Add multi-line text area (100 chars wide, 50 high)
pdf.AddTextField("message", 20, 100, 170, 50, "Message")

// Add checkboxes
pdf.AddCheckbox("subscribe", 20, 160, 10, 10, "Subscribe to newsletter")

// Add submit button
pdf.AddButton("submit", 20, 180, 50, 10, "Submit")

// Generate interactive PDF
pdf.Save(formFile)

Result: A professional, fillable PDF form ready to distribute.


πŸ”§ Pure Xojo Implementation

Platform Independent

  • Works on Desktop, Web, iOS, Console
  • No external dependencies
  • Full source code included
  • Modify and extend as needed

Standards Compliant

  • PDF 1.4+ AcroForm specification
  • Compatible with Adobe Reader, Acrobat, Preview
  • Chrome/Firefox built-in PDF viewers
  • Mobile PDF readers (iOS, Android)

πŸ’‘ Real-World Example

Job Application Form:

Dim pdf As New VNSPDFDocument()

// Personal Information
pdf.AddTextField("firstName", 20, 50, 80, 8, "First Name")
pdf.AddTextField("lastName", 110, 50, 80, 8, "Last Name")
pdf.AddTextField("email", 20, 65, 170, 8, "Email")

// Position Applied For
Dim positions() As String = Array("Software Developer", "QA Engineer", "Designer")
pdf.AddDropdown("position", 20, 85, 170, 8, positions)

// Experience Level (radio buttons)
pdf.AddRadioButton("experience", 20, 105, "Entry Level (0-2 years)")
pdf.AddRadioButton("experience", 20, 115, "Mid Level (3-5 years)")
pdf.AddRadioButton("experience", 20, 125, "Senior Level (6+ years)")

// Cover Letter (multi-line text field)
pdf.AddTextField("coverLetter", 20, 140, 170, 80, "Why do you want to work here?")

// Certifications
pdf.AddCheckbox("hasCert", 20, 230, 5, 5, "I have relevant certifications")

// Signature
pdf.AddSignatureField("signature", 20, 250, 80, 30, "Applicant Signature")

// Submit Button
pdf.AddButton("submit", 110, 260, 40, 8, "Submit Application")

pdf.Save(applicationFile)

βœ… What You Get (When Available)

  • βœ… Full source code - VNSPDFFormsPremium.xojo_code
  • βœ… All form field types - Text, checkbox, radio, dropdown, button, signature
  • βœ… Field validation - Email, phone, numeric, regex patterns
  • βœ… Calculation engine - Formulas for totals and computed fields
  • βœ… Conditional logic - Show/hide based on user input
  • βœ… Data export - FDF, XFDF, JSON, CSV
  • βœ… All platforms - Desktop, Web, iOS, Console
  • βœ… Documentation - Complete API guide with examples
  • βœ… 12 months free updates - Compatible with future versions

πŸ’° Pricing (When Available)

Expected Price: €50

Bundle Offer: Buy 2, Get 1 Free! Combine Forms Module with any other modules (Encryption, Tables, Zlib, PDF/A, E-Invoice).

What Will Be Included:

  • VNSPDFFormsPremium.xojo_code (complete source)
  • Complete documentation and examples
  • Installation guide
  • 12 months free updates from release
  • Lifetime license

πŸ“Š Comparison with Alternatives

FeatureAdobe Acrobat ProVNS Forms Module
Price$179.88/year€50 one-time
PlatformDesktop onlyDesktop, Web, iOS
AutomationManual/scriptingPure Xojo code
Source CodeNoYes (full access)
IntegrationExternalNative Xojo
UpdatesSubscription12 months free

❓ Frequently Asked Questions

Q: When will this be available? A: Estimated Q2-Q3 2026. Pre-order customers get immediate access at launch.

Q: What if I pre-order and it’s delayed? A: Your pre-order price is locked. If launch is delayed beyond Q4 2026, you can request a full refund.

Q: Can I fill out forms programmatically? A: Yes! The module will include methods to set field values via code, perfect for mail-merge scenarios.

Q: Will this work with existing PDF forms? A: Not in v1.0. Version 1.0 creates forms from scratch. Form filling/editing of existing PDFs is planned for v2.0.

Q: Can users submit forms without coding a backend? A: Yes! Forms can email results (mailto: action) or submit to any HTTP endpoint.

Q: What about form security? A: Combine with Encryption Module for password-protected forms with permission controls.

Q: Will JavaScript actions be supported? A: Basic JavaScript support is planned for v1.0 (calculations, validation). Advanced scripting in v2.0.


🎯 Use Case Examples

Conference Registration Attendee name, email, company, session preferences, meal selections, accessibility needs, payment info.

Loan Application Personal details, employment history, income, expenses, asset declarations, signature, co-signer.

Medical Consent Form Patient information, procedure details, risks acknowledgment, consent checkboxes, signatures (patient, doctor, witness).

Purchase Order Vendor info, line items with qty/price calculation, subtotal/tax/total auto-calculation, approval signature.

Performance Review Employee details, rating scales, objectives, achievements, development areas, manager/employee signatures.



πŸ’‘ Available Now

While you wait for Forms Module, check out our currently available modules:

  • πŸ” Encryption Module - AES-256/128 password protection (€50)
  • πŸ“Š Table Module - Professional table generation (€50)
  • πŸ—œοΈ Zlib Module - iOS compression support (€50)

Bundle & Save: Buy 2, get 1 free! View All Modules β†’

Β