Wraps FPDF_GetFormType to report whether the document carries an
AcroForm ("acro_form"), a full XFA form ("xfa_full"), an XFA
foreground overlay on top of an AcroForm ("xfa_foreground"), or no
form at all ("none").
Arguments
- doc
A
pdfium_docfrompdf_doc_open().
Details
AcroForm is what pdf_form_fields() enumerates; XFA forms are an
Adobe-specific dialect that PDFium does not interpret (you can detect
them with this function and warn the user to use Adobe Reader).
Examples
fixture <- system.file("extdata", "fixtures", "minimal.pdf",
package = "pdfium"
)
if (nzchar(fixture)) {
doc <- pdf_doc_open(fixture)
pdf_doc_form_type(doc)
pdf_doc_close(doc)
}