public class SpreadsheetPreviewOptions extends PreviewOptions
Provides options to sets requirements and stream delegates for preview generation of Spreadsheet document.
PreviewOptions.PreviewFormats| Modifier and Type | Field and Description |
|---|---|
static int |
DefaultResolution
Default resolution in dots per inch.
|
| Constructor and Description |
|---|
SpreadsheetPreviewOptions(ICreatePageStream createPageStream)
Initializes a new instance of the
class causing the output stream to be closed. |
SpreadsheetPreviewOptions(ICreatePageStream createPageStream,
IReleasePageStream releasePageStream)
Initializes a new instance of
class causing the output stream to be returned
to the client for further use. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getOnlyDataArea()
Gets the flag for rendering the data area only without headers, footers, margins.
|
int |
getResolution()
Gets the resolution for the generated images, in dots per inch.
|
void |
setOnlyDataArea(boolean value)
Sets the flag for rendering the data area only without headers, footers, margins.
|
void |
setResolution(int value)
Sets the resolution for the generated images, in dots per inch.
|
getCreatePageStream, getHeight, getPageNumbers, getPreviewFormat, getReleasePageStream, getWidth, setCreatePageStream, setHeight, setPageNumbers, setPreviewFormat, setReleasePageStream, setWidthpublic static final int DefaultResolution
Default resolution in dots per inch.
public SpreadsheetPreviewOptions(ICreatePageStream createPageStream)
SpreadsheetPreviewOptions class causing the output stream to be closed.createPageStream - Creates a stream for a specific page preview.public SpreadsheetPreviewOptions(ICreatePageStream createPageStream, IReleasePageStream releasePageStream)
SpreadsheetPreviewOptions class causing the output stream to be returned
to the client for further use.createPageStream - Creates a stream for a specific page preview.releasePageStream - Notifies that the page preview generation is done and gets the output stream.public final boolean getOnlyDataArea()
Gets the flag for rendering the data area only without headers, footers, margins.
false.
public final int getResolution()
Gets the resolution for the generated images, in dots per inch.
public final void setOnlyDataArea(boolean value)
Sets the flag for rendering the data area only without headers, footers, margins.
value - The flag for rendering the data area only without headers, footers, margins.false.
public final void setResolution(int value)
Sets the resolution for the generated images, in dots per inch.
value - The resolution for the generated images, in dots per inch.Copyright © 2026. All rights reserved.