summaryrefslogtreecommitdiff
path: root/crates/typst-pdf/src/page.rs
diff options
context:
space:
mode:
authorAna Gelez <ana@gelez.xyz>2024-08-14 09:10:12 +0200
committerAna Gelez <ana@gelez.xyz>2024-08-14 09:10:12 +0200
commita471807e2ef67f0d24d18ab153a941f2cd213f2b (patch)
tree5dbc8def8d7fbbb9e9e70563cb141881eed44de3 /crates/typst-pdf/src/page.rs
parentafc8c2c11a736f212a0ce205db01fa93bfa67337 (diff)
Still not working :(
Diffstat (limited to 'crates/typst-pdf/src/page.rs')
-rw-r--r--crates/typst-pdf/src/page.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-pdf/src/page.rs b/crates/typst-pdf/src/page.rs
index 1001d899..a84fa474 100644
--- a/crates/typst-pdf/src/page.rs
+++ b/crates/typst-pdf/src/page.rs
@@ -112,7 +112,8 @@ fn write_page(
return;
};
- let mut annotations = Vec::with_capacity(page.content.links.len());
+ let mut annotations = Vec::with_capacity(page.content.links.len() + 1);
+ annotations.push(ctx.references.signature_annotation);
for (dest, rect) in &page.content.links {
let id = chunk.alloc();
annotations.push(id);