public abstract class ExportFilePresenter extends ExportPresenter
Modifier and Type | Class and Description |
---|---|
static interface |
ExportFilePresenter.HasPrintRange
Interface for PrintToX which have a Print-Range property.
|
BasePresenter.ERROR_SOURCE
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHT
LOGGER, MAX_FILENAME_LENGTH
Constructor and Description |
---|
ExportFilePresenter() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyPrintRange(ExportFilePresenter.HasPrintRange printToX)
Set the print range to the Print-implementation.
|
BasePresenter |
configure(IProfile configuration)
Sets a boolean flag indicating whether an export will be generated when there are no differences found in the
compared PDFs.
|
protected java.io.OutputStream |
getExportStream()
Opens an returns an output stream for the result of the current
BasePresenter.getModel() . |
protected abstract java.lang.String |
getExtension()
Get the extension of the target file
|
void |
setExportOnlyOnDifferences(boolean exportOnlyOnDifferences)
Deprecated.
As of i-net PDFC 4.3, use
PDFComparer.setSettings(Settings) |
void |
setModel(ResultModel newModel)
Registers this presenter to a model.
|
void |
setPrintRange(int from,
int to)
Set the range of pages to render into the export-document.
|
createAndSetupPrintPainter, setAddHeaderFooter, setBackgroundColor, setColorprovider, setOverlapAlpha, setPaintOverlap, setPaintSides, setScaleToFitPageHeight
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onComparisonDone, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setParent, spawn
getExtensionName
protected void applyPrintRange(ExportFilePresenter.HasPrintRange printToX)
printToX
- the print implementationpublic void setPrintRange(int from, int to)
from
- the first page to include, 0-based.to
- the last page to include, must be greater or equal to from and smaller than the total number of pages availablepublic BasePresenter configure(IProfile configuration)
Default value is false.
differences found in the compared PDFs, if set to false an export will always be generated even when there are no differences. Configures the presenter according to a configuration. The presenter will read the propertyPDFCProperty.MAX_ERRORS_PER_FILE
from the configuration.configure
in class BasePresenter
configuration
- the configuration to read from, must not be null
protected java.io.OutputStream getExportStream() throws java.io.IOException
BasePresenter.getModel()
. The caller of this method
will close the stream itself!java.io.IOException
- thrown in case the stream could not be createdprotected abstract java.lang.String getExtension()
@Deprecated public void setExportOnlyOnDifferences(boolean exportOnlyOnDifferences)
PDFComparer.setSettings(Settings)
Default value is false.
exportOnlyOnDifferences
- if set to true an export will only be generated when there are
differences found in the compared PDFs, if set to false an export will always be generated even when
there are no differences.public void setModel(ResultModel newModel)
setModel
in class BasePresenter
newModel
- the newCopyright © 2010-2022 by i-net software GmbH