public class PDFFiller extends Object
Constructor and Description |
---|
PDFFiller(org.apache.pdfbox.pdmodel.PDDocument document) |
Modifier and Type | Method and Description |
---|---|
void |
fill(IFormDataAdapter fda,
IWorkflowProcessingContext 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(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) |
public static org.apache.pdfbox.pdmodel.PDDocument loadDocument(String pdfURI) throws org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, MalformedURLException, IOException
org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException
MalformedURLException
IOException
public boolean isSubsettingFontsEnabled()
public PDFFiller setSubsettingFonts(boolean subsettingFonts)
subsettingFonts
- boolean if fonts should be subsettedpublic String getUseFont()
public void removeEmbeddedJavaScript()
public void removeDocumentJavaScriptActions()
public void removeLinkActions() throws IOException
IOException
public void removeActionsFromField(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
public void fill(IFormDataAdapter fda, IWorkflowProcessingContext wpc, boolean flatten) throws IOException
IOException
public static String getFunctionResultValue(String value, String acroFieldName, IFormDataAdapter fda)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.