mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[api-minor] Remove the normalizeWhitespace
option in the PDFPageProxy.{getTextContent, streamTextContent}
methods (issue 14519, PR 14428 follow-up)
With these changes, we'll now *always* replace all whitespaces with standard spaces (0x20). This behaviour is already, since many years, the default in both the viewer and the browser-tests.
This commit is contained in:
parent
48c8831a79
commit
403baa7bba
8 changed files with 8 additions and 16 deletions
|
@ -551,9 +551,7 @@ class PDFFindController {
|
|||
return this._pdfDocument
|
||||
.getPage(i + 1)
|
||||
.then(pdfPage => {
|
||||
return pdfPage.getTextContent({
|
||||
normalizeWhitespace: true,
|
||||
});
|
||||
return pdfPage.getTextContent();
|
||||
})
|
||||
.then(
|
||||
textContent => {
|
||||
|
|
|
@ -701,7 +701,6 @@ class PDFPageView {
|
|||
return finishPaintTask(null).then(() => {
|
||||
if (textLayer) {
|
||||
const readableStream = pdfPage.streamTextContent({
|
||||
normalizeWhitespace: true,
|
||||
includeMarkedContent: true,
|
||||
});
|
||||
textLayer.setTextContentStream(readableStream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue