public class Annotator extends Object implements com.aspose.ms.System.IDisposable
Represents main class that controls document annotating process.
Constructor and Description |
---|
Annotator(InputStream document)
Initialise annotator class which accept document stream
|
Annotator(InputStream document,
AnnotatorSettings settings)
Initialise annotator class which accept document stream
|
Annotator(InputStream document,
LoadOptions loadOptions)
Initialise annotator class which accept document stream
|
Annotator(InputStream document,
LoadOptions loadOptions,
AnnotatorSettings settings)
Initialise annotator class which accept document stream
|
Annotator(com.aspose.ms.System.IO.Stream document) |
Annotator(com.aspose.ms.System.IO.Stream document,
AnnotatorSettings settings) |
Annotator(com.aspose.ms.System.IO.Stream document,
LoadOptions loadOptions) |
Annotator(com.aspose.ms.System.IO.Stream document,
LoadOptions loadOptions,
AnnotatorSettings settings) |
Annotator(String filePath)
Initialise annotator class which accept document path
|
Annotator(String filePath,
AnnotatorSettings settings)
Initialise annotator class which accept document path
|
Annotator(String filePath,
LoadOptions loadOptions)
Initialise annotator class which accept document path
|
Annotator(String filePath,
LoadOptions loadOptions,
AnnotatorSettings settings)
Initialise annotator class which accept document path
|
Modifier and Type | Method and Description |
---|---|
void |
add(AnnotationBase annotation)
Add annotation.
|
void |
add(List<AnnotationBase> annotations)
Add list of annotations.
|
void |
addInternal(com.aspose.ms.System.Collections.Generic.List<AnnotationBase> annotations) |
void |
dispose()
Dispose
|
List<AnnotationBase> |
get()
Get annotations.
|
Document |
getDocument()
Document
|
com.aspose.ms.System.Collections.Generic.List<AnnotationBase> |
getInternal() |
void |
remove(int annotationId)
Remove annotation.
|
void |
save(InputStream document)
Save document.
|
void |
save(InputStream document,
SaveOptions saveOptions)
Save document.
|
void |
save(String filePath)
Save document.
|
void |
save(String filePath,
SaveOptions saveOptions)
Save document.
|
void |
saveInternal(com.aspose.ms.System.IO.Stream document) |
void |
saveInternal(com.aspose.ms.System.IO.Stream document,
SaveOptions saveOptions) |
void |
update(AnnotationBase newAnnotation)
Update annotation.
|
void |
update(List<AnnotationBase> annotations)
Update list of annotations.
|
void |
updateInternal(com.aspose.ms.System.Collections.Generic.List<AnnotationBase> annotations) |
public Annotator(InputStream document)
Initialise annotator class which accept document stream
document
- Document streampublic Annotator(InputStream document, AnnotatorSettings settings)
Initialise annotator class which accept document stream
document
- Document streamsettings
- Annotator settingspublic Annotator(InputStream document, LoadOptions loadOptions)
Initialise annotator class which accept document stream
document
- Document streamloadOptions
- Load optionspublic Annotator(InputStream document, LoadOptions loadOptions, AnnotatorSettings settings)
Initialise annotator class which accept document stream
document
- Document streamloadOptions
- Load optionssettings
- Annotator settingspublic Annotator(com.aspose.ms.System.IO.Stream document)
public Annotator(com.aspose.ms.System.IO.Stream document, AnnotatorSettings settings)
public Annotator(com.aspose.ms.System.IO.Stream document, LoadOptions loadOptions)
public Annotator(com.aspose.ms.System.IO.Stream document, LoadOptions loadOptions, AnnotatorSettings settings)
public Annotator(String filePath)
Initialise annotator class which accept document path
filePath
- File pathpublic Annotator(String filePath, AnnotatorSettings settings)
Initialise annotator class which accept document path
filePath
- File pathsettings
- Annotator settingspublic Annotator(String filePath, LoadOptions loadOptions)
Initialise annotator class which accept document path
filePath
- File pathloadOptions
- Load optionspublic Annotator(String filePath, LoadOptions loadOptions, AnnotatorSettings settings)
Initialise annotator class which accept document path
filePath
- File pathloadOptions
- Load optionssettings
- Annotator settingspublic final void add(AnnotationBase annotation)
Add annotation.
annotation
- The annotation to add.public final void add(List<AnnotationBase> annotations)
Add list of annotations.
annotations
- The annotations list to add.public void addInternal(com.aspose.ms.System.Collections.Generic.List<AnnotationBase> annotations)
public final void dispose()
Dispose
dispose
in interface com.aspose.ms.System.IDisposable
public final List<AnnotationBase> get()
Get annotations.
public final Document getDocument()
Document
public com.aspose.ms.System.Collections.Generic.List<AnnotationBase> getInternal()
public final void remove(int annotationId)
Remove annotation.
annotationId
- The annotation's id that must be removed.public final void save(InputStream document)
Save document.
document
- The output stream.public final void save(InputStream document, SaveOptions saveOptions)
Save document.
document
- The output stream.saveOptions
- The save options.public final void save(String filePath)
Save document.
filePath
- The output file path.public final void save(String filePath, SaveOptions saveOptions)
Save document.
filePath
- The output file path.saveOptions
- The save options.public void saveInternal(com.aspose.ms.System.IO.Stream document)
public void saveInternal(com.aspose.ms.System.IO.Stream document, SaveOptions saveOptions)
public final void update(AnnotationBase newAnnotation)
Update annotation.
newAnnotation
- The annotation to update(must have the same id).public final void update(List<AnnotationBase> annotations)
Update list of annotations.
annotations
- The annotations list that will be set.public void updateInternal(com.aspose.ms.System.Collections.Generic.List<AnnotationBase> annotations)