On #325 (feature/pdfua-1-support), three reading-order problems with inline objects remained after #389. veraPDF flags none of them.
- Nested marked content. An inline image's
Figure MCID is opened inside its paragraph's MCID. ISO 32000-1 allows nesting only where the outer sequence has no MCID of its own. The paragraph's marked content should be closed around the image.
- Objects come after the line's text. mPDF draws inline objects (images and form widgets) at the end of each line, so in content order the
Figure or Form comes after the line's text. <label><input type="checkbox"> Check</label> reads as "Check, checkbox".
<a href><img alt="…"></a> puts the Figure beside the Link rather than inside it, so the Link's only content is its annotation (OBJR).
Items 1 and 2 have the same cause: objects in a line are drawn in a second pass. A fix probably records each object's position in the line's content order and emits its marked content in sequence.
On #325 (
feature/pdfua-1-support), three reading-order problems with inline objects remained after #389. veraPDF flags none of them.FigureMCID is opened inside its paragraph's MCID. ISO 32000-1 allows nesting only where the outer sequence has no MCID of its own. The paragraph's marked content should be closed around the image.FigureorFormcomes after the line's text.<label><input type="checkbox"> Check</label>reads as "Check, checkbox".<a href><img alt="…"></a>puts theFigurebeside theLinkrather than inside it, so the Link's only content is its annotation (OBJR).Items 1 and 2 have the same cause: objects in a line are drawn in a second pass. A fix probably records each object's position in the line's content order and emits its marked content in sequence.