mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-29 12:46:53 -06:00
24 lines
545 B
Rust
24 lines
545 B
Rust
//! File › Export PDF (Print).
|
||
|
||
use designcraft_pdf::{Marks, PdfOptions, Standard};
|
||
use serde_json::{Value, json};
|
||
use std::{borrow::Cow, sync::Arc};
|
||
|
||
use super::{CommandSpec, bad, cmd, has_doc, str_param};
|
||
use crate::{EngineError, Result, Session};
|
||
|
||
mod flatten;
|
||
mod formats;
|
||
mod pdf;
|
||
mod registry;
|
||
|
||
#[cfg(test)]
|
||
use flatten::{rasterize_effects, shadow_coverage};
|
||
#[cfg(not(target_arch = "wasm32"))]
|
||
pub(crate) use pdf::pdf_export;
|
||
pub(crate) use pdf::{flatten_ppi, options, print_pdf};
|
||
pub use registry::specs;
|
||
|
||
#[cfg(test)]
|
||
mod text_tests;
|