|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfbox.examples.AbstractExample
org.pdfbox.examples.fdf.SetField
public class SetField
This example will take a PDF document and set a FDF field in it.
| Constructor Summary | |
|---|---|
SetField()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
This will read a PDF file and set a field and then write it the pdf out again. |
void |
setField(PDDocument pdfDocument,
java.lang.String name,
java.lang.String value)
This will set a single field in the document. |
| Methods inherited from class org.pdfbox.examples.AbstractExample |
|---|
close, close, close, close, close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetField()
| Method Detail |
|---|
public void setField(PDDocument pdfDocument,
java.lang.String name,
java.lang.String value)
throws java.io.IOException
pdfDocument - The PDF to set the field in.name - The name of the field to set.value - The new value of the field.
java.io.IOException - If there is an error setting the field.
public static void main(java.lang.String[] args)
throws java.io.IOException,
COSVisitorException
args - command line arguments
java.io.IOException - If there is an error importing the FDF document.
COSVisitorException - If there is an error writing the PDF.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||