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/lib.rs | |
| parent | afc8c2c11a736f212a0ce205db01fa93bfa67337 (diff) | |
More stuffdigital-signatures
Still not working :(
Diffstat (limited to 'crates/typst-pdf/src/lib.rs')
| -rw-r--r-- | crates/typst-pdf/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst-pdf/src/lib.rs b/crates/typst-pdf/src/lib.rs index ea8f6648..1da8ffaa 100644 --- a/crates/typst-pdf/src/lib.rs +++ b/crates/typst-pdf/src/lib.rs @@ -21,6 +21,7 @@ use std::ops::{Deref, DerefMut}; use base64::Engine; use pdf_writer::{Chunk, Pdf, Ref}; +use signature::alloc_signature_annotation; use typst::foundations::{Datetime, Smart}; use typst::layout::{Abs, Em, PageRanges, Transform}; use typst::model::Document; @@ -79,6 +80,7 @@ pub fn pdf( resources: builder.run(alloc_resources_refs), }) .phase(|builder| References { + signature_annotation: builder.run(alloc_signature_annotation), named_destinations: builder.run(write_named_destinations), fonts: builder.run(write_fonts), color_fonts: builder.run(write_color_fonts), @@ -207,6 +209,8 @@ impl<'a> From<(WithResources<'a>, GlobalRefs)> for WithGlobalRefs<'a> { /// The references that have been assigned to each object. struct References { + /// Reference for the digital signature annotation + signature_annotation: Ref, /// List of named destinations, each with an ID. named_destinations: NamedDestinations, /// The IDs of written fonts. |
