public class Watermarker extends AbstractTool
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarrayABOUT, ARGUMENTS, CLOSE, EXECUTE, EXECUTEPRINT, EXECUTEPRINTSILENT, EXECUTESHOW, FILE, HELP, TOOL, TOOLS, USAGE, VERSION| Constructor and Description |
|---|
Watermarker()
This tool lets you add a text watermark to all pages of a document.
|
| 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)
This methods helps you running this tool as a standalone application.
|
void |
valueHasChanged(ToolArgument arg)
Indicates that the value of an argument has changed.
|
actionPerformed, addVersion, getArgs, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setArguments, setInternalFramepublic Watermarker()
protected void createFrame()
createFrame in class AbstractToolpublic void execute()
execute in class AbstractToolprotected java.io.File getDestPathPDF()
throws java.lang.InstantiationException
getDestPathPDF in class AbstractTooljava.lang.InstantiationExceptionpublic void valueHasChanged(ToolArgument arg)
valueHasChanged in class AbstractToolarg - the argument that has changedpublic static void main(java.lang.String[] args)
args - the srcfile, watermark text and destfile