mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-01 06:06:49 -06:00
crates/ui-egui/src/dialogs.rs: kept the Enter-stays-local fix crates/ui-egui/src/package_dialog.rs: kept the summary wording and the fix; took the PR's pdf option value crates/ui-egui/src/i18n/*.rs: kept the reworded keys and the PR's PDF Preset rows Also (the PR's own CI failure): package.rs calls check_pdf_options and pdf_report on wasm, so those two re-exports are no longer wasm-gated (only pdf_export is).
25 lines
598 B
Rust
25 lines
598 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::{check_pdf_options, pdf_report};
|
||
pub(crate) use pdf::{flatten_ppi, options, print_pdf};
|
||
pub use registry::specs;
|
||
|
||
#[cfg(test)]
|
||
mod text_tests;
|