-
-
- {t('pdfJsonEditor.options.forceSingleElement.title', 'Lock edited text to a single PDF element')}
-
-
- {t(
- 'pdfJsonEditor.options.forceSingleElement.description',
- 'When enabled, the editor exports each edited text box as one PDF text element to avoid overlapping glyphs or mixed fonts.'
+
+
+
+ {t('pdfJsonEditor.options.groupingMode.title', 'Text Grouping Mode')}
+
+ {externalGroupingMode === 'auto' && isParagraphPage && (
+
+ {t('pdfJsonEditor.pageType.paragraph', 'Paragraph page')}
+
)}
+ {externalGroupingMode === 'auto' && !isParagraphPage && hasDocument && (
+
+ {t('pdfJsonEditor.pageType.sparse', 'Sparse text')}
+
+ )}
+
+
+ {externalGroupingMode === 'auto'
+ ? t(
+ 'pdfJsonEditor.options.groupingMode.autoDescription',
+ 'Automatically detects page type and groups text appropriately.'
+ )
+ : externalGroupingMode === 'paragraph'
+ ? t(
+ 'pdfJsonEditor.options.groupingMode.paragraphDescription',
+ 'Groups aligned lines into multi-line paragraph text boxes.'
+ )
+ : t(
+ 'pdfJsonEditor.options.groupingMode.singleLineDescription',
+ 'Keeps each PDF text line as a separate text box.'
+ )}
-
- onForceSingleTextElementChange(event.currentTarget.checked)}
- />
-
+