java.lang.Object
com.aspose.words.PlainTextDocument
public class PlainTextDocument
- extends java.lang.Object
Allows to extract plain-text representation of the document's content.
Constructor Summary |
PlainTextDocument(java.lang.String fileName)
Creates a plain text document from a file. Automatically detects the file format.
|
PlainTextDocument(java.lang.String fileName, LoadOptions loadOptions)
Creates a plain text document from a file. Allows to specify additional options such as an encryption password.
|
Property Getters/Setters Summary |
Aspose.Words.Properties.BuiltInDocumentProperties | getBuiltInDocumentProperties() | |
|
Gets BuiltInDocumentProperties of the document.
|
Aspose.Words.Properties.CustomDocumentProperties | getCustomDocumentProperties() | |
|
Gets CustomDocumentProperties of the document.
|
java.lang.String | getText() | |
|
Gets textual content of the document concatenated as a string.
|
PlainTextDocument
public PlainTextDocument(java.lang.String fileName)
throws java.lang.Exception
-
Creates a plain text document from a file. Automatically detects the file format.
- Parameters:
fileName
- Name of the file to extract the text from.
PlainTextDocument
public PlainTextDocument(java.lang.String fileName, LoadOptions loadOptions)
throws java.lang.Exception
-
Creates a plain text document from a file. Allows to specify additional options such as an encryption password.
- Parameters:
fileName
- Name of the file to extract the text from.loadOptions
- Additional options to use when loading a document. Can be null.
Property Getters/Setters Detail |
getBuiltInDocumentProperties | |
public Aspose.Words.Properties.BuiltInDocumentProperties getBuiltInDocumentProperties()
|
-
Gets BuiltInDocumentProperties of the document.
getCustomDocumentProperties | |
public Aspose.Words.Properties.CustomDocumentProperties getCustomDocumentProperties()
|
-
Gets CustomDocumentProperties of the document.
getText | |
public java.lang.String getText()
|
-
Gets textual content of the document concatenated as a string.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.