public final class AutoTaggingSettings extends Object
Provides settings for the auto-tagging functionality in PDF documents.
The AutoTaggingSettings
class allows configuring options for automatic tagging of PDF content.
It includes properties to enable or disable auto-tagging, specify a strategy for heading recognition,
and define heading levels based on font sizes.
Constructor and Description |
---|
AutoTaggingSettings() |
Modifier and Type | Method and Description |
---|---|
static AutoTaggingSettings |
getDefault()
Gets the default settings for auto-tagging functionality in PDF documents.
|
boolean |
getEnableAutoTagging()
Gets or sets a value indicating whether the auto-tagging functionality is enabled.
|
HeadingLevels |
getHeadingLevels()
Gets or sets the heading levels used for determining the structure of headings in a PDF document.
|
int |
getHeadingRecognitionStrategy()
Gets or sets the strategy used for recognizing headings in the document during auto-tagging.
|
void |
setEnableAutoTagging(boolean value)
Gets or sets a value indicating whether the auto-tagging functionality is enabled.
|
void |
setHeadingLevels(HeadingLevels value)
Gets or sets the heading levels used for determining the structure of headings in a PDF document.
|
void |
setHeadingRecognitionStrategy(int value)
Gets or sets the strategy used for recognizing headings in the document during auto-tagging.
|
public static AutoTaggingSettings getDefault()
Gets the default settings for auto-tagging functionality in PDF documents.
The default settings enable auto-tagging and use the automatic strategy for heading recognition. These settings can be used as a baseline configuration for PDF format conversion or other operations requiring automatic tagging of PDF content.
public final boolean getEnableAutoTagging()
Gets or sets a value indicating whether the auto-tagging functionality is enabled.
When enabled, the auto-tagging functionality automatically generates tagged content for the PDF document, which can improve accessibility and structure.
public final void setEnableAutoTagging(boolean value)
Gets or sets a value indicating whether the auto-tagging functionality is enabled.
When enabled, the auto-tagging functionality automatically generates tagged content for the PDF document, which can improve accessibility and structure.
value
- boolean valuepublic final int getHeadingRecognitionStrategy()
Gets or sets the strategy used for recognizing headings in the document during auto-tagging.
The HeadingRecognitionStrategy
(getHeadingRecognitionStrategy()
/setHeadingRecognitionStrategy(int)
) property determines how headings are identified
in the document. Available strategies include recognizing headings based on outlines,
heuristic analysis, or automatic detection. Setting this property to HeadingRecognitionStrategy.None
disables heading recognition.
public final void setHeadingRecognitionStrategy(int value)
Gets or sets the strategy used for recognizing headings in the document during auto-tagging.
The HeadingRecognitionStrategy
(getHeadingRecognitionStrategy()
/setHeadingRecognitionStrategy(int)
) property determines how headings are identified
in the document. Available strategies include recognizing headings based on outlines,
heuristic analysis, or automatic detection. Setting this property to HeadingRecognitionStrategy.None
disables heading recognition.
value
- HeadingRecognitionStrategy elementpublic final HeadingLevels getHeadingLevels()
Gets or sets the heading levels used for determining the structure of headings in a PDF document.
The HeadingLevels
(getHeadingLevels()
/setHeadingLevels(HeadingLevels)
) property allows configuring the mapping of font sizes to heading levels.
This is used during the auto-tagging process to identify and assign appropriate heading levels
based on the font size of text elements in the document.
public final void setHeadingLevels(HeadingLevels value)
Gets or sets the heading levels used for determining the structure of headings in a PDF document.
The HeadingLevels
(getHeadingLevels()
/setHeadingLevels(HeadingLevels)
) property allows configuring the mapping of font sizes to heading levels.
This is used during the auto-tagging process to identify and assign appropriate heading levels
based on the font size of text elements in the document.
value
- HeadingLevels instanceCopyright © 2025 Aspose. All Rights Reserved.