public class PDFNotesBean extends PDFViewerBean implements IPDFSaver
The bean can save the document to a file but also allows the host application to define a custom 'saver' to be able to save the document somewhere different than a file (database, server, etc). The bean can be extended and the save method overridden to get the same effect.
Modifier and Type | Class and Description |
---|---|
static class |
PDFNotesBean.KeyInfoNotes
This is the Main-Class for the jPDFNotes.jar that can generate server key
requests, validate a key, and display server information.
|
PDFViewerBean.KeyInfoViewer
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
PAGEMODE_CONTINUOUS, PAGEMODE_COVER, PAGEMODE_COVER_CONTINUOUS, PAGEMODE_FACING, PAGEMODE_FACING_CONTINUOUS, PAGEMODE_SINGLEPAGE, SPLITPOLICY_NEVER_VISIBLE, SPLITPOLICY_USEDOCUMENTPAGEMODE, SPLITPOLICY_VISIBLE, ZOOMMODE_FITPAGE, ZOOMMODE_FITWIDTH, ZOOMMODE_NORMAL
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 |
---|
PDFNotesBean()
Construct a PDFNotesBean.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae)
This method handles actions from the toolbars in the bean.
|
JButton |
activateOCR()
Activates the OCR function for this
PDFNotesBean . |
void |
addAnnotation(Annotation newAnnot,
int pageIndex)
Add an annotation to the document programmatically.
|
void |
addAnnotation(Annotation newAnnot,
int pageIndex,
boolean setRotation)
Add an annotation to the document programmatically.
|
void |
addNotify()
This is an internal method that overwrites the addNotify() method in JComponent and is used to do whatever is needed when PDFNotesBean is added to a parent container.
|
void |
addPDFListener(IPDFListener listener)
Adds a PDF Listener object to receive notifications when a new document is opened.
|
void |
addSignatureField()
This method starts the signature field creation process.
|
SignatureField |
addSignatureField(String fieldName,
Rectangle2D bounds,
int pageIndex)
Add a signature field to a page in the currently loaded document.
|
boolean |
canPaste()
Look at the contents of the system clipboard and determine if the object
in the clipboard can be pasted into jPDFNotes.
|
boolean |
close(boolean checkSave)
This method closes the current document.
|
void |
commitEdits()
This method will commit any edits that are currently in progress.
|
void |
documentChanged(DocumentEvent de)
Internal method, do not use.
|
static void |
enableSpellChecking(boolean enable,
boolean showSubMenu)
This will enable spell checking in text components using JOrtho.
|
AnnotAlignmentToolbar |
getAnnotAlignmentToolBar()
Returns the
AnnotAlignmentToolbar used to align selected annotations |
IAnnotationManagerNotes |
getAnnotationManager()
Returns the annotation manager for this PDFNotesBean.
|
AnnotPropertiesToolbar |
getAnnotPropertiesToolBar()
Returns the
AnnotPropertiesToolbar used to modify common
annotation properties. |
AnnotToolbar |
getAnnotToolbar()
Returns the annotation tools toolbar.
|
AttachmentPanel |
getAttachmentPanel()
Returns an interface to allow access to the attachment panel.
|
CommentPanelNotes |
getCommentPanel()
Returns an interface to allow access to the comment panel.
|
EditToolbar |
getEditToolbar()
Returns the standard toolbar.
|
GridSettings |
getGridSettings()
Returns the current gride settings.
|
MutableDocument |
getMutableDocument()
This method returns a mutable PDF document, that is, a document that can be modified
by the calling applications.
|
PageViewPanelNotes |
getPageViewPanel()
Returns an interface to allow access to the page view panel.
|
RulerSettings |
getRulerSettings()
Gets the current ruler settings.
|
SelectToolbarNotes |
getSelectToolbar()
Returns the selection toolbar.
|
SignaturePanelNotes |
getSignaturePanel()
Returns an interface to allow access to the signature panel.
|
TextAnnotPropertiesToolbar |
getTextAnnotPropertiesToolBar()
Returns the
TextAnnotPropertiesToolbar used to modify common
annotation properties. |
ThumbnailPanelNotes |
getThumbnailPanel()
Returns a reference to the thumbnail panel, the panel that displays the
page thumbnails.
|
UndoManager |
getUndoManager()
Returns the
UndoManager for this PDFNotesBean . |
static String |
getVersion()
Returns version string for jPDFNotes.
|
void |
handleAction(Action action)
This method overrides the PDFViewerBean handleAction to take care
of actions that are specific to jPDFNotes, such as saving the document.
|
boolean |
isModified()
Returns whether this document has been modified or not.
|
boolean |
isOpenPDFOnly()
Returns whether the user is allowed to open PDF files only.
|
void |
keyPressed(KeyEvent e)
Handle key pressed events.
|
void |
loadDocument(InputStream inStream,
String formatName)
Open a document from an input stream.
|
void |
loadDocument(String fileName)
Method to open files of PDF, JPEG, TIFF and PNG types.
|
void |
loadFDF(String fileName)
Load an FDF file.
|
static void |
loadLicense(InputStream licenseStream)
Method to load a license file from an inputstream.
|
static void |
loadLicense(String licenseFile)
Method to load a license file.
|
void |
loadPDF(InputStream inStream)
Load and display a PDF document using an InputStream.
|
void |
loadPDF(PDFSource pdfSource)
Load and display a PDF document using a PDFSource object
|
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 |
loadTextDocument(String fileName,
TextToPDFSettings settings)
Method to open text files .
|
void |
loadXFDF(String fileName)
Load an XFDF file.
|
void |
openFile(PDFViewerBean viewerBean)
This method is called whenever the user presses the file open button.
|
void |
paste()
this method checks the clipboard and pastes any object that it can handle into the document.
|
void |
print(PrintSettings printSettings)
Prints the PDF document to a printer.
|
void |
reloadDocument()
Reloads a document into the viewer.
|
void |
removeAnnotation(Annotation annot,
int pageIndex)
Remove an annotation from the document programmatically.
|
void |
removeNotify()
This is an internal method that overwrites the removeNotify() method in JComponent and is used to do whatever is needed when PDFNotesBean is removed from a parent container.
|
boolean |
removePDFListener(IPDFListener listener)
Removes a PDF Listener object.
|
void |
revert()
Reverts the loaded document to the original document.
|
boolean |
save()
This method saves the current document, it is called when the Save button is pressed
in the toolbar.
|
boolean |
save(PDFNotesBean notesBean,
String docName,
File pdfFile)
This method saves the pdf to a file.
|
boolean |
saveAs()
This method implements the standard 'Save As...' function by prompting
for a new file name and calling the save method with this file name.
|
void |
saveDocument(OutputStream outStream)
Saves a copy of this document to an output stream.
|
void |
saveDocument(String fileName)
Saves a copy of this document to a file.
|
static boolean |
setAppletKey(String key,
Applet applet)
Sets the product key when running from 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 |
setGridSettings(GridSettings gridSettings)
Sets the grid settings.
|
static boolean |
setKey(String key)
Sets product key.
|
void |
setModified(boolean modified)
Flag this document as modified.
|
void |
setOpenPDFOnly(boolean openPDFOnly)
Sets a flag to determine whether the user can open PDF files only, or is allowed to open image
files in JPEG, TIFF or PNG formats.
|
void |
setPageMode(int pageMode)
Sets the page viewing mode in the viewer.
|
void |
setPDFSaver(IPDFSaver saver)
This method allows the host application to override the default PDF Saver,
the class that saves the document when the save toolbar button is pressed.
|
void |
setRulerSettings(RulerSettings rulerSettings)
Sets the ruler settings.
|
static boolean |
setWebstartKey(String key)
Sets the product key when running from Web Start.
|
void |
showSignWarning(boolean showSignWarning)
When modifying and saving a document that has a signed signature field,
PDFNotesBean will show a warning that the signature may be
invalidated. |
void |
signDocument(SignatureField signField)
Starts the signing GUI for a given signature field.
|
void |
signDocument(SignatureField signField,
boolean certify)
Starts the signing GUI for a given signature field.
|
void |
signDocument(SignatureField signField,
SigningInformation signingInfo,
File outputFile)
This method will sign and save the document.
|
void |
startEdit(Annotation annot,
boolean useDefault,
boolean isSticky)
This method starts an annotation editor appropriate to the type of annotation
passed to it.
|
void |
startMeasurementCalibration()
This method begins the process of calibrating the scale used with the
Distance, Perimeter, and Area measuring tools.
|
addAnnotationToSelection, addHistoryListener, clearDocument, closeAdvancedSearch, closeSearch, deselectAnnotation, getAcroForm, getBookmarkPanel, getContentTreePanel, getCurrentLocation, getDestinationPanel, getDocument, getEmailHandler, getInitialViewSettings, getLayerPanel, getLocationHistory, getPageByLocation, getPageCount, getPageMode, getPageNumber, getPageView, getPasswordHandler, getPasswords, getRightSplitPolicy, getRootPane, getRotation, getScale2D, getScrollPane, getSecurityPanel, getSelectedText, getSplitPolicy, getSubmitActionEmailHandler, getTagPanel, getToolbar, getToolbarButtonGroup, getWatermark, getWindowHandler, getZoomMode, gotoNextView, gotoPreviousView, isCommentComponentsVisible, isCreateLinksFromURLs, isFieldsHighlight, isIncrementalLoading, isRightSplitOpen, isSplitOpen, isTouchEnabled, keyReleased, keyTyped, openFile, releaseTileImages, removeHistoryListener, rotateCCW, rotateCW, scrollToAnnotation, scrollToPage, scrollToPage, selectAnnotation, setCreateLinksFromURLs, setEmailHandler, setFieldsHighlight, setHorzDividerLocation, setIncrementalLoad, setInvertColorsMode, setLeftDividerLocation, setLocationHistory, setPage, setPasswordHandler, setPDFOpener, setPrintSettings, setRightDividerLocation, setRightSplitOpen, setRightSplitPolicy, setRightSplitVisible, setRotation, setScale2D, setScreenResolution, setSnapshotHandler, setSplitOpen, setSplitPolicy, setSplitVisible, setSubmitActionEmailHandler, setTextSelectionColors, setTouchEnabled, setVertDividerLocation, setWatermark, setWindowHandler, setZoomMode, showError, showMessage, startAdvancedSearch, startAdvancedSearch, startLoupeTool, startMagnifyRect, startSearch, startTextSelection, stopTextSelection, zoomToRect
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, 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, 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 String getVersion()
public static boolean setKey(String key)
key
- Product key.public static void loadLicense(InputStream licenseStream) throws LicenseException
licenseStream
- The input stream for the license file contents.LicenseException
- If there are any problems with the license filepublic static void loadLicense(String licenseFile) throws LicenseException, IOException
licenseFile
- The full path to the license file.LicenseException
- If there are any problems with the license fileIOException
public static boolean setAppletKey(String key, Applet applet)
key
- Product keyapplet
- The applet that we are running in.public static boolean setWebstartKey(String key)
key
- Product keypublic EditToolbar getEditToolbar()
EditToolbar
for details.public void reloadDocument()
public void removeAnnotation(Annotation annot, int pageIndex) throws PDFException
annot
- The annotation to be removedpageIndex
- The page where the annotation is currently displayed,
pageIndex starts at 0.PDFException
public AnnotToolbar getAnnotToolbar()
public ThumbnailPanelNotes getThumbnailPanel()
getThumbnailPanel
in class PDFViewerBean
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
actionPerformed
in class PDFViewerBean
ae
- The action event.public SelectToolbarNotes getSelectToolbar()
SelectToolbar
and adds an Object select button, which is
defaulted to not visible.getSelectToolbar
in class PDFViewerBean
public MutableDocument getMutableDocument()
public void startEdit(Annotation annot, boolean useDefault, boolean isSticky)
annot
- An annotation object.useDefault
- Flag indicating whether the annotation properties should be set to default properties, as determined
by the classes in the com.qoppa.pdfNotes.settings packageisSticky
- Flag indicating whether this tool should be "sticky". When a tool is sticky, it will start over after
the user is done adding the annotationpublic void revert()
public boolean close(boolean checkSave)
checkSave
- Tells the method whether to ask the user to save the
current document if it has been modified.public void setDocument(IPDFDocument pdfDoc)
setDocument
in class PDFViewerBean
pdfDoc
- The new document.public void setCommentComponentsVisible(boolean visible)
PDFViewerBean
setCommentComponentsVisible
in class PDFViewerBean
visible
- Comment visibility flagpublic boolean save(PDFNotesBean notesBean, String docName, File pdfFile)
This method fulfills the IPDFSaver interface and will be called by the Save button on the toolbar unless the saver has been set by the host application.
This method can be overridden by a class that extends PDFNotesBean to customize saving behavior. Alternatively, a host application can call setPDFSaver with an object that implements IPDFSaver to use a custom saver. After setPDFSaver is called, all save functions will use the saver supplied by the host application.
save
in interface IPDFSaver
notesBean
- Reference to the PDFNotesBean that holds the document.docName
- The name of the PDF document, normally the file name.pdfFile
- A reference to a file object if the PDF was loaded from a file,
null if the PDF was opened from a URL or an InputStream.save()
,
saveAs()
public void saveDocument(String fileName) throws PDFException, IOException
fileName
- Name of the file to save the document.PDFException
IOException
public void saveDocument(OutputStream outStream) throws IOException, PDFException
outStream
- OutputStream where the document will be written to.IOException
PDFException
public boolean saveAs()
save()
,
save(PDFNotesBean, String, File)
public boolean save()
public void loadPDF(PDFSource pdfSource) throws PDFException
loadPDF
in class PDFViewerBean
pdfSource
- Object that implements the PDFSource interface.PDFException
public void loadPDF(InputStream inStream) throws PDFException
loadPDF
in class PDFViewerBean
inStream
- InputStream used to read the PDF document.PDFException
public void loadFDF(String fileName) throws PDFException
fileName
- Name of the FDF document file.PDFException
public void loadXFDF(String fileName) throws PDFException
fileName
- Name of the xFDF document file.PDFException
public void loadPDF(String fileName) throws PDFException
loadPDF
in class PDFViewerBean
fileName
- Name of the PDF document file.PDFException
public void loadPDF(URL url) throws PDFException
loadPDF
in class PDFViewerBean
url
- URL pointing to the location of the PDF document.PDFException
public void print(PrintSettings printSettings) throws PDFPermissionException, PrinterException
PDFViewerBean
print
in class PDFViewerBean
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 setPDFSaver(IPDFSaver saver)
saver
- A reference to an object that implements the IPDFSaver interface.public void addPDFListener(IPDFListener listener)
listener
- The new listener.public boolean removePDFListener(IPDFListener listener)
listener
- The new listener.public void setModified(boolean modified)
modified
- Flag indicating whether this document has been modified.public boolean isModified()
public void documentChanged(DocumentEvent de)
documentChanged
in interface IDocumentListener
documentChanged
in class PDFViewerBean
public void commitEdits()
commitEdits
in class PDFViewerBean
public void addAnnotation(Annotation newAnnot, int pageIndex) throws PDFException
newAnnot
- The new annotation.pageIndex
- The page at which to add the annotation, pageIndex starts at 0.PDFException
public void addAnnotation(Annotation newAnnot, int pageIndex, boolean setRotation) throws PDFException
newAnnot
- The new annotation.pageIndex
- The page at which to add the annotation, pageIndex starts at 0.setRotation
- Set false if the annotation should not be oriented according to the page's rotationPDFException
public SignatureField addSignatureField(String fieldName, Rectangle2D bounds, int pageIndex) throws PDFException
signDocument
.fieldName
- The name of the field.bounds
- The bounds on the page for the field. If bounds are set to (0,0,0,0) then the signature is invisible.pageIndex
- The page number.PDFException
public void addSignatureField()
public void signDocument(SignatureField signField) throws PDFException
signField
- The signature field to apply the signature to.PDFException
public void signDocument(SignatureField signField, boolean certify) throws PDFException
signField
- The signature field to apply the signature to.certify
- Option to select the certify signature optionPDFException
public void signDocument(SignatureField signField, SigningInformation signingInfo, File outputFile) throws PDFException
signField
- The signature field to apply the signature to.signingInfo
- The signature information.outputFile
- The output file to save the document to. If this is null, the document will be saved to
the current file.PDFException
public void showSignWarning(boolean showSignWarning)
PDFNotesBean
will show a warning that the signature may be
invalidated. To disable this warning message, set this value to
false
.showSignWarning
- true
to show the signed signature warning,
otherwise false
public void handleAction(Action action)
handleAction
in interface IPDFActionHandler
handleAction
in class PDFViewerBean
action
- Object describing the action.public void openFile(PDFViewerBean viewerBean) throws PDFException
openFile
in interface IPDFOpener
openFile
in class PDFViewerBean
viewerBean
- The PDFViewerBean object that initiated the open file action.PDFException
public void loadDocument(InputStream inStream, String formatName) throws PDFException, IOException
inStream
- The input stream to read the document from.formatName
- The name of the format of the input content data. Valid format names are pdf, tiff,
tif, png, jpg, jpeg and jpe and are case insensitive.PDFException
IOException
public void loadDocument(String fileName) throws PDFException, IOException
fileName
- The name of the file to open.PDFException
IOException
public void loadTextDocument(String fileName, TextToPDFSettings settings) throws PDFException, IOException
fileName
- The name of the file to open.settings
- The settings to use when converting the text file to PDF.PDFException
IOException
public boolean isOpenPDFOnly()
public void setOpenPDFOnly(boolean openPDFOnly)
openPDFOnly
- The new value of the flag.public void keyPressed(KeyEvent e)
PDFViewerBean
keyPressed
in interface KeyListener
keyPressed
in class PDFViewerBean
public boolean canPaste()
public void paste()
public void startMeasurementCalibration()
This method does nothing if a document is open since this feature requires a document.
public IAnnotationManagerNotes getAnnotationManager()
getAnnotationManager
in class PDFViewerBean
public PageViewPanelNotes getPageViewPanel()
getPageViewPanel
in class PDFViewerBean
public CommentPanelNotes getCommentPanel()
getCommentPanel
in class PDFViewerBean
public SignaturePanelNotes getSignaturePanel()
getSignaturePanel
in class PDFViewerBean
public JButton activateOCR()
PDFNotesBean
. A button
is added to the PDFToolbar
that initiates the OCR function.public AnnotPropertiesToolbar getAnnotPropertiesToolBar()
AnnotPropertiesToolbar
used to modify common
annotation properties.AnnotPropertiesToolbar
public TextAnnotPropertiesToolbar getTextAnnotPropertiesToolBar()
TextAnnotPropertiesToolbar
used to modify common
annotation properties.TextAnnotPropertiesToolbar
public AnnotAlignmentToolbar getAnnotAlignmentToolBar()
AnnotAlignmentToolbar
used to align selected annotationsAnnotAlignmentToolbar
public UndoManager getUndoManager()
UndoManager
for this PDFNotesBean
.UndoManager
for this PDFNotesBean
public AttachmentPanel getAttachmentPanel()
PDFViewerBean
getAttachmentPanel
in class PDFViewerBean
public void setRulerSettings(RulerSettings rulerSettings)
rulerSettings
- The new settings for the rulers, or null to hide the rulers.public RulerSettings getRulerSettings()
public void setGridSettings(GridSettings gridSettings)
gridSettings
- The new GridSettings or null to hide the grid.public GridSettings getGridSettings()
public void setPageMode(int pageMode)
PDFViewerBean
setPageMode
in class PDFViewerBean
pageMode
- The new page mode.public static void enableSpellChecking(boolean enable, boolean showSubMenu) throws ClassNotFoundException
To use this feature, you must have jortho.jar in your classpath and you must also replace several .class files with .class files available for download from Qoppa Software.
enable
- ClassNotFoundException
public void addNotify()
addNotify
in class PDFViewerBean
public void removeNotify()
removeNotify
in class PDFViewerBean