public static enum EpubSaveOptions.RecognitionMode extends Enum<EpubSaveOptions.RecognitionMode>
When PDF file (that usually has fixed layout) is being converted, the conversion engine tries to perform grouping and multi-level analysis to restore the original document author's intent and produce result in flow layout. This property tunes that conversion for this or that desirable method of recognition of content.
Enum Constant and Description |
---|
Fixed
This mode is fast and good for maximally preserving the original look pages, but
unfortunately many EPUB readeres don't support xhtml with fixed layout
|
Flow
Full recognition mode, the engine tries to perform grouping and multi-level analysis to
restore the original document author's intent and produce xhtml in flow layout.
|
PdfFlow
The main idea of this conversion is based on saving "natural" order of content rendering
that is formed during processing of pdf documents.
|
Modifier and Type | Method and Description |
---|---|
static EpubSaveOptions.RecognitionMode |
getByValue(int value) |
int |
getValue() |
static EpubSaveOptions.RecognitionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EpubSaveOptions.RecognitionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EpubSaveOptions.RecognitionMode Flow
Full recognition mode, the engine tries to perform grouping and multi-level analysis to restore the original document author's intent and produce xhtml in flow layout.
public static final EpubSaveOptions.RecognitionMode PdfFlow
The main idea of this conversion is based on saving "natural" order of content rendering that is formed during processing of pdf documents. In the general cases pdf documents keep top-down, left-right rendering order (see attachment directions.png). This assumption allows to create a single-path algorithm that will transform Aps elements that have positions (fixed-layout) into flow formats like HTML,EPUB,DOC. This mode will be especially useful for converting from PDF(APS) into EPUB, because the EPUB format was developed for e-readers like the Kindle or smart-phones. The size of screen those devices usually is less than the size of screen of ordinary PC. Therefore the content of EPUB documents is better to save in the flow format, for correct rendering on screens with different sizes. In this mode every column will be added to the end of previous column this allows to keep the logical structure of transformed document during "pagination" in EPUB readers. This achievement allows correctly render scientific or magazine articles.
public static final EpubSaveOptions.RecognitionMode Fixed
This mode is fast and good for maximally preserving the original look pages, but unfortunately many EPUB readeres don't support xhtml with fixed layout
public static EpubSaveOptions.RecognitionMode[] values()
for (EpubSaveOptions.RecognitionMode c : EpubSaveOptions.RecognitionMode.values()) System.out.println(c);
public static EpubSaveOptions.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 EpubSaveOptions.RecognitionMode getByValue(int value)
Copyright © 2025 Aspose. All Rights Reserved.