Stop the entry loop with break instead of return, so entries skipped
before the limit still get their warning.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Every path that drops a package, a type chunk or entries now sets
Table::truncated, and entries running past their chunk get a warning
instead of being skipped silently. Consumers use truncated to tell a
resource that is absent from one that was not read.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
hayro-interpret is excluded from the workspace, so editing
vendor/hayro-interpret/src/context.rs failed the Linux lint leg's
diff-mode unreached-rs check. Those backends compile in
scripts/test-pdf-backends.sh, not as workspace members.
The first commit had run rustfmt with the workspace max_width on the
whole vendored file. This keeps only the patch 89 behaviour change and
the regression tests.
Patch 89 still skips a form already on the drawing stack (ISO 32000-2
§8.10.1). Reporting that skip as InterpreterWarning::ContentTruncated
made VectorCraft reject legitimate knockout-mask PDFs after the #2472
pin, because a soft mask may paint a form already being drawn. The skip
stays; the truncation flag does not.
Refs storytold/craft-libs#778.
A PICT inside another metafile now draws on that file's decode budget
instead of resetting it. The public PICT entry point still starts a
fresh budget.
* metafile: expose frame and source-unit facts (#788)
Adapt the VectorCraft WMF unit scanner and EMF header-scale source facts from current VectorCraft main (db9acab4), preserving original authorship. Keep physical fallback scales and picture interpretation in the consumer.
* Distinguish EMF fixed calibration from variable header data
Retain the current app sizing policy. Correct the shared header classification when a description or pixel descriptor starts before the micrometre fields; this intentionally differs from the former size-only interpretation for those files.
* Use fixed-size chunks in the EMF header regression
* Reject negative EMF micrometre dimensions
ENHMETAHEADER stores szlMicrometers as signed SIZEL. Fall back to positive millimetre dimensions when either micrometre axis is nonpositive.
---------
Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>