Package com.lowagie.toolbox.plugins
Class ReversePages
java.lang.Object
com.lowagie.toolbox.AbstractTool
com.lowagie.toolbox.plugins.ReversePages
- All Implemented Interfaces:
ActionListener
,EventListener
This tool lets you take pages from an existing PDF and copy them in reverse order into a new PDF.
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Field Summary
FieldsFields inherited from class com.lowagie.toolbox.AbstractTool
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates the internal frame.void
execute()
Executes the tool (in most cases this generates a PDF file).protected File
Gets the PDF file that should be generated (or null if the output isn't a PDF file).static void
Take pages from an existing PDF and copy them in reverse order into a new PDF.void
Indicates that the value of an argument has changed.Methods inherited from class com.lowagie.toolbox.AbstractTool
actionPerformed, addVersion, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setInternalFrame, setMainArguments, setMenubar
-
Field Details
-
destfile
FileArgument destfile
-
-
Constructor Details
-
ReversePages
public ReversePages()Constructs a ReversePages object.
-
-
Method Details
-
main
Take pages from an existing PDF and copy them in reverse order into a new PDF.- Parameters:
args
- String[]
-
createFrame
protected void createFrame()Description copied from class:AbstractTool
Creates the internal frame.- Specified by:
createFrame
in classAbstractTool
- See Also:
-
execute
public void execute()Description copied from class:AbstractTool
Executes the tool (in most cases this generates a PDF file).- Specified by:
execute
in classAbstractTool
- See Also:
-
valueHasChanged
Description copied from class:AbstractTool
Indicates that the value of an argument has changed.- Specified by:
valueHasChanged
in classAbstractTool
- Parameters:
arg
- StringArgument- See Also:
-
getDestPathPDF
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 classAbstractTool
- Returns:
- File
- Throws:
InstantiationException
- on error- See Also:
-