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

XFA - Fix indentation for justified paragraph

- and ceil the reserve for a caption to avoid to split it;
  - both issues are present in the pdf in issue #13633.
This commit is contained in:
Calixte Denizet 2021-07-03 18:06:59 +02:00
parent d80651e572
commit 9b5574d3ef
4 changed files with 14 additions and 7 deletions

View file

@ -897,7 +897,7 @@ class Caption extends XFAObject {
"inactive",
"invisible",
]);
this.reserve = getMeasurement(attributes.reserve);
this.reserve = Math.ceil(getMeasurement(attributes.reserve));
this.use = attributes.use || "";
this.usehref = attributes.usehref || "";
this.extras = null;