# NOT RUN {
pdfFile = system.file('testForm.pdf',package = 'staplr')
fields = get_fields(pdfFile)
fields$TextField1$value = 'this is text'
fields$TextField2$value = 'more text'
fields$RadioGroup$value = 2
fields$checkBox$value = 'Yes'
set_fields(pdfFile,'filledPdf.pdf',fields)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab