com.aspose.words

Class TxtTrailingSpacesOptions

  • 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 intTRIM = 0
static final intPRESERVE = 1
 

    • Field Detail

      • TRIM = 0

        public static final int TRIM
      • PRESERVE = 1

        public static final int PRESERVE