Package org.jpedal.examples.viewer
Class Commands
java.lang.Object
org.jpedal.examples.viewer.Commands
Commands
This class contains code to execute the actual commands : Access PDF Viewer features from your code.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final Integer
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final Integer
static final Integer
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionCommands
(org.jpedal.examples.viewer.Values commonValues, org.jpedal.examples.viewer.gui.SwingGUI currentGUI, PdfDecoderInt decode_pdf, org.jpedal.examples.viewer.gui.swing.SwingThumbnailPanel thumbnails, org.jpedal.examples.viewer.utils.PropertiesFile properties, org.jpedal.examples.viewer.gui.swing.SwingSearchWindow searchFrame) -
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand
(int ID, Object[] args) Deprecated.executeCommand
(ViewerCommands command, Object[] args) org.jpedal.examples.viewer.MouseMode
org.jpedal.examples.viewer.gui.swing.SearchList
Returns the searchList of the last search preformed.getValue
(ViewerValues value) void
handleTransferedFile
(String file) static boolean
isPDFLinearized
(String pdfUrl) examine first few bytes to see if linearized and return true linearized filevoid
-
Field Details
-
extractingAsImage
public boolean extractingAsImage -
ABOUT
public static final int ABOUT- See Also:
-
BITMAP
public static final int BITMAP- See Also:
-
IMAGES
public static final int IMAGES- See Also:
-
TEXT
public static final int TEXT- See Also:
-
SAVE
public static final int SAVE- See Also:
-
PRINT
public static final int PRINT- See Also:
-
EXIT
public static final int EXIT- See Also:
-
AUTOSCROLL
public static final int AUTOSCROLL- See Also:
-
DOCINFO
public static final int DOCINFO- See Also:
-
OPENFILE
public static final int OPENFILE- See Also:
-
BOOKMARK
public static final int BOOKMARK- See Also:
-
FIND
public static final int FIND- See Also:
-
SNAPSHOT
public static final int SNAPSHOT- See Also:
-
OPENURL
public static final int OPENURL- See Also:
-
VISITWEBSITE
public static final int VISITWEBSITE- See Also:
-
PREVIOUSDOCUMENT
public static final int PREVIOUSDOCUMENT- See Also:
-
NEXTDOCUMENT
public static final int NEXTDOCUMENT- See Also:
-
PREVIOUSRESULT
public static final int PREVIOUSRESULT- See Also:
-
NEXTRESULT
public static final int NEXTRESULT- See Also:
-
TIP
public static final int TIP- See Also:
-
PREFERENCES
public static final int PREFERENCES- See Also:
-
COPY
public static final int COPY- See Also:
-
SELECTALL
public static final int SELECTALL- See Also:
-
DESELECTALL
public static final int DESELECTALL- See Also:
-
UPDATEGUILAYOUT
public static final int UPDATEGUILAYOUT- See Also:
-
MOUSEMODE
public static final int MOUSEMODE- See Also:
-
PANMODE
public static final int PANMODE- See Also:
-
TEXTSELECT
public static final int TEXTSELECT- See Also:
-
SEPARATECOVER
public static final int SEPARATECOVER- See Also:
-
EXTRACTTEXT
public static final int EXTRACTTEXT- See Also:
-
EXTRACTASIMAGE
public static final int EXTRACTASIMAGE- See Also:
-
ROTATELEFT
public static final int ROTATELEFT- See Also:
-
ROTATERIGHT
public static final int ROTATERIGHT- See Also:
-
OPENINSYSTEMDEFAULT
public static final int OPENINSYSTEMDEFAULT- See Also:
-
XREF
public static final int XREF- See Also:
-
OBJECTS
public static final int OBJECTS- See Also:
-
FIRSTPAGE
public static final int FIRSTPAGE- See Also:
-
FBACKPAGE
public static final int FBACKPAGE- See Also:
-
BACKPAGE
public static final int BACKPAGE- See Also:
-
FORWARDPAGE
public static final int FORWARDPAGE- See Also:
-
FFORWARDPAGE
public static final int FFORWARDPAGE- See Also:
-
LASTPAGE
public static final int LASTPAGE- See Also:
-
GOTO
public static final int GOTO- See Also:
-
SINGLE
public static final int SINGLE- See Also:
-
CONTINUOUS
public static final int CONTINUOUS- See Also:
-
CONTINUOUS_FACING
public static final int CONTINUOUS_FACING- See Also:
-
FACING
public static final int FACING- See Also:
-
PAGEFLOW
public static final int PAGEFLOW- See Also:
-
FULLSCREEN
public static final int FULLSCREEN- See Also:
-
ZOOMIN
public static final int ZOOMIN- See Also:
-
ZOOMOUT
public static final int ZOOMOUT- See Also:
-
PORTFOLIO_DETAIL
public static final int PORTFOLIO_DETAIL- See Also:
-
PORTFOLIO_TILES
public static final int PORTFOLIO_TILES- See Also:
-
ROTATION
public static final int ROTATION- See Also:
-
SCALING
public static final int SCALING- See Also:
-
CURRENTMENU
public static final int CURRENTMENU- See Also:
-
CONTENTMENU
public static final int CONTENTMENU- See Also:
-
PDFMENU
public static final int PDFMENU- See Also:
-
EXPORTMENU
public static final int EXPORTMENU- See Also:
-
WINDOWMENU
public static final int WINDOWMENU- See Also:
-
PAGELAYOUTMENU
public static final int PAGELAYOUTMENU- See Also:
-
EDITMENU
public static final int EDITMENU- See Also:
-
GOTOMENU
public static final int GOTOMENU- See Also:
-
VIEWMENU
public static final int VIEWMENU- See Also:
-
OPENMENU
public static final int OPENMENU- See Also:
-
FILEMENU
public static final int FILEMENU- See Also:
-
HELPFORUM
public static final int HELPFORUM- See Also:
-
PORTFOLIOMENU
public static final int PORTFOLIOMENU- See Also:
-
SAVEFORM
public static final int SAVEFORM- See Also:
-
HIGHLIGHT
public static final int HIGHLIGHT- See Also:
-
SCROLL
public static final int SCROLL- See Also:
-
ADDVIEW
public static final int ADDVIEW- See Also:
-
FORWARD
public static final int FORWARD- See Also:
-
BACK
public static final int BACK- See Also:
-
PAGECOUNT
public static final int PAGECOUNT- See Also:
-
CURRENTPAGE
public static final int CURRENTPAGE- See Also:
-
GETOUTLINEPANEL
public static final int GETOUTLINEPANEL- See Also:
-
GETTHUMBNAILPANEL
public static final int GETTHUMBNAILPANEL- See Also:
-
GETPAGECOUNTER
public static final int GETPAGECOUNTER- See Also:
-
PAGEGROUPING
public static final int PAGEGROUPING- See Also:
-
SETPAGECOLOR
public static final int SETPAGECOLOR- See Also:
-
SETUNDRAWNPAGECOLOR
public static final int SETUNDRAWNPAGECOLOR- See Also:
-
REPLACETEXTCOLOR
public static final int REPLACETEXTCOLOR- See Also:
-
SETTEXTCOLOR
public static final int SETTEXTCOLOR- See Also:
-
CHANGELINEART
public static final int CHANGELINEART- See Also:
-
SETDISPLAYBACKGROUND
public static final int SETDISPLAYBACKGROUND- See Also:
-
SETREPLACEMENTCOLORTHRESHOLD
public static final int SETREPLACEMENTCOLORTHRESHOLD- See Also:
-
SETENHANCEFRACTIONALLINES
public static final int SETENHANCEFRACTIONALLINES- See Also:
-
SETHIDELINEWEIGHTS
public static final int SETHIDELINEWEIGHTS- See Also:
-
SETHIGHLIGHTFORMFIELDS
public static final int SETHIGHLIGHTFORMFIELDS- See Also:
-
HIDEVERSIONNUMBER
public static final int HIDEVERSIONNUMBER- See Also:
-
SHOWVERSIONNUMBER
public static final int SHOWVERSIONNUMBER- See Also:
-
HELP
public static final int HELP- See Also:
-
BUY
public static final int BUY- See Also:
-
RESET
public static final int RESET- See Also:
-
ACCELERATIONON
public static final int ACCELERATIONON- See Also:
-
ACCELERATIONOFF
public static final int ACCELERATIONOFF- See Also:
-
SHOWFORMNAMES
public static final int SHOWFORMNAMES- See Also:
-
DELETEPROPERTIESONEXIT
public static final int DELETEPROPERTIESONEXIT- See Also:
-
ALWAYSSHOWMOUSE
public static final int ALWAYSSHOWMOUSE- See Also:
-
FIRST_DOCUMENT_SEARCH_RESULT_NOW_SHOWN
-
SEARCH_RETURNED_TO_START
-
SEARCH_NOT_FOUND
-
-
Constructor Details
-
Commands
public Commands(org.jpedal.examples.viewer.Values commonValues, org.jpedal.examples.viewer.gui.SwingGUI currentGUI, PdfDecoderInt decode_pdf, org.jpedal.examples.viewer.gui.swing.SwingThumbnailPanel thumbnails, org.jpedal.examples.viewer.utils.PropertiesFile properties, org.jpedal.examples.viewer.gui.swing.SwingSearchWindow searchFrame)
-
-
Method Details
-
executeCommand
Deprecated.useexecuteCommand(ViewerCommands, Object[])
instead.main routine which executes code for current commandValues can also be passed in so it can be called from your own code
some commands return a status Object otherwise null
- Parameters:
ID
- is of type Intargs
- Program arguments passed into the Viewer.- Returns:
- the status object
-
executeCommand
-
getValue
-
handleTransferedFile
-
recentDocumentsOption
public void recentDocumentsOption() -
getSearchList
public org.jpedal.examples.viewer.gui.swing.SearchList getSearchList()Returns the searchList of the last search preformed. If currently searching this method will return the results for last completed search- Returns:
- SearchList of all results, all data but the actual highlgiht areas
-
getMouseMode
public org.jpedal.examples.viewer.MouseMode getMouseMode() -
isPDFLinearized
examine first few bytes to see if linearized and return true linearized file- Parameters:
pdfUrl
- is of type String- Returns:
- the isLinear
-
executeCommand(ViewerCommands, Object[])
instead.