mirror of
https://github.com/typst/typst
synced 2025-06-21 12:52:53 +08:00
20 lines
456 B
Rust
20 lines
456 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::<PdfTagElem>();
|
|
pdf.define_elem::<ArtifactElem>();
|
|
Module::new("pdf", pdf)
|
|
}
|