Skip to content

Commit

Permalink
fix: pdf options
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Oct 10, 2024
1 parent 3493638 commit d976628
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/reflexo-typst/src/exporter/pdf.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::sync::Arc;

use typst::{diag::SourceResult, foundations::Smart, World};
use typst::{diag::SourceResult, World};
use typst_pdf::PdfOptions;

use crate::{Exporter, TypstDatetime};

Expand All @@ -24,11 +25,12 @@ impl Exporter<typst::model::Document, Vec<u8>> for PdfDocExporter {
) -> SourceResult<Vec<u8>> {
// todo: ident option

Ok(typst_pdf::pdf(
typst_pdf::pdf(
output.as_ref(),
Smart::Auto,
self.ctime,
None,
))
&PdfOptions {
timestamp: self.ctime,
..Default::default()
},
)
}
}

0 comments on commit d976628

Please sign in to comment.