TextExtractionOptions.TextFormattingMode
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum> com.aspose.ms.System.Enum com.aspose.pdf.TextExtractionOptions.TextFormattingMode, com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>, com.aspose.ms.System.Enum com.aspose.pdf.TextExtractionOptions.TextFormattingMode, com.aspose.ms.System.Enum, com.aspose.pdf.TextExtractionOptions.TextFormattingMode
public static final class TextExtractionOptions.TextFormattingMode extends com.aspose.ms.System.Enum
Defines different modes which can be used while converting pdf document into text. See {@code TextDevice} class.
Fields
| Field | Description |
|---|---|
| Flatten | Represent pdf content with positioning text fragments by their coordinates. It is basically similar to “Raw” mode. But while “Raw” focuses on preserving the structure of text fragments (operators) in a document, “Flatten” focuses on keeping text in the order it is read. |
| MemorySaving | Extraction with memory saving. It is almost same to ‘Raw’ mode but works slightly faster and uses less memory. |
| Pure | Represent pdf content with a bit of formatting routines. |
| Raw | Represent pdf content as is, i.e. without formatting. |
Flatten
public static final int Flatten
Represent pdf content with positioning text fragments by their coordinates. It is basically similar to “Raw” mode. But while “Raw” focuses on preserving the structure of text fragments (operators) in a document, “Flatten” focuses on keeping text in the order it is read.
MemorySaving
public static final int MemorySaving
Extraction with memory saving. It is almost same to ‘Raw’ mode but works slightly faster and uses less memory.
Pure
public static final int Pure
Represent pdf content with a bit of formatting routines.
Raw
public static final int Raw
Represent pdf content as is, i.e. without formatting.