MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / get_acroform

Method get_acroform

src/__init__.py:3440–3444  ·  view source on GitHub ↗

Retrieve the AcroForm dictionary form a PDF.

(doc)

Source from the content-addressed store, hash-verified

3438 clean_kid_parents(acro_fields)
3439
3440 def get_acroform(doc):
3441 """Retrieve the AcroForm dictionary form a PDF."""
3442 pdf = mupdf.pdf_document_from_fz_document(doc)
3443 # AcroForm (= central form field info)
3444 return mupdf.pdf_dict_getp(mupdf.pdf_trailer(pdf), "Root/AcroForm")
3445
3446 tarpdf = mupdf.pdf_document_from_fz_document(tar)
3447 srcpdf = mupdf.pdf_document_from_fz_document(src)

Callers

nothing calls this directly

Calls 1

pdf_trailerMethod · 0.80

Tested by

no test coverage detected