DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #223: PDF/X-4: RGB images carry sRGB, no image interpolation, pdf:Trapped in XMP
aiongg7b813d70ad03
diff --cc crates/pdf/src/lib.rsindex 080bb5981,49f49b033..008c78264--- a/crates/pdf/src/lib.rs+++ b/crates/pdf/src/lib.rs@@@ -12,10 -12,10 +12,12 @@@//! - **Colour:** CMYK as DeviceCMYK, RGB as DeviceRGB, Gray as DeviceGray, spot swatches (and their//! tints) as `/Separation` with the swatch's own values as the alternate space, `[Registration]`//! as `/Separation /All`.+//! Gradients with mixed output colour spaces are converted to RGB with an export warning;+//! homogeneous gradients keep their existing colour space (subject to PDF/A conversion).//! - **Images:** clipped to their frame; JPEG data is passed through, PNG/GIF/WebP are embedded- //! losslessly (or re-encoded as JPEG with [`PdfOptions::compress_images`]).+ //! losslessly (or re-encoded as JPEG with [`PdfOptions::compress_images`]). PDF/X-4 and PDF/A+ //! images are written without interpolation. In PDF/X-4 an RGB image without a profile of its own+ //! carries sRGB (`assets/icc/sRGB-v2-magic.icc`).//! - **Text as real text:** the composed glyph runs are emitted with embedded, subsetted fonts and a//! Unicode mapping taken from the story text (ligatures, page numbers and inserted hyphens get the//! right characters), so text is selectable and searchable.