|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfModule
com.crionics.jpdf.AbstractModule
com.crionics.jpdf.TemplateModule
public final class TemplateModule
This Object is used to access all the Form Fields present in the Current Pdf
Document. Signature fields must be accessed through the SignerModule.
The supported Form Fields are: Buttons, RadioButtons, Checkboxes and
TextFields.
| Field Summary |
|---|
| Fields inherited from class com.crionics.jpdf.AbstractModule |
|---|
MOD_CREATOR, MOD_DESCRIPTION, MOD_ENCRYPTION, MOD_MERGER, MOD_PRINTER, MOD_SECURITY, MOD_SIGNER, MOD_TEMPLATE |
| Method Summary | |
|---|---|
boolean |
containsField(java.lang.String fieldName)
Search for the existence of a field with the specified name |
void |
createImage(int pageIndex,
AbstractImage image,
java.awt.geom.AffineTransform op)
Draws the given image on page pageIndex. |
void |
deleteField(java.lang.String fieldName)
Deletes all references to the field from the document |
java.lang.String |
extractStrings()
Extract the strings present in all the pages and provides a raw PDF->ascii convertion mechanisum. |
java.lang.String |
extractStrings(int pageIndex)
Extract the strings present in a specific page and provides a raw PDF->ascii convertion mechanisum. |
boolean |
flattenField(java.lang.String fieldName)
|
AbstractField |
getField(java.lang.String fieldName)
Retrieve a "supported" FormField from the current PDF document by its name |
java.util.List |
getFieldList()
Retrieve all the "supported" FormFields from the current PDF document. |
PdfGraphic |
getGraphic(java.lang.String name)
Retrieves a Graphical Object via its name from the document. |
java.util.List |
getGraphicList()
Retrieves the list of Graphical Objects present in the document. |
Outline |
getOutline()
Recovers the Outline present in the current document if presents. |
boolean |
hasFields()
Return true if the document contains form fields |
void |
hidePage(int pageIdx)
Hides the page in the document. |
void |
movePage(int srcPageIdx,
int dstPageIdx)
Moves a page from one index to the other |
void |
movePage(int pageIndexStartRange,
int pageIndexLastOfRange,
int pageIndexOfInsertion)
Moves a group of page to a new position in the document |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean containsField(java.lang.String fieldName)
throws java.io.IOException,
PdfException
fieldName - The name of the field to search for.
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public void createImage(int pageIndex,
AbstractImage image,
java.awt.geom.AffineTransform op)
throws java.io.IOException,
PdfException
pageIndex - the page to draw the graphic on [1, pagemax]image - the gfx itselfop - the transformation to apply, typically a translation/scaling -
use Page.getPageFormat() to get page bunderies
java.io.IOException
PdfException
public void deleteField(java.lang.String fieldName)
throws PdfEntityNotFoundException,
PdfException,
java.io.IOException
fieldName - the field name
PdfEntityNotFoundException - raised if field not found
PdfException - pdf issue
java.io.IOException - io issue
public java.lang.String extractStrings()
throws java.io.IOException,
PdfException
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public java.lang.String extractStrings(int pageIndex)
throws java.io.IOException,
PdfException
pageIndex - The page index (starting at 1).
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public boolean flattenField(java.lang.String fieldName)
throws java.io.IOException,
PdfException
fieldName -
java.io.IOException
PdfException
public AbstractField getField(java.lang.String fieldName)
throws PdfException,
java.io.IOException
fieldName - The name of the field.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.util.List getFieldList()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public PdfGraphic getGraphic(java.lang.String name)
throws java.io.IOException,
PdfException
name - the name of the image
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public java.util.List getGraphicList()
throws java.io.IOException,
PdfException
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public Outline getOutline()
throws java.io.IOException,
PdfException
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public boolean hasFields()
throws java.io.IOException,
PdfException
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public void hidePage(int pageIdx)
throws java.io.IOException,
PdfException
pageIdx - page index starts at index 1
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public void movePage(int srcPageIdx,
int dstPageIdx)
throws java.io.IOException,
PdfException
srcPageIdx - source page index starts at index 1dstPageIdx - destination page index starts at index 1
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
public void movePage(int pageIndexStartRange,
int pageIndexLastOfRange,
int pageIndexOfInsertion)
throws java.io.IOException,
PdfException
pageIndexStartRange - The index of the first page of the group to move (page indexes
start at 1 !).pageIndexLastOfRange - The index of the last page of the group to move (page indexes
start at 1 !).pageIndexOfInsertion - The index in the page list where the group will be moved to
(page indexes start at 1 !).
java.io.IOException - Raised if a problem occured while reading the file.
PdfException - Raised if a problem occured while parsing the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||