mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #16297 from Snuffleupagus/copy-all-null-chars
Remove null chars, i.e. `\u0000`, when getting all text (PR 16286 follow-up)
This commit is contained in:
commit
5f7e43a2b1
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ import {
|
|||
MAX_SCALE,
|
||||
MIN_SCALE,
|
||||
PresentationModeState,
|
||||
removeNullCharacters,
|
||||
RenderingStates,
|
||||
SCROLLBAR_PADDING,
|
||||
scrollIntoView,
|
||||
|
@ -671,7 +672,7 @@ class PDFViewer {
|
|||
buffer.push("\n");
|
||||
}
|
||||
}
|
||||
texts.push(buffer.join(""));
|
||||
texts.push(removeNullCharacters(buffer.join("")));
|
||||
}
|
||||
|
||||
return texts.join("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue