java.lang.Object
com.aspose.words.TxtTrailingSpacesOptions
public class TxtTrailingSpacesOptions
- extends java.lang.Object
Utility class containing constants.
Specifies available options for trailing spaces handling during import from LoadFormat.TEXT file.
Example:
Shows how to load plain text as is.
TxtLoadOptions loadOptions = new TxtLoadOptions();
// If it sets to true Aspose.Words insert additional periods after numbers in the content.
loadOptions.setDetectNumberingWithWhitespaces(false);
loadOptions.setTrailingSpacesOptions(TxtTrailingSpacesOptions.PRESERVE);
loadOptions.setLeadingSpacesOptions(TxtLeadingSpacesOptions.PRESERVE);
Document doc = new Document(getMyDir() + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt", loadOptions);
doc.save(getArtifactsDir() + "TxtLoadOptions.DetectNumberingWithWhitespaces.txt");
Field Summary |
static final int | TRIM = 0 | |
|
static final int | PRESERVE = 1 | |
|
TRIM = 0 | |
public static final int TRIM |
-
PRESERVE = 1 | |
public static final int PRESERVE |
-
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.