mod accessibility;
mod attach;
pub use self::accessibility::*;
pub use self::attach::*;
use crate::foundations::{Deprecation, Element, Module, Scope};
use crate::{Feature, Features};
pub fn module(features: &Features) -> Module {
let mut pdf = Scope::deduplicating();
pdf.start_category(crate::Category::Pdf);
pdf.define_elem::<AttachElem>();
pdf.define("embed", Element::of::<AttachElem>()).deprecated(
Deprecation::new()
.with_message("the name `embed` is deprecated, use `attach` instead")
.with_until("0.15.0"),
);
pdf.define_elem::<ArtifactElem>();
if features.is_enabled(Feature::A11yExtras) {
pdf.define_func::<table_summary>();
pdf.define_func::<header_cell>();
pdf.define_func::<data_cell>();
}
Module::new("pdf", pdf)
}