diff options
| author | Ana Gelez <ana@gelez.xyz> | 2024-08-14 09:10:12 +0200 |
|---|---|---|
| committer | Ana Gelez <ana@gelez.xyz> | 2024-08-14 09:10:12 +0200 |
| commit | a471807e2ef67f0d24d18ab153a941f2cd213f2b (patch) | |
| tree | 5dbc8def8d7fbbb9e9e70563cb141881eed44de3 /crates/typst-pdf/src/page.rs | |
| parent | afc8c2c11a736f212a0ce205db01fa93bfa67337 (diff) | |
More stuffdigital-signatures
Still not working :(
Diffstat (limited to 'crates/typst-pdf/src/page.rs')
| -rw-r--r-- | crates/typst-pdf/src/page.rs | 3 |
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); |
