mirror of
https://github.com/typst/typst
synced 2025-08-23 11:14:13 +08:00
19 lines
419 B
Rust
19 lines
419 B
Rust
//! PDF-specific functionality.
|
|
|
|
mod accessibility;
|
|
mod embed;
|
|
|
|
pub use self::accessibility::*;
|
|
pub use self::embed::*;
|
|
|
|
use crate::foundations::{Module, Scope};
|
|
|
|
/// Hook up all `pdf` definitions.
|
|
pub fn module() -> Module {
|
|
let mut pdf = Scope::deduplicating();
|
|
pdf.start_category(crate::Category::Pdf);
|
|
pdf.define_elem::<EmbedElem>();
|
|
pdf.define_elem::<ArtifactElem>();
|
|
Module::new("pdf", pdf)
|
|
}
|