SpreadsheetDocumentInfo

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.metadata.IDocumentInfo

public class SpreadsheetDocumentInfo implements IDocumentInfo

Represents metadata of one Spreadsheet document

Methods

Method Description
getFormat() Returns a format of this Spreadsheet document
getPageCount() Returns number of tabs
getSize() Returns size in bytes of this Spreadsheet document
isEncrypted() Indicates whether this specific Spreadsheet document in encrypted and requires password for opening
generatePreview(int worksheetIndex) Generates and returns a preview of the selected worksheet in a form of SVG image
equals(SpreadsheetDocumentInfo other) Determines whether this instance is equal to the other specified SpreadsheetDocumentInfo instance

getFormat()

public final SpreadsheetFormats getFormat()

Returns a format of this Spreadsheet document

Returns: SpreadsheetFormats

getPageCount()

public final int getPageCount()

Returns number of tabs

Returns: int

getSize()

public final long getSize()

Returns size in bytes of this Spreadsheet document

Returns: long

isEncrypted()

public final boolean isEncrypted()

Indicates whether this specific Spreadsheet document in encrypted and requires password for opening

Returns: boolean

generatePreview(int worksheetIndex)

public final SvgImage generatePreview(int worksheetIndex)

Generates and returns a preview of the selected worksheet in a form of SVG image

Parameters:

Parameter Type Description
worksheetIndex int 0-based index of the desired worksheet. Cannot be lesser then 0, cannot exceed the number of worksheets in this spreadsheet.

Returns: SvgImage - SVG image as the non-null instance of the SvgImage class

equals(SpreadsheetDocumentInfo other)

public final boolean equals(SpreadsheetDocumentInfo other)

Determines whether this instance is equal to the other specified SpreadsheetDocumentInfo instance

Parameters:

Parameter Type Description
other SpreadsheetDocumentInfo Other SpreadsheetDocumentInfo instance, that should be checked on equality with this

Returns: boolean - True if are equal, false if are unequal