mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10: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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue