Extract form-filling values from a PDF document that supports Acroform #322
-
Checklist
Reason for Generic issue (keyword/topic)Looks like that pdfium supports to extract values in a form-fill PDF file but there is no visible API to do that DescriptionI can check that in this document, the PDFMiner supports to detect if the document contains form-fill values or not. But there is no clearly API from the official document to do the form-fill value extraction. pdf = PdfDocument(pdf_path)
print(pdf.get_formtype()) # = 1 Can you please show me what API should I use to extract the form-fill values. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is a feature request, and you are not supposed to edit the template! 1 Footnotes
|
Beta Was this translation helpful? Give feedback.
-
As to the forms, no, pypdfium2 does not provide (or plan to provide) helpers for this. However, sufficiently experienced embedders may access the raw pdfium API directly if you need features beyond what is covered by the support models. In this case, one would refer to the APIs and docs in |
Beta Was this translation helpful? Give feedback.
As to the forms, no, pypdfium2 does not provide (or plan to provide) helpers for this.
pdfium is a vast library, and it is infeasible for a single volunteer to write wrappers around all of its APIs, so I am focusing on a few core support models.
However, sufficiently experienced embedders may access the raw pdfium API directly if you need features beyond what is covered by the support models. In this case, one would refer to the APIs and docs in
fpdf_formfill.h
.