Class Export
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.ViewerWidget
-
- org.faceless.pdf2.viewer2.feature.SaveAs
-
- org.faceless.pdf2.viewer2.feature.Export
-
- All Implemented Interfaces:
DocumentPanelListener
public class Export extends SaveAs
Create a button that will open a dialog allowing the PDF to be saved to disk in a non-PDF format (eg TIFF or plain Text). This functionality is normally part of the
SaveAs
feature, but it can be disabled - if it is, this feature can be added to re-enable non-PDF export formats, just under a different menu item.Consequently this feature is not enabled by default.
The following initialization parameters can be specified to configure this feature.The name of this feature is ExportpromptOnOverwrite true to prompt before overwriting files, false otherwise (the default) This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
- Since:
- 2.17
-
-
Field Summary
-
Fields inherited from class org.faceless.pdf2.viewer2.ViewerWidget
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description Export()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action(ViewerEvent event)
The method that's run when this feature is activated.List<Exporter>
getExporters(ViewerEvent event)
Return the List of Exporters that will be presented to the user on save.-
Methods inherited from class org.faceless.pdf2.viewer2.feature.SaveAs
createActionListener, documentUpdated, initialize, isEnabledByDefault, isPromptOnOverwrite, setPromptOnOverwrite
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget
addPropertyChangeListener, firePropertyChange, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, removePropertyChangeListener, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, setFeatureName, teardown
-
-
-
-
Method Detail
-
getExporters
public List<Exporter> getExporters(ViewerEvent event)
Description copied from class:SaveAs
Return the List of Exporters that will be presented to the user on save.- Overrides:
getExporters
in classSaveAs
- Parameters:
event
- the event the returned list will apply to
-
action
public void action(ViewerEvent event)
Description copied from class:ViewerWidget
The method that's run when this feature is activated. This method is called by theActionListener
returned by the default implementation ofViewerWidget.createActionListener()
, and by default is a no-op.
-
-