public class Document extends Object
Represents document properties
Constructor and Description |
---|
Document(com.aspose.ms.System.IO.Stream stream)
Initializes new instance of
Document class. |
Document(com.aspose.ms.System.IO.Stream stream,
String password)
Initializes new instance of
Document class. |
Modifier and Type | Method and Description |
---|---|
void |
generatePreview(PreviewOptions previewOptions)
Generates document pages preview.
|
IDocumentInfo |
getDocumentInfo()
Gets information about document - document type and size, pages count
etc.
|
String |
getName()
Document name
|
String |
getPassword()
Document password
|
com.aspose.ms.System.IO.Stream |
getStream()
Document stream
|
void |
setCache(ICache value) |
void |
setName(String value)
Document name
|
void |
setPassword(String value) |
public Document(com.aspose.ms.System.IO.Stream stream)
Initializes new instance of Document
class.
stream
- The document stream.public final void generatePreview(PreviewOptions previewOptions)
Generates document pages preview.
previewOptions
- The document preview optionspublic final IDocumentInfo getDocumentInfo()
Gets information about document - document type and size, pages count etc.
public final String getName()
Document name
public final String getPassword()
Document password
public final com.aspose.ms.System.IO.Stream getStream()
Document stream
public final void setCache(ICache value)
public final void setName(String value)
Document name
value
- public final void setPassword(String value)