public class ExtractAttachments extends AbstractTool
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarray
ABOUT, ARGUMENTS, CLOSE, EXECUTE, EXECUTEPRINT, EXECUTEPRINTSILENT, EXECUTESHOW, FILE, HELP, TOOL, TOOLS, USAGE, VERSION
Constructor and Description |
---|
ExtractAttachments()
Constructs a ExtractAttachements object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createFrame()
Creates the internal frame.
|
void |
execute()
Executes the tool (in most cases this generates a PDF file).
|
protected java.io.File |
getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file).
|
static void |
main(java.lang.String[] args)
Extract the attachements of a PDF.
|
static void |
unpackFile(PdfReader reader,
PdfDictionary filespec,
java.lang.String outPath) |
void |
valueHasChanged(ToolArgument arg)
Indicates that the value of an argument has changed.
|
actionPerformed, addVersion, getArgs, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setArguments, setInternalFrame
public ExtractAttachments()
protected void createFrame()
AbstractTool
createFrame
in class AbstractTool
AbstractTool.createFrame()
public void execute()
AbstractTool
execute
in class AbstractTool
AbstractTool.execute()
public void valueHasChanged(ToolArgument arg)
AbstractTool
valueHasChanged
in class AbstractTool
arg
- the argument that has changedAbstractTool.valueHasChanged(com.lowagie.tools.arguments.ToolArgument)
public static void main(java.lang.String[] args)
args
- protected java.io.File getDestPathPDF() throws java.lang.InstantiationException
AbstractTool
getDestPathPDF
in class AbstractTool
java.lang.InstantiationException
AbstractTool.getDestPathPDF()
public static void unpackFile(PdfReader reader, PdfDictionary filespec, java.lang.String outPath)