identify_form_fields {staplr} | R Documentation |
Identify text form fields
Description
Helps identification of text forum fields by creating a file that is filled with field names. Some pdf editors show field names when you mouse over the fields as well.
Usage
identify_form_fields(
input_filepath = NULL,
output_filepath = NULL,
overwrite = TRUE,
convert_field_names = FALSE,
encoding_warning = TRUE
)
Arguments
input_filepath |
the path of the input PDF file. The default is set to NULL. IF NULL, it prompt the user to select the folder interactively. |
output_filepath |
the path of the output PDF file. The default is set to NULL. IF NULL, it prompt the user to select the folder interactively. |
overwrite |
If a file exists in |
convert_field_names |
By default |
encoding_warning |
If field names include strings that look like plain text UTF-8
codes, the function will return a warning by default, suggesting setting |
Value
TRUE if the operation was succesfful. FALSE if the operation fails.
Examples
output <- tempfile(fileext = '.pdf')
pdfFile = system.file('simpleForm.pdf',package = 'staplr')
identify_form_fields(pdfFile, output)