get_fields | R Documentation |
If the toolkit Pdftk is available in the system, it will be called to get form fields from a pdf file.
See the reference for detailed usage of pdftk
.
get_fields(
input_filepath = NULL,
convert_field_names = FALSE,
encoding_warning = TRUE
)
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. |
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 |
A list of fields. With type, name and value components. To use with
set_fields
edit the value element of the fields you want to
modify. If the field of type "button", the value will be a factor. In this
case the factor levels describe the possible values for the field. For
example for a checkbox the typical level names would be "Off" and "Yes",
corresponding to non checked and checked states respectively.
Ogan Mancarci
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
link{set_fields}
pdfFile = system.file('simpleForm.pdf',package = 'staplr')
fields = get_fields(pdfFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.