org.pdfbox.pdmodel.fdf
Class FDFTemplate
java.lang.Object
org.pdfbox.pdmodel.fdf.FDFTemplate
- COSObjectable
public class FDFTemplate
extends java.lang.Object
This represents an FDF template that is part of the FDF page.
FDFTemplate
public FDFTemplate()
Default constructor.
FDFTemplate
public FDFTemplate(COSDictionary t)
Constructor.
t
- The FDF page template.
getCOSDictionary
public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
- The cos object that matches this Java object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getFields
public List getFields()
This will get a list of fields that are part of this template.
setFields
public void setFields(List fields)
This will set a list of fields for this template.
fields
- The list of fields to set for this template.
setRename
public void setRename(boolean value)
This will set if the fields can be renamed.
setTemplateReference
public void setTemplateReference(FDFNamedPageReference tRef)
This will set the template reference.
tRef
- The template reference.
shouldRename
public boolean shouldRename()
A flag telling if the fields imported from the template may be renamed if there are conflicts.
- A flag telling if the fields can be renamed.