Class ImageXRefViewer
java.lang.Object
org.openpdf.toolbox.AbstractTool
org.openpdf.toolbox.plugins.ImageXRefViewer
- All Implemented Interfaces:
ActionListener, EventListener
Allows you to inspect the Image XObjects inside a PDF file.
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) JPanelThe panel that will show the images.(package private) JSpinnerThe spinner that will allow you to select an image.(package private) CardLayoutThe layout with the images.(package private) intThe total number of pictures inside the PDF.Fields inherited from class 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 voidCreates the internal frame.voidexecute()Executes the tool (in most cases this generates a PDF file).protected FileGets the PDF file that should be generated (or null if the output isn't a PDF file).static voidShows the images that are in the PDF as Image XObjects.voidReflects the change event in the JSpinner object.voidIndicates that the value of an argument has changed.Methods inherited from class AbstractTool
actionPerformed, addVersion, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setInternalFrame, setMainArguments, setMenubar
-
Field Details
-
total_number_of_pictures
int total_number_of_picturesThe total number of pictures inside the PDF. -
jSpinner
JSpinner jSpinnerThe spinner that will allow you to select an image. -
image_panel
JPanel image_panelThe panel that will show the images. -
layout
CardLayout layoutThe layout with the images.
-
-
Constructor Details
-
ImageXRefViewer
public ImageXRefViewer()Creates a ViewImageXObjects object.
-
-
Method Details
-
main
Shows the images that are in the PDF as Image XObjects.- Parameters:
args- String[]
-
getDestPathPDF
Description copied from class:AbstractToolGets the PDF file that should be generated (or null if the output isn't a PDF file).- Specified by:
getDestPathPDFin classAbstractTool- Returns:
- File
- Throws:
InstantiationException- on error- See Also:
-
createFrame
protected void createFrame()Description copied from class:AbstractToolCreates the internal frame.- Specified by:
createFramein classAbstractTool- See Also:
-
valueHasChanged
Description copied from class:AbstractToolIndicates that the value of an argument has changed.- Specified by:
valueHasChangedin classAbstractTool- Parameters:
arg- StringArgument- See Also:
-
propertyChange
Reflects the change event in the JSpinner object.- Parameters:
evt- ChangeEvent
-
execute
public void execute()Description copied from class:AbstractToolExecutes the tool (in most cases this generates a PDF file).- Specified by:
executein classAbstractTool- See Also:
-