|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.FdfWriter
Writes an FDF form.
| Nested Class Summary | |
(package private) class |
FdfWriter.Wrt
|
| Field Summary | |
(package private) HashMap |
fields
|
private String |
file
The PDF file associated with the FDF. |
(package private) static byte[] |
HEADER_FDF
|
| Constructor Summary | |
FdfWriter()
Creates a new FdfWriter. |
|
| Method Summary | |
String |
getField(String field)
Gets the field value. |
HashMap |
getFields()
Gets all the fields. |
String |
getFile()
Gets the PDF file name associated with the FDF. |
(package private) void |
iterateFields(HashMap values,
HashMap map,
String name)
|
boolean |
removeField(String field)
Removes the field value. |
(package private) boolean |
setField(String field,
PdfObject value)
|
boolean |
setFieldAsName(String field,
String value)
Sets the field value as a name. |
boolean |
setFieldAsString(String field,
String value)
Sets the field value as a string. |
void |
setFields(AcroFields acro)
Sets all the fields from this AcroFields |
void |
setFields(FdfReader fdf)
Sets all the fields from this FdfReader |
void |
setFields(PdfReader pdf)
Sets all the fields from this PdfReader |
void |
setFile(String file)
Sets the PDF file name associated with the FDF. |
void |
writeTo(OutputStream os)
Writes the content to a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static byte[] HEADER_FDF
HashMap fields
private String file
| Constructor Detail |
public FdfWriter()
| Method Detail |
public void writeTo(OutputStream os)
throws DocumentException,
IOException
os - the stream
DocumentException - on error
IOException - on error
boolean setField(String field,
PdfObject value)
void iterateFields(HashMap values,
HashMap map,
String name)
public boolean removeField(String field)
field - the field name
true if the field was found and removed,
false otherwisepublic HashMap getFields()
PdfObject.
public String getField(String field)
field - the field name
null if not found
public boolean setFieldAsName(String field,
String value)
field - the fully qualified field namevalue - the value
true if the value was inserted,
false if the name is incompatible with
an existing field
public boolean setFieldAsString(String field,
String value)
field - the fully qualified field namevalue - the value
true if the value was inserted,
false if the name is incompatible with
an existing fieldpublic void setFields(FdfReader fdf)
FdfReader
fdf - the FdfReaderpublic void setFields(PdfReader pdf)
PdfReader
pdf - the PdfReaderpublic void setFields(AcroFields acro)
AcroFields
acro - the AcroFieldspublic String getFile()
public void setFile(String file)
file - the PDF file name associated with the FDF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||