Package de.xima.fc.pdf
Class PDFFiller
- java.lang.Object
-
- de.xima.fc.pdf.PDFFiller
-
public class PDFFiller extends Object
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description PDFFiller(org.apache.pdfbox.pdmodel.PDDocument document)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill(IFormDataAdapter fda, IBaseWorkflowExecutionContext wpc, boolean flatten)
static HashMap<String,HashMap<String,String>>
getFieldOptions(String identifier, boolean asAlias, IFormDataAdapter fda)
static String
getFunctionResultValue(String value, String acroFieldName, IFormDataAdapter fda)
String
getUseFont()
boolean
isSubsettingFontsEnabled()
static org.apache.pdfbox.pdmodel.PDDocument
loadDocument(File pdfFile)
static org.apache.pdfbox.pdmodel.PDDocument
loadDocument(String pdfURI)
void
removeActionsFromField(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
void
removeDocumentJavaScriptActions()
void
removeEmbeddedJavaScript()
void
removeLinkActions()
PDFFiller
setSubsettingFonts(boolean subsettingFonts)
PDFFiller
setUseFont(String useFont)
-
-
-
Method Detail
-
loadDocument
public static org.apache.pdfbox.pdmodel.PDDocument loadDocument(String pdfURI) throws org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, MalformedURLException, IOException
- Throws:
org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException
MalformedURLException
IOException
-
loadDocument
public static org.apache.pdfbox.pdmodel.PDDocument loadDocument(File pdfFile) throws org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, MalformedURLException, IOException
- Throws:
org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException
MalformedURLException
IOException
-
isSubsettingFontsEnabled
public boolean isSubsettingFontsEnabled()
- Returns:
- the embedWholeFont
-
setSubsettingFonts
public PDFFiller setSubsettingFonts(boolean subsettingFonts)
- Parameters:
subsettingFonts
- boolean if fonts should be subsetted
-
getUseFont
public String getUseFont()
-
removeEmbeddedJavaScript
public void removeEmbeddedJavaScript()
-
removeDocumentJavaScriptActions
public void removeDocumentJavaScriptActions()
-
removeLinkActions
public void removeLinkActions() throws IOException
- Throws:
IOException
-
removeActionsFromField
public void removeActionsFromField(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
-
fill
public void fill(IFormDataAdapter fda, IBaseWorkflowExecutionContext wpc, boolean flatten) throws IOException
- Throws:
IOException
-
getFunctionResultValue
public static String getFunctionResultValue(String value, String acroFieldName, IFormDataAdapter fda)
-
-