mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15: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
|
@ -644,7 +644,6 @@ class Driver {
|
|||
// The text builder will draw its content on the test canvas
|
||||
initPromise = page
|
||||
.getTextContent({
|
||||
normalizeWhitespace: true,
|
||||
includeMarkedContent: true,
|
||||
})
|
||||
.then(function (textContent) {
|
||||
|
|
|
@ -1966,7 +1966,6 @@ describe("api", function () {
|
|||
it("gets text content", async function () {
|
||||
const defaultPromise = page.getTextContent();
|
||||
const parametersPromise = page.getTextContent({
|
||||
normalizeWhitespace: true,
|
||||
disableCombineTextItems: true,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue