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:
parent
a3669a4f0d
commit
a4c986515f
9 changed files with 552 additions and 164 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue