@Deprecated public class ComparisonDocument extends ComparisonCompositeNode implements IComparisonDocument
Class ComparisonDocument.
Constructor and Description |
---|
ComparisonDocument()
Deprecated.
Initializes a new instance of the
ComparisonDocument class. |
ComparisonDocument(com.aspose.words.Document document)
Deprecated.
|
ComparisonDocument(InputStream fileStream)
Deprecated.
Initializes a new instance of the
ComparisonDocument class. |
ComparisonDocument(InputStream fileStream,
String password)
Deprecated.
Initializes a new instance of the
ComparisonDocument class. |
ComparisonDocument(String fileName)
Deprecated.
Initializes a new instance of the
ComparisonDocument class. |
ComparisonDocument(String fileName,
String password)
Deprecated.
Initializes a new instance of the
ComparisonDocument class. |
Modifier and Type | Method and Description |
---|---|
IWordsCompareResult |
compareWith(IComparisonDocument targetDocument,
WordsComparisonSettings settings)
Deprecated.
Compares current document with target document.
|
void |
cutDocument()
Deprecated.
|
double |
getDocumentStreamLength()
Deprecated.
Gets the length of the document stream.
|
String |
getLastSaveAuthor()
Deprecated.
Gets the author.
|
IComparisonSection[] |
getSections()
Deprecated.
Gets the sections of current document.
|
IWordsCompareResult |
multiCompareWith(List<IComparisonDocument> documents,
WordsComparisonSettings settings)
Deprecated.
Compares current document with some targets documents.
|
IWordsCompareResult |
multiCompareWithInternal(com.aspose.ms.System.Collections.Generic.List<IComparisonDocument> documents,
WordsComparisonSettings settings)
Deprecated.
|
void |
save(OutputStream stream,
int comparisonSaveFormat)
Deprecated.
Saves the document to a stream using the specified format.
|
void |
save(String fileName,
int comparisonSaveFormat)
Deprecated.
Saves the document to a following address using the specified format.
|
void |
saveAsImages(List<ByteArrayOutputStream> imageStreams,
ComparisonWordsImageSettings settings)
Deprecated.
Saves document as images into a list of streams.
|
void |
saveAsImages(String folderPath,
ComparisonWordsImageSettings settings)
Deprecated.
Saves document as images into specified folder.
|
void |
savePageAsImage(OutputStream imageStream,
ComparisonWordsImageSettings settings,
int pageIndex)
Deprecated.
Saves as images.
|
void |
savePageAsImage(String folderPath,
ComparisonWordsImageSettings settings,
int pageIndex)
Deprecated.
Saves as images.
|
appendChild, getChildNodes, getCount, getEnumerator, getEnumeratorInternal, insertBefore, iterator
getAsposeObject, getAuthor, getAuthors, getComparisonNodeType, getContent, getNodePosition, getStyleChanged, getText, getType, setAuthor, setAuthors, setContent, setNodePosition, setStyleChanged, setType, updateContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, getChildNodes, getCount, insertBefore
getComparisonNodeType, getStyleChanged, getText, getType, setStyleChanged, setType
public ComparisonDocument(com.aspose.words.Document document) throws Exception
Exception
public ComparisonDocument(String fileName) throws Exception
Initializes a new instance of the ComparisonDocument
class.
fileName
- Name of the file.Exception
public ComparisonDocument(String fileName, String password) throws Exception
Initializes a new instance of the ComparisonDocument
class.
fileName
- The file name.password
- The password.Exception
public ComparisonDocument(InputStream fileStream) throws Exception
Initializes a new instance of the ComparisonDocument
class.
fileStream
- The file stream.Exception
public ComparisonDocument(InputStream fileStream, String password) throws Exception
Initializes a new instance of the ComparisonDocument
class.
fileStream
- The file stream.password
- The password.Exception
public double getDocumentStreamLength()
Gets the length of the document stream.
getDocumentStreamLength
in interface IComparisonDocument
public IWordsCompareResult compareWith(IComparisonDocument targetDocument, WordsComparisonSettings settings) throws Exception
Compares current document with target document.
compareWith
in interface IComparisonDocument
targetDocument
- The target document.settings
- The settings.Exception
- the exceptionpublic IWordsCompareResult multiCompareWith(List<IComparisonDocument> documents, WordsComparisonSettings settings) throws Exception
Compares current document with some targets documents.
multiCompareWith
in interface IComparisonDocument
documents
- The documents.settings
- The settings.Exception
public IWordsCompareResult multiCompareWithInternal(com.aspose.ms.System.Collections.Generic.List<IComparisonDocument> documents, WordsComparisonSettings settings) throws Exception
Exception
public void save(String fileName, int comparisonSaveFormat) throws Exception
Saves the document to a following address using the specified format.
save
in interface IComparisonDocument
fileName
- Name of the file.comparisonSaveFormat
- The format in which to save the document.Exception
- the exceptionpublic void save(OutputStream stream, int comparisonSaveFormat) throws Exception
Saves the document to a stream using the specified format.
save
in interface IComparisonDocument
stream
- Stream where to save the document.comparisonSaveFormat
- The format in which to save the document.Exception
- the exceptionpublic void saveAsImages(String folderPath, ComparisonWordsImageSettings settings) throws Exception
Saves document as images into specified folder.
saveAsImages
in interface IComparisonDocument
folderPath
- settings
- Exception
- the exceptionpublic void saveAsImages(List<ByteArrayOutputStream> imageStreams, ComparisonWordsImageSettings settings) throws Exception
Saves document as images into a list of streams.
saveAsImages
in interface IComparisonDocument
imageStreams
- settings
- Exception
- the exceptionpublic void savePageAsImage(String folderPath, ComparisonWordsImageSettings settings, int pageIndex) throws Exception
Saves as images.
savePageAsImage
in interface IComparisonDocument
folderPath
- settings
- pageIndex
- Exception
- the exceptionpublic void savePageAsImage(OutputStream imageStream, ComparisonWordsImageSettings settings, int pageIndex) throws Exception
Saves as images.
savePageAsImage
in interface IComparisonDocument
imageStream
- settings
- pageIndex
- Exception
- the exceptionpublic String getLastSaveAuthor()
IComparisonDocument
getLastSaveAuthor
in interface IComparisonDocument
public IComparisonSection[] getSections()
Gets the sections of current document.
Value: The sections.getSections
in interface IComparisonDocument
Copyright © 2018. All rights reserved.