Resolve native PDF structure destinations and local actions

This commit is contained in:
gloamxun committed 2026-11-21 05:04:54 +08:00
1 parent 58bcfca7b7
commit 22154b53a6
11 files changed
+284 -78

No files matched your search

@@ -900,7 +900,12 @@ impl NativeBox {
budget.leader_depth += 1;
let result = self.walk_at(x, y, level, links, budget, &mut |x, y, paint| {
if !matches!(paint, BoxPaint::Output(o) if matches!(o.operation,
OutputOperation::Open { .. } | OutputOperation::Write { .. } | OutputOperation::Close { .. })) {
OutputOperation::Open { .. } | OutputOperation::Write { .. } | OutputOperation::Close { .. }))
&& !matches!(paint, BoxPaint::PdfLink(node, _) if matches!(
node.operation,
OutputOperation::PdfLink(crate::pdf_device::links::LinkNode::Destination { .. })
))
{
emit(x, y, paint);
}
});