Catalog PyPI
PACKAGE EXPLORERView in registry

acromeld

PyPI

Turn a flat PDF into a fillable AcroForm document

acroformdocument-aiform-fieldsobject-detectionpdf
Versions collected1
Direct dependencies8From release 0.1.0
Last observed20 Oct, 18:26 UTC

README

Version 0.1.0 documentation

AcroMELD

Turns a flat PDF into a fillable form. Give it a PDF that looks like a form but has no form fields, and it finds every field and writes a real, clickable AcroForm.

acromeld input.pdf output.pdf

The first run downloads the model (158 MB) from Hugging Face and caches it. CPU is the default and works fine; a page takes a few seconds.

From Python:

from acromeld import prepare_form

prepare_form("input.pdf", "output.pdf")

Options

ArgumentDefaultDescription
--weightsdownloaduse a local weights file instead of the Hub
--devicecputorch device, e.g. cuda
--confidence TEXT CHOICE SIGNATUREcalibratedoverride the per-class thresholds
--keep-existing-fieldsoffkeep form fields the PDF already has
--use-signature-fieldsoffwrite real signature widgets
--multilineoffallow multiline input in text fields

What it detects

Three field types — Text, Choice, Signature — plus a learned link that merges several visual candidates into one field instead of emitting duplicates. It reads two channels at once: the rendered page, and the PDF's own drawing primitives, which a purely visual detector ignores. 39.4M parameters, up to 896 fields per page.

How well it works

Measured once on a sealed holdout of 1,996 PDFs / 6,843 pages the model never saw during training, against a threshold registered before training started: containment micro-F1 0.84767 against a required 0.82904 — passed.

Read this before using it:

  • Signature detection does not work. At the calibrated threshold the model predicts essentially no signature fields. Text and Choice carry the entire score.
  • Under a stricter IoU/COCO adapter the same model reaches only 0.28996 mAP, below a locally evaluated CommonForms-L reference.
  • Measured on German-language forms. Other languages and layouts are untested.
  • Rotated pages are rejected rather than silently misplaced.
  • One sealed run, one seed. No stability claim.

This is a research artifact, not a product.

Licence

Apache-2.0. Vendored third-party components and their modifications are listed in THIRD-PARTY-NOTICES.md in the source distribution.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.018 Aug 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
samyssmile/acromeld

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:dea741acd83ffdffbbe2d2dbf196475eb9cdbf9a8b8bfa25ff08623dcc47639e