|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.FdfWriter
public class FdfWriter
Writes an FDF form.
Nested Class Summary | |
---|---|
(package private) static class |
FdfWriter.Wrt
|
Field Summary | |
---|---|
(package private) java.util.HashMap |
fields
|
private java.lang.String |
file
The PDF file associated with the FDF. |
private static byte[] |
HEADER_FDF
|
Constructor Summary | |
---|---|
FdfWriter()
Creates a new FdfWriter. |
Method Summary | |
---|---|
java.lang.String |
getField(java.lang.String field)
Gets the field value. |
java.util.HashMap |
getFields()
Gets all the fields. |
java.lang.String |
getFile()
Gets the PDF file name associated with the FDF. |
(package private) void |
iterateFields(java.util.HashMap values,
java.util.HashMap map,
java.lang.String name)
|
boolean |
removeField(java.lang.String field)
Removes the field value. |
(package private) boolean |
setField(java.lang.String field,
PdfObject value)
|
boolean |
setFieldAsName(java.lang.String field,
java.lang.String value)
Sets the field value as a name. |
boolean |
setFieldAsString(java.lang.String field,
java.lang.String value)
Sets the field value as a string. |
void |
setFields(AcroFields af)
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(java.lang.String file)
Sets the PDF file name associated with the FDF. |
void |
writeTo(java.io.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 |
---|
private static final byte[] HEADER_FDF
java.util.HashMap fields
private java.lang.String file
Constructor Detail |
---|
public FdfWriter()
Method Detail |
---|
public void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the stream
java.io.IOException
- on errorboolean setField(java.lang.String field, PdfObject value)
void iterateFields(java.util.HashMap values, java.util.HashMap map, java.lang.String name)
public boolean removeField(java.lang.String field)
field
- the field name
true
if the field was found and removed,
false
otherwisepublic java.util.HashMap getFields()
PdfObject
.
public java.lang.String getField(java.lang.String field)
field
- the field name
null
if not foundpublic boolean setFieldAsName(java.lang.String field, java.lang.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 boolean setFieldAsString(java.lang.String field, java.lang.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 FdfReader
public void setFields(PdfReader pdf)
PdfReader
pdf
- the PdfReader
public void setFields(AcroFields af)
AcroFields
af
- the AcroFields
public java.lang.String getFile()
public void setFile(java.lang.String file)
file
- the PDF file name associated with the FDF
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |