com.lowagie.tools.plugins

Class ExtractAttachments

public class ExtractAttachments extends AbstractTool

This tool lets you extract the attachements of a PDF.
Constructor Summary
ExtractAttachments()
Constructs a ExtractAttachements object.
Method Summary
protected voidcreateFrame()
voidexecute()
protected FilegetDestPathPDF()
static voidmain(String[] args)
Extract the attachements of a PDF.
static voidunpackFile(PdfReader reader, PdfDictionary filespec, String outPath)
Unpacks a file attachment.
voidvalueHasChanged(ToolArgument arg)

Constructor Detail

ExtractAttachments

public ExtractAttachments()
Constructs a ExtractAttachements object.

Method Detail

createFrame

protected void createFrame()

See Also: createFrame

execute

public void execute()

See Also: execute

getDestPathPDF

protected File getDestPathPDF()

See Also: getDestPathPDF

main

public static void main(String[] args)
Extract the attachements of a PDF.

Parameters: args

unpackFile

public static void unpackFile(PdfReader reader, PdfDictionary filespec, String outPath)
Unpacks a file attachment.

Parameters: reader The object that reads the PDF document filespec The dictonary containing the file specifications outPath The path where the attachment has to be written

Throws: IOException

valueHasChanged

public void valueHasChanged(ToolArgument arg)

See Also: valueHasChanged