public static enum DocSaveOptions.RecognitionMode extends Enum<DocSaveOptions.RecognitionMode>
Allows to control how a PDF document is converted into a word processing document.
Use the RecognitionMode.Textbox
mode when the resulting document is not goining to be
heavily edited futher. Textboxes are easy to modify when there is not a lot to do.
Use the RecognitionMode.Flow
mode when the output document needs further editing.
Paragraphs and texlines in the flow mode allow easy modification of text, but unupported
formatting objects will look worse than in the RecognitionMode.Textbox
mode.
Enum Constant and Description |
---|
EnhancedFlow
An alternative Flow mode that supports the recognition of tables.
|
Flow
Full recognition mode, the engine performs grouping and multi-level analysis to restore
the original document author's intent and produce a maximally editable document.
|
Textbox
This mode is fast and good for maximally preserving original look of the PDF file, but
editability of the resulting document could be limited.
|
Modifier and Type | Method and Description |
---|---|
static DocSaveOptions.RecognitionMode |
getByValue(int value) |
int |
getValue() |
static DocSaveOptions.RecognitionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocSaveOptions.RecognitionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocSaveOptions.RecognitionMode Textbox
This mode is fast and good for maximally preserving original look of the PDF file, but editability of the resulting document could be limited.
Every visually grouped block of text int the original PDF file is converted into a textbox in the resulting document. This achieves maximal resemblance of the output document to the original PDF file. The output document will look good, but it will consist entirely of textboxes and it could makes further editing of the document in Microsoft Word quite hard.
This is the default mode.
public static final DocSaveOptions.RecognitionMode Flow
Full recognition mode, the engine performs grouping and multi-level analysis to restore the original document author's intent and produce a maximally editable document. The downside is that the output document might look different from the original PDF file.
public static final DocSaveOptions.RecognitionMode EnhancedFlow
An alternative Flow mode that supports the recognition of tables.
public static DocSaveOptions.RecognitionMode[] values()
for (DocSaveOptions.RecognitionMode c : DocSaveOptions.RecognitionMode.values()) System.out.println(c);
public static DocSaveOptions.RecognitionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static DocSaveOptions.RecognitionMode getByValue(int value)
Copyright © 2025 Aspose. All Rights Reserved.