com.lowagie.tools.plugins
Class Encrypt
java.lang.Object
com.lowagie.tools.plugins.AbstractTool
com.lowagie.tools.plugins.Encrypt
- All Implemented Interfaces:
- ActionListener, EventListener, ToolMenuItems
- public class Encrypt
- extends AbstractTool
Allows you to encrypt an existing PDF file.
Constructor Summary |
Encrypt()
Constructs an Encrypt object. |
Method Summary |
protected void |
createFrame()
Creates the internal frame. |
void |
execute()
Executes the tool (in most cases this generates a PDF file). |
protected File |
getDestPathPDF()
Gets the PDF file that should be generated (or null if the output isn't a PDF file). |
static void |
main(String[] args)
Encrypts an existing PDF file. |
void |
valueHasChanged(ToolArgument arg)
Indicates that the value of an argument has changed. |
Methods inherited from class com.lowagie.tools.plugins.AbstractTool |
actionPerformed, getArgs, getArguments, getConsole, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setArguments, setInternalFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERMISSIONS
private static final int[] PERMISSIONS
PERMISSION_OPTIONS
private static final String[] PERMISSION_OPTIONS
Encrypt
public Encrypt()
- Constructs an Encrypt object.
createFrame
protected void createFrame()
- Description copied from class:
AbstractTool
- Creates the internal frame.
- Specified by:
createFrame
in class AbstractTool
- See Also:
AbstractTool.createFrame()
execute
public void execute()
- Description copied from class:
AbstractTool
- Executes the tool (in most cases this generates a PDF file).
- Specified by:
execute
in class AbstractTool
- See Also:
AbstractTool.execute()
valueHasChanged
public void valueHasChanged(ToolArgument arg)
- Description copied from class:
AbstractTool
- Indicates that the value of an argument has changed.
- Specified by:
valueHasChanged
in class AbstractTool
- Parameters:
arg
- the argument that has changed- See Also:
AbstractTool.valueHasChanged(com.lowagie.tools.arguments.ToolArgument)
main
public static void main(String[] args)
- Encrypts an existing PDF file.
- Parameters:
args
-
getDestPathPDF
protected File getDestPathPDF()
throws InstantiationException
- Description copied from class:
AbstractTool
- Gets the PDF file that should be generated (or null if the output isn't a PDF file).
- Specified by:
getDestPathPDF
in class AbstractTool
- Returns:
- the PDF file that should be generated
- Throws:
InstantiationException
- See Also:
AbstractTool.getDestPathPDF()