Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 22 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ vergen = { version = "9.0.1", features = [
vergen-gitcl = { version = "1.0.1" }

# tinymist's world implementation
typst-shim = { version = "0.14.0-rc1" }
tinymist-std = { version = "0.14.0-rc1", default-features = false }
tinymist-task = { version = "0.14.0-rc1", default-features = false }
tinymist-world = { version = "0.14.0-rc1", default-features = false }
tinymist-package = { version = "0.14.0-rc1", default-features = false }
tinymist-project = { version = "0.14.0-rc1", default-features = false }
typst-shim = { version = "0.14.0" }
tinymist-std = { version = "0.14.0", default-features = false }
tinymist-task = { version = "0.14.0", default-features = false }
tinymist-world = { version = "0.14.0", default-features = false }
tinymist-package = { version = "0.14.0", default-features = false }
tinymist-project = { version = "0.14.0", default-features = false }

# project core
reflexo = { version = "0.7.0-rc1", path = "crates/reflexo", default-features = false }
Expand Down Expand Up @@ -265,13 +265,13 @@ typst-html = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "typst

# fontdb = { path = "../fontdb" }

# typst-shim = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-derive = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-std = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-task = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-package = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-world = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
# tinymist-project = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "bc5b26f7892326e886ba4b1e28281c9303f512cd" }
typst-shim = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-derive = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-std = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-task = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-package = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-world = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }
tinymist-project = { git = "https://github.com/Myriad-Dreamin/tinymist.git", rev = "052149a509b686fa9111dd99eb278ce1213abdf2" }

# typst-shim = { path = "../tinymist/crates/typst-shim" }
# tinymist-derive = { path = "../tinymist/crates/tinymist-derive" }
Expand Down
3 changes: 3 additions & 0 deletions packages/typst.node/src/compiler/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,12 @@ impl NodeCompiler {
.context("failed to deserialize PdfStandard for typst")
.map_err(map_node_error)?;

let pdf_tags = opts.pdf_tags.unwrap_or(true);

ExportPdfTask {
export: Default::default(),
pdf_standards: standard.into_iter().collect(),
no_pdf_tags: !pdf_tags,
creation_timestamp,
pages: None,
}
Expand Down
3 changes: 3 additions & 0 deletions packages/typst.node/src/compiler/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,12 @@ impl NodeTypstProject {
.context("failed to deserialize PdfStandard for typst")
.map_err(map_node_error)?;

let pdf_tags = opts.pdf_tags.unwrap_or(true);

ExportPdfTask {
export: Default::default(),
pdf_standards: standard.into_iter().collect(),
no_pdf_tags: !pdf_tags,
creation_timestamp,
pages: None,
}
Expand Down
6 changes: 6 additions & 0 deletions packages/typst.node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ pub struct RenderPdfOpts {
/// standards.
pub pdf_standard: Option<String>,

/// By default, even when not producing a `PDF/UA-1` document, a tagged PDF
/// document is written to provide a baseline of accessibility. In some
/// circumstances (for example when trying to reduce the size of a document)
/// it can be desirable to disable tagged PDF.
pub pdf_tags: Option<bool>,

/// An optional (creation) timestamp to be used to export PDF, *in seconds*.
///
/// This is used when you *enable auto timestamp* in the document.
Expand Down
Loading