|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmultivalent.std.adaptor.pdf.Forms
Manipulate interactive forms: export, import. Forms can be extracted from FDF or PDF, modified, and written to a new FDF or PDF.
read
, from a PDF or FDF file,
or read defaults values
from a PDF.
Keys may already be known, or all keys can be iterated with Map#iterator()
.
Map.put(Object,Object)
. Data can come from FDF or XML or directly from a database or computed or elsewhere.
Note that new form fields cannot be created simply by adding a new key to the Map.
PDFWriter
, new or overwrite.
The contents of the form can replace
or merged
with existing PDF.
before writing
.
flatten(PDFWriter)
.
Keys of the Map are fully qualified export field names (concatenated TM
dictionary keys),
Values are form V
settings.
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
export(PDFReader pdfr)
|
static java.util.Map<java.lang.String,java.lang.Object> |
exportDefaults(PDFReader pdfr)
Returns a Map of the FDF's or PDF's interactive form data,
or an empty Map if there is no form (there is at most one form, with fields on possibly many pages). |
static void |
flatten(PDFWriter pdfw)
Flattens forms by fusing appearance onto pages. |
static void |
merge(java.util.Map<java.lang.String,java.lang.Object> map,
PDFWriter pdfw)
Merge the values of a map into a new FDF/PDF's form. |
static void |
set(java.util.Map<java.lang.String,java.lang.Object> map,
PDFWriter pdfw)
Set the values of a map as a new FDF/PDF's form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.Object> export(PDFReader pdfr) throws java.io.IOException
java.io.IOException
public static java.util.Map<java.lang.String,java.lang.Object> exportDefaults(PDFReader pdfr) throws java.io.IOException
Map
of the FDF's or PDF's interactive form data,
or an empty Map if there is no form (there is at most one form, with fields on possibly many pages).
java.io.IOException
public static void set(java.util.Map<java.lang.String,java.lang.Object> map, PDFWriter pdfw) throws java.io.IOException
java.io.IOException
public static void merge(java.util.Map<java.lang.String,java.lang.Object> map, PDFWriter pdfw) throws java.io.IOException
java.io.IOException
public static void flatten(PDFWriter pdfw) throws java.io.IOException
merge
or set
, then flatten.
Recommended PDFWriter.refcntRemove()
throw out objects no longer used.
java.io.IOException
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |