org.pdfbox.examples.fdf
Class SetField
This example will take a PDF document and set a FDF field in it.
static void | main(String[] args) - This will read a PDF file and set a field and then write it the pdf out again.
|
void | setField(PDDocument pdfDocument, String name, String value) - This will set a single field in the document.
|
main
public static void main(String[] args)
throws IOException,
COSVisitorException
This will read a PDF file and set a field and then write it the pdf out again.
see usage() for commandline
args
- command line arguments
setField
public void setField(PDDocument pdfDocument,
String name,
String value)
throws IOException
This will set a single field in the document.
pdfDocument
- The PDF to set the field in.name
- The name of the field to set.value
- The new value of the field.