public class PDFViewerBean extends JPanel implements KeyListener, ActionListener, IPassword, IDocumentListener, IPDFActionHandler, IPDFOpener
Modifier and Type | Class and Description |
---|---|
static class |
PDFViewerBean.KeyInfoViewer
This is the Main-Class for the jPDFViewer.jar that can generate server key
requests, validate a key, and display server information.
|
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static int |
PAGEMODE_CONTINUOUS
Continuous page display mode.
|
static int |
PAGEMODE_COVER
Facing pages display mode with cover page.
|
static int |
PAGEMODE_COVER_CONTINUOUS
Continuous facing pages display mode with cover page.
|
static int |
PAGEMODE_FACING
Facing pages display mode.
|
static int |
PAGEMODE_FACING_CONTINUOUS
Continuous facing pages display mode.
|
static int |
PAGEMODE_SINGLEPAGE
Single page display mode.
|
static int |
SPLITPOLICY_NEVER_VISIBLE
Never show the split pane.
|
static int |
SPLITPOLICY_USEDOCUMENTPAGEMODE
Use the setting inside the PDF document to determine the visibility of
the split pane.
|
static int |
ZOOMMODE_FITPAGE
FitPage zoom mode changes the scale when the window is resized so that the page
is displayed using the maximum available space.
|
static int |
ZOOMMODE_FITWIDTH
FitWidth zoom mode changes the scale when the window is resized so that the full
width of the page is displayed using the maximum available space.
|
static int |
ZOOMMODE_NORMAL
Normal zoom mode means that the scale remains the same when the window is resized.
|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PDFViewerBean()
Construct the PDFViewerBean.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Handles toolbar actions.
|
void |
addAnnotationToSelection(Annotation annot)
Adds the given Annotation's component to the list of selected components.
|
void |
addHistoryListener(HistoryListener listener)
Adds a
HistoryListener to the PDFViewerBean. |
void |
clearDocument()
Clears any loaded document.
|
void |
closeTextSearch()
Closes the text search box.
|
void |
deselectAnnotation(Annotation annot)
Removes the given Annotation's component to the list of selected components.
|
void |
documentChanged(DocumentEvent de)
Internal method, do not use.
|
AcroForm |
getAcroForm()
Returns the AcroForm in this document.
|
IAnnotationManager |
getAnnotationManager()
Returns the annotation manager for this PDFViewerBean.
|
AttachmentPanel |
getAttachmentPanel()
Returns an interface to allow access to the attachment panel.
|
BookmarkPanel |
getBookmarkPanel()
Returns an interface to allow access to the bookmarks panel.
|
CommentPanel |
getCommentPanel()
Returns an interface to allow access to the comment panel.
|
GotoPageAction |
getCurrentLocation()
Returns the current location of the viewer as a GotoPageAction.
|
IPDFDocument |
getDocument()
Returns the PDF document currently displayed.
|
InitialViewSettings |
getInitialViewSettings()
Returns the
InitialViewSettings object that specifies what
page mode, page layout, and magnification values should be used when opening
a document. |
LayerPanel |
getLayerPanel()
Returns an interface to allow access to the layer panel.
|
LocationHistory |
getLocationHistory()
Gets the
LocationHistory for the current document. |
int |
getPageByLocation(int x,
int y)
Returns the index of a page given an x, y location on the document.
|
int |
getPageCount()
Returns the number of pages in the current document.
|
int |
getPageMode()
Returns the page viewing mode for viewer.
|
int |
getPageNumber()
Returns the currently displayed page.
|
JComponent |
getPageView(int pageNumber)
Returns the page view component for the given page number.
|
PageViewPanel |
getPageViewPanel()
Returns an interface to allow access to the page view panel.
|
IPassword |
getPasswordHandler()
Returns the currently registered password handler.
|
String[] |
getPasswords()
Standard implementation of the password handler.
|
JRootPane |
getRootPane()
Returns a reference to the PDFViewerBean root pane.
|
int |
getRotation()
Returns the current rotation.
|
double |
getScale2D()
Returns the current scale used to display the PDF document in double precision.
|
JScrollPane |
getScrollPane()
Returns a reference to the PDFViewerBean scroll pane.
|
TextSelection |
getSelectedText()
Gets the current text selection (if any page has selected text) in the document.
|
SelectToolbar |
getSelectToolbar()
Returns the selection toolbar.
|
SignaturePanel |
getSignaturePanel()
Returns an interface to allow access to the signature panel.
|
int |
getSplitPolicy()
Gets the viewer's split window policy.
|
ISubmitActionEmailHandler |
getSubmitActionEmailHandler()
Returns the email handler to be used when an email submit action has been activated.
|
ThumbnailPanel |
getThumbnailPanel()
Returns an interface to allow access to the thumbnail panel.
|
PDFToolbar |
getToolbar()
Returns the navigation toolbar.
|
ButtonGroup |
getToolbarButtonGroup()
Returns a reference to the button group used to toggle some of the tools in the toolbar.
|
static String |
getVersion()
Returns version string for jPDFViewer.
|
IWatermark |
getWatermark()
Returns the watermark for the PDFViewerBean.
|
WidgetHandler |
getWidgetHandler()
Returns the
WidgetHandler to be used to set the value to a FormField when its corresponding
WidgetComponent is modified. |
int |
getZoomMode()
Get the current zoom mode.
|
void |
gotoNextView()
PDFViewer maintains a history of page views.
|
void |
gotoPreviousView()
PDFViewer maintains a history of page views.
|
void |
handleAction(Action action)
This method will handle PDF actions initiated by a click on
a link.
|
boolean |
isCommentComponentsVisible()
Returns whether comments are visible on the
PDFViewerBean . |
boolean |
isFieldsHighlight()
Returns whether or not the fields should be highlighted.
|
boolean |
isIncrementalLoading()
Return the value of the incremental loading flag.
|
boolean |
isSplitOpen()
Returns whether the split window is open or not.
|
void |
keyPressed(KeyEvent e)
Handle key pressed events.
|
void |
keyReleased(KeyEvent e)
Fullfill the KeyListener interfaces.
|
void |
keyTyped(KeyEvent e)
Fullfill the KeyListener interfaces.
|
void |
loadPDF(InputStream inStream)
Load and display a PDF document using an InputStream.
|
void |
loadPDF(PDFSource source)
Load and display a PDF document using an object that implements PDFSource.
|
void |
loadPDF(String fileName)
Load and display a PDF document using a file name.
|
void |
loadPDF(URL url)
Load and display a PDF document using a URL.
|
void |
openFile()
Initiates the file open process.
|
void |
openFile(PDFViewerBean viewerBean)
Initiates the file open process.
|
void |
print(PrintSettings printSettings)
Prints the PDF document to a printer.
|
void |
removeHistoryListener(HistoryListener listener)
Removes a
HistoryListener . |
void |
rotateCCW()
Rotates pages 90 degrees counter-clockwise.
|
void |
rotateCW()
Rotates pages 90 degrees clockwise.
|
void |
scrollToAnnotation(Annotation annot)
If annot is not visible, this method will scroll to it.
|
void |
scrollToPage(int pageNumber,
int x,
int y)
Scroll to the given page and make sure that point (x,y) is visible on the page by scrolling to it if needed.
|
void |
scrollToPage(int pageNumber,
int x,
int y,
boolean center)
Scroll to the given page and make sure that point (x,y) is visible on the page by scrolling to it if needed.
|
void |
selectAnnotation(Annotation annot)
Selects the given Annotation's component.
|
static boolean |
setAppletKey(String key,
Applet applet)
Sets product key when running jPDFViewer in an applet.
|
void |
setCommentComponentsVisible(boolean visible)
This method will set hiding of comments components on and off.
|
void |
setDocument(IPDFDocument pdfDoc)
Sets this bean's document.
|
void |
setFieldsHighlight(boolean highlight)
Highlight any fields in the document.
|
void |
setHorzDividerLocation(int location)
Sets the location, in pixels, of the horizontal divider.
|
void |
setIncrementalLoad(boolean incrementalLoading)
Sets the flag for incremental loading of PDF files.
|
void |
setInvertColorsMode(boolean invertMode)
Sets the page to paint in inverted mode: Black will show as white and white as black.
|
static boolean |
setKey(String key)
Sets product key.
|
void |
setLocationHistory(LocationHistory history)
Sets the
LocationHistory associated with the document
currently being viewed. |
void |
setPage(int pageNumber)
Changes the currently displayed page.
|
void |
setPageMode(int pageMode)
Sets the page viewing mode in the viewer.
|
void |
setPasswordHandler(IPassword pwdHandler)
Override the standard password handler with a user
password handler.
|
void |
setPDFOpener(IPDFOpener opener)
Sets the PDF opener for this bean.
|
void |
setPrintSettings(PrintSettings printSettings)
Sets the print settings to be used when the print button is
activated from the toolbar.
|
void |
setRotation(int rotation)
Sets the current rotation.
|
void |
setScale2D(double scale)
Changes the display scale for the PDF document.
|
static void |
setScreenResolution(int resolution)
Sets the screen resolution in dots-per-inch.
|
void |
setSnapshotHandler(ISnapshotHandler handler)
By default, the PDFViewerBean will place the BufferedImage in the system clipboard.
|
void |
setSplitOpen(boolean open)
Opens or closes the split window depending on the parameter.
|
void |
setSplitPolicy(int splitPolicy)
Sets the viewer's split window policy.
|
void |
setSplitVisible(boolean visible)
Method to show or hide the split pane functionality.
|
void |
setSubmitActionEmailHandler(ISubmitActionEmailHandler handler)
The host application can provide email handling functionality by setting a handler using the ISubmitActionEmailHandler interface.
|
static void |
setTextSelectionColors(Color xorColor,
Color fgndColor)
Set the colors used to highlight text on search results.
|
void |
setVertDividerLocation(int location)
Sets the location, in pixels, of the vertical divider.
|
void |
setWatermark(IWatermark watermark)
Sets the watermark for the PDFViewerBean.
|
void |
setZoomMode(int zoomMode)
Sets the current zoom mode.
|
void |
showError(String msg,
Throwable t)
Convenience method to display an error message.
|
void |
showMessage(String msg)
Convenience method to display a message using this PDFViewerBean as the message dialog's parent.
|
void |
startLoupeTool()
This method activates the loupe tool.
|
void |
startMagnifyRect()
This method activates the magnification rectangle tool.
|
void |
startTextSearch()
This method starts the text searching process.
|
void |
startTextSearch(String search)
This method shows the text search dialog and tells it to search for a string.
|
void |
startTextSelection()
This methods activates the text selection tool.
|
void |
stopTextSelection()
This method stops the text selection tool and activates the "hand" tool.
|
void |
zoomToRect(Rectangle2D zoomRect)
Zooms the viewer to a particular rectangle on the document.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int SPLITPOLICY_USEDOCUMENTPAGEMODE
public static final int SPLITPOLICY_NEVER_VISIBLE
public static final int ZOOMMODE_NORMAL
public static final int ZOOMMODE_FITPAGE
public static final int ZOOMMODE_FITWIDTH
public static final int PAGEMODE_CONTINUOUS
public static final int PAGEMODE_SINGLEPAGE
public static final int PAGEMODE_FACING
public static final int PAGEMODE_FACING_CONTINUOUS
public static final int PAGEMODE_COVER
public static final int PAGEMODE_COVER_CONTINUOUS
public void setDocument(IPDFDocument pdfDoc)
pdfDoc
- The new document.public void setCommentComponentsVisible(boolean visible)
visible
- Comment visibility flagpublic boolean isCommentComponentsVisible()
PDFViewerBean
.public void handleAction(Action action)
handleAction
in interface IPDFActionHandler
action
- Object describing the action.public void setSubmitActionEmailHandler(ISubmitActionEmailHandler handler)
handler
- IEmailSubmitButtonHandler implementationpublic ISubmitActionEmailHandler getSubmitActionEmailHandler()
public AcroForm getAcroForm()
public IPDFDocument getDocument()
public void loadPDF(URL url) throws PDFException
url
- URL pointing to the location of the PDF document.PDFException
public void loadPDF(PDFSource source) throws PDFException
source
- Object that implements the PDFSource interface.PDFException
public void clearDocument()
public void loadPDF(InputStream inStream) throws PDFException
inStream
- InputStream used to read the PDF document.PDFException
public void loadPDF(String fileName) throws PDFException
fileName
- Name of the PDF document file.PDFException
public void setScale2D(double scale)
scale
- Magnification factor as a percentage. 100 is true size.public double getScale2D()
public PDFToolbar getToolbar()
public SelectToolbar getSelectToolbar()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The action event.public void setSnapshotHandler(ISnapshotHandler handler)
handler
- ISnapshotHandler implementationpublic int getRotation()
public void setRotation(int rotation)
rotation
- Rotation angle in degrees.public void rotateCW()
public void rotateCCW()
public void openFile() throws PDFException
PDFException
public void openFile(PDFViewerBean viewerBean) throws PDFException
openFile
in interface IPDFOpener
viewerBean
- The PDFViewerBean object that initiated the open file action.PDFException
public int getPageNumber()
public JComponent getPageView(int pageNumber)
pageNumber
- Number of the page to return. Pages are indexed starting at 1.public int getPageCount()
public String[] getPasswords()
setPasswordHandler
getPasswords
in interface IPassword
public void print(PrintSettings printSettings) throws PDFPermissionException, PrinterException
printSettings
- Print job settings. Use this object to tell
jPDFViewer how to print the document. If null, the library will
print using default settings.PDFPermissionException
PrinterException
public void setPrintSettings(PrintSettings printSettings)
printSettings
- Print job settings. Use this object to tell
jPDFViewer how to print the document.public void setPage(int pageNumber)
pageNumber
- Page to display. Pages are indexed starting at 1.public static String getVersion()
public void setPasswordHandler(IPassword pwdHandler)
pwdHandler
- User object that implements IPasswordHandler.public void setPDFOpener(IPDFOpener opener)
opener
- The new object that implements IPDFOpenerpublic IPassword getPasswordHandler()
public static boolean setKey(String key)
key
- Product key.public static boolean setAppletKey(String key, Applet applet)
key
- Product key.applet
- The applet that we are running in.public void setSplitVisible(boolean visible)
true
, the left side of the bean will show a panel with
buttons for thumbnails, bookmarks, attachments, layers, signatures, and
comments in the PDF file. When visible is false
, the buttons
and panels will not be displayed.visible
- The split pane visibilitypublic boolean isSplitOpen()
public void setSplitOpen(boolean open)
true
and the corresponding button panel is not currently
visible, the button panel will also be made visible.open
- Desired open state of the split window.public void setVertDividerLocation(int location)
location
- The new location for the divider.public void setHorzDividerLocation(int location)
location
- THe new location for the divider.public void selectAnnotation(Annotation annot)
annot
- the Annotation to selectpublic void scrollToAnnotation(Annotation annot)
annot
- the Annotation to selectpublic void addAnnotationToSelection(Annotation annot)
annot
- the Annotation to selectpublic void deselectAnnotation(Annotation annot)
annot
- the Annotation to selectpublic void scrollToPage(int pageNumber, int x, int y)
pageNumber
- the page number starting at 1.x
- the horizontal position to scroll to on the pagey
- the vertical position to scroll to on the pagepublic void scrollToPage(int pageNumber, int x, int y, boolean center)
pageNumber
- the page number starting at 1.x
- the horizontal position to scroll to on the pagey
- the vertical position to scroll to on the pagecenter
- the scrolled to coordinate will be centered when set to true, otherwise it will be in the top/leftpublic void documentChanged(DocumentEvent de)
documentChanged
in interface IDocumentListener
public JScrollPane getScrollPane()
public JRootPane getRootPane()
getRootPane
in class JComponent
public int getSplitPolicy()
public void setSplitPolicy(int splitPolicy)
splitPolicy
- The new split window policy.public void showError(String msg, Throwable t)
msg
- The message string to precede the exception error message.t
- The exception that caused the error.public void showMessage(String msg)
msg
- The message string to show to the user.public int getPageByLocation(int x, int y)
x
- The x coordinate of the point.y
- The y coordinate of the point.public void setInvertColorsMode(boolean invertMode)
invertMode
- The new invert mode.public int getZoomMode()
public void setZoomMode(int zoomMode)
zoomMode
- The new zoom mode. This value has to be either ZOOMMODE_NORMAL, ZOOMMODE_FITWIDTH, or ZOOMMODE_FITPAGE.
If zoomMode is ZOOMMODE_FITWIDTH or ZOOMMODE_FITPAGE, the method will call setScale immediately to adjust the scale so that
the page fits in the display window optimally.public void zoomToRect(Rectangle2D zoomRect)
zoomRect
- The rectangle to zoom intopublic TextSelection getSelectedText()
public void startMagnifyRect()
public void startLoupeTool()
public void startTextSelection()
public void startTextSearch()
public void startTextSearch(String search)
public void closeTextSearch()
public void stopTextSelection()
public static void setTextSelectionColors(Color xorColor, Color fgndColor)
xorColor
- The color used in the setXORMode call.fgndColor
- The color used for the foreground in XOR mode.public ThumbnailPanel getThumbnailPanel()
public BookmarkPanel getBookmarkPanel()
public AttachmentPanel getAttachmentPanel()
public LayerPanel getLayerPanel()
public SignaturePanel getSignaturePanel()
public PageViewPanel getPageViewPanel()
public CommentPanel getCommentPanel()
public void setPageMode(int pageMode)
pageMode
- The new page mode.public int getPageMode()
public ButtonGroup getToolbarButtonGroup()
public void gotoPreviousView()
public void gotoNextView()
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public GotoPageAction getCurrentLocation()
public void setFieldsHighlight(boolean highlight)
highlight
- Boolean flag indicating whether the fields should be highlighted.public boolean isFieldsHighlight()
public IAnnotationManager getAnnotationManager()
public InitialViewSettings getInitialViewSettings()
InitialViewSettings
object that specifies what
page mode, page layout, and magnification values should be used when opening
a document.InitialViewSettings
for this PDFViewerBean
.public void setWatermark(IWatermark watermark)
IWatermark
object will be set on the PDF document as it is
loaded.
The PDF document will make callbacks to this watermark with the following types.
IWatermark.TYPE_IMAGES
- when creating thumbnails for the PDF
documentIWatermark.TYPE_PRINT
- when printing the PDF documentIWatermark.TYPE_VIEWER
- when rendering the PDF document in
the PDFViewerBeanwatermark
- the IWatermark
to set on the PDF document when it
is loaded into the PDFViewerBean.IPDFDocument.setWatermark(com.qoppa.pdf.IWatermark)
public IWatermark getWatermark()
IWatermark
objectsetWatermark(com.qoppa.pdf.IWatermark)
public WidgetHandler getWidgetHandler()
WidgetHandler
to be used to set the value to a FormField
when its corresponding
WidgetComponent
is modified.public LocationHistory getLocationHistory()
LocationHistory
for the current document. This
interface provides information about the document view history.public void setLocationHistory(LocationHistory history)
LocationHistory
associated with the document
currently being viewed. This can be set when navigating between documents
to load an existing LocationHistory
for that document.history
- The LocationHistory
to load.getLocationHistory()
public void addHistoryListener(HistoryListener listener)
HistoryListener
to the PDFViewerBean. The listener will be notified
of events relevant to maintaining the LocationHistory
.listener
- public void removeHistoryListener(HistoryListener listener)
HistoryListener
.listener
- public void setIncrementalLoad(boolean incrementalLoading)
incrementalLoading
- new value of the URL incremental loading flag.public boolean isIncrementalLoading()
public static void setScreenResolution(int resolution)
resolution
- The screen resolution.