Get the field values from a pdf form (AcroForms). This function is a faster, streamlined alternative to staplr::get_fields.

read_pdf_form(f)

Arguments

f

Path to pdf file.

Value

A list of the field values.

See also

Examples

# read the staplr example file
pdf = system.file('testForm.pdf', package = 'staplr')
head(read_pdf_form(pdf))
#> $TextField1
#> [1] ""
#> 
#> $TextField2
#> [1] ""
#> 
#> $RadioGroup
#> [1] "Off"
#> 
#> $checkBox
#> [1] "Off"
#> 
#> $`List Box`
#> [1] ""
#> 
#> $hierarchy.node1
#> [1] ""
#>