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

@ -19,6 +19,7 @@ import { NamespaceIds } from "./namespaces.js";
// We use these symbols to avoid name conflict between tags
// and properties/methods names.
const $acceptWhitespace = Symbol();
const $appendChild = Symbol();
const $childrenToHTML = Symbol();
const $clean = Symbol();
@ -131,6 +132,10 @@ class XFAObject {
);
}
[$acceptWhitespace]() {
return false;
}
[$setId](ids) {
if (this.id && this[$namespaceId] === NamespaceIds.template.id) {
ids.set(this.id, this);
@ -805,6 +810,7 @@ class Option10 extends IntegerObject {
}
export {
$acceptWhitespace,
$appendChild,
$childrenToHTML,
$clean,