1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

XFA -- Display text content

- display xhtml;
  - allow spaces in xhtml (xfa-spacerun:yes);
  - support column layout;
  - fix some border issues.
This commit is contained in:
Calixte Denizet 2021-03-25 16:54:36 +01:00
parent a3669a4f0d
commit a4c986515f
9 changed files with 552 additions and 164 deletions

View file

@ -14,6 +14,7 @@
*/
import {
$acceptWhitespace,
$clean,
$finalize,
$nsAttributes,
@ -49,6 +50,11 @@ class XFAParser extends XMLParserBase {
}
onText(text) {
if (this._current[$acceptWhitespace]()) {
this._current[$onText](text);
return;
}
if (this._whiteRegex.test(text)) {
return;
}