[api-minor] Remove the disableCombineTextItems
option
#16234
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please note: This parameter has never been used within the PDF.js library/viewer itself, and it was only ever added for backwards compatibility reasons.
This parameter was added in PR #7475, over six years ago, to try and optionally maintain the previous default text-extraction behaviour.
However as part of the general text-extraction improvements in PR #13257, almost two years ago, the
disableCombineTextItems
functionality was accidentally "broken" in various ways. Note how the only (very basic) unit-test was updated in a way that doesn't really make sense, since generally speaking you'd expect that using the option should result in more (or at least the same number of) text-items. Furthermore there's also the recent issue #16209 (comment), where the option causes almost all textContent to be concatenated together.Hence this patch proposes that we simply remove the
disableCombineTextItems
option since it's essentially unused/untested functionality, as evident from the fact that it took almost two years for someone to notice that it's broken.