Skip to content

Add Auto Form Detection#6663

Draft
Frooodle wants to merge 6 commits into
mainfrom
feat/auto-form-detection
Draft

Add Auto Form Detection#6663
Frooodle wants to merge 6 commits into
mainfrom
feat/auto-form-detection

Conversation

@Frooodle

Copy link
Copy Markdown
Member

Description of Changes

detection of form-field regions → fillable AcroForm. Runs in-browser (private) or on the server.

Feature

  • New "Auto Form Detection" tool (Create → Forms).
  • Two engines: in-browser (onnxruntime-web/WASM) and server (onnxruntime Java).
  • Detect → review → apply, returns a fillable PDF.

Admin (Settings → Features → AI Form Detection)

  • On/off master switch.
  • Engine selector: Auto / Browser / Server (Server greys out if not bundled).
  • Model catalog: install / switch / uninstall.
  • Air-gapped install instructions per model.

Models

  • CommonForms FFDNet-S (small, ~37MB) and FFDNet-L (large, ~97MB).
  • Downloaded on demand + SHA-256 verified; cached in-browser via Cache API.
  • License shown in-UI (YOLOv8/AGPL lineage; weights never redistributed).

Docker

  • Feature enabled by default, model pre-bundled (FFDNet-S baked in, seeded into /configs on startup) - works out-of-the-box, no install step.
  • Server ONNX engine bundled via -PbundleOnnxRuntime=true, slimmed to one Linux arch (~42MB → ~8MB).

Checklist

General

Documentation

Translations (if applicable)

UI Changes (if applicable)

  • Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR)

Testing (if applicable)

  • I have run task check to verify linters, typechecks, and tests pass
  • I have tested my changes locally. Refer to the Testing Guide for more details.

@stirlingbot stirlingbot Bot added Documentation Improvements or additions to documentation Java Pull requests that update Java code Front End Issues or pull requests related to front-end development Back End Issues related to back-end development Docker Pull requests that update Docker code Translation Test Testing-related issues or pull requests Gradle Pull requests that update Gradle code labels Jun 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Frontend Check Failed

There are issues with your frontend code that will need to be fixed before they can be merged in.

Run task frontend:fix to auto-fix what can be fixed automatically, then run task frontend:check:all to see what still needs fixing manually.

@stirlingbot

stirlingbot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

✅ Frontend License Check Passed

All frontend licenses have been validated and no compatibility warnings were detected.

The frontend license report has been updated successfully.

@stirlingbot

stirlingbot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

✅ Backend License Check Passed

All backend dependencies have valid and allowed licenses.

The backend license report has been updated successfully.

@stirlingbot

stirlingbot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🚀 V2 Auto-Deployment Complete!

Your V2 PR with embedded architecture has been deployed!

🔗 Direct Test URL (non-SSL) http://54.175.155.236:6663

🔐 Secure HTTPS URL: https://6663.ssl.stirlingpdf.cloud

This deployment will be automatically cleaned up when the PR is closed.

🔄 Auto-deployed for approved V2 contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Back End Issues related to back-end development Docker Pull requests that update Docker code Documentation Improvements or additions to documentation Front End Issues or pull requests related to front-end development Gradle Pull requests that update Gradle code Java Pull requests that update Java code Test Testing-related issues or pull requests Translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants