mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 12:38:18 +00:00
Fix #1954: PDF/X CMYK in the output intent's profile is written as DeviceCMYK
A PDF/X-3 or PDF/X-4 export tagged every CMYK color with an ICC-based space of the same profile that the output intent embeds. In PDF/X-3 and PDF/X-4, CMYK colors in the profile of a CMYK output intent are now DeviceCMYK, and the profile is written once, as the output intent's DestOutputProfile (ISO 32000-1, 14.11.5: https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=641). - With output.profiles none and a CMYK output intent, PDF/X-3 and PDF/X-4 write every CMYK color as DeviceCMYK, unless colors are converted to a CMYK destination of another profile, which keeps its tag. Before, those standards tagged every color whatever profiles said. - RGB and gray colors stay tagged, and so do CMYK colors and images in another profile. - A CMYK image that carries the output intent's profile is DeviceCMYK, and so is every CMYK image when none makes CMYK colors DeviceCMYK. A CMYK JPEG then loses its ICC_PROFILE segments. - Transparency groups blend in DeviceCMYK when CMYK colors are DeviceCMYK, also when the file has no ICC-based CMYK space. - Files without a standard keep the tags that profiles asks for. - The Save PDF dialog's note for PDF/X-3 and PDF/X-4 says that CMYK colors in the output intent's profile are written as DeviceCMYK. Docs: docs/mcp.md, docs/target-app-parity.md and the document.exportPdf params text.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1629,9 +1629,9 @@ fn cmyk_mesh(create: Value) -> (Session, NodeId) {
|
||||
(s, a)
|
||||
}
|
||||
|
||||
/// The fill colours `document.exportPdf {standard: pdfX4}` writes (`… scn` operands, and the
|
||||
/// corner colours of its gradient meshes, which are patch shadings, as PDF import reads them
|
||||
/// back), and its warnings.
|
||||
/// The fill colours `document.exportPdf {standard: pdfX4}` writes (`… scn` and DeviceCMYK
|
||||
/// `c m y k k` operands, and the corner colours of its gradient meshes, which are patch shadings,
|
||||
/// as PDF import reads them back), and its warnings.
|
||||
fn pdf_fill_colours(s: &mut Session) -> (Vec<Vec<f32>>, Vec<String>) {
|
||||
let v = s.execute("document.exportPdf", &json!({"standard": "pdfX4", "compression": {"compressText": false}})).unwrap();
|
||||
let bytes = vectorcraft_format::base64_decode(v["dataBase64"].as_str().unwrap()).unwrap();
|
||||
@@ -1646,6 +1646,11 @@ fn pdf_fill_colours(s: &mut Session) -> (Vec<Vec<f32>>, Vec<String>) {
|
||||
if !nums.is_empty() {
|
||||
out.push(nums.into_iter().rev().collect());
|
||||
}
|
||||
} else if *w == "k" {
|
||||
let nums: Vec<f32> = words[..i].iter().rev().take(4).map_while(|x| x.parse().ok()).collect();
|
||||
if nums.len() == 4 {
|
||||
out.push(nums.into_iter().rev().collect());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1971,9 +1971,15 @@ fn dimension_colours_follow_the_document_colour_model() {
|
||||
let black = colours(&s, id);
|
||||
assert!(!black.is_empty() && black.iter().all(|c| *c == vectorcraft_color::Color::cmyk(0.0, 0.0, 0.0, 1.0)), "{black:?}");
|
||||
let pdf = pdf_content(&run(&mut s, "document.exportPdf", json!({"preset":"PDF/X-4:2010"})));
|
||||
// PDF/X-4 paints in the output intent's CMYK space: `/c0 CS 0 0 0 1 SCN` strokes, `scn` fills.
|
||||
let operands = |op: &str| pdf.match_indices(op).map(|(i, _)| pdf[i.saturating_sub(7)..i].to_string()).collect::<Vec<_>>();
|
||||
let (strokes, fills) = (operands(" SCN"), operands(" scn"));
|
||||
// PDF/X-4 writes CMYK in the output intent's profile as DeviceCMYK: `0 0 0 1 K` strokes, `k` fills.
|
||||
let words: Vec<&str> = pdf.split_whitespace().collect();
|
||||
let operands = |op: &str| {
|
||||
(4..words.len())
|
||||
.filter(|&i| words[i] == op && words[i - 4..i].iter().all(|w| w.parse::<f32>().is_ok()))
|
||||
.map(|i| words[i - 4..i].join(" "))
|
||||
.collect::<Vec<_>>()
|
||||
};
|
||||
let (strokes, fills) = (operands("K"), operands("k"));
|
||||
assert!(!strokes.is_empty() && !fills.is_empty(), "{pdf}");
|
||||
assert!(strokes.iter().chain(&fills).all(|v| v == "0 0 0 1"), "K-only colours: {strokes:?} {fills:?}");
|
||||
run(&mut s, "dimension.update", json!({"ids":[id],"options":{"lineColor":[255,0,0]}}));
|
||||
|
||||
@@ -69,9 +69,11 @@ impl Writer {
|
||||
pub(crate) fn new(doc: &Document, set: &crate::PdfSettings, title: &str, created: Option<i64>, cmyk: bool) -> Result<Self, PdfError> {
|
||||
let out = ColorOut::new(doc, set)?;
|
||||
let mut warnings = out.profile_notes.clone();
|
||||
// Tagged CMYK colours need the profile (PDF/A tags every colour).
|
||||
let cmyk_profile = if out.tagged { out.cmyk_icc() } else { None };
|
||||
if out.tagged && cmyk_profile.is_none() {
|
||||
// Tagged CMYK colours need the profile (PDF/A tags every colour). When CMYK colors are
|
||||
// DeviceCMYK (`device_cmyk`), the writer gets no CMYK profile.
|
||||
let tags_cmyk = out.tagged && !out.device_cmyk();
|
||||
let cmyk_profile = if tags_cmyk { out.cmyk_icc() } else { None };
|
||||
if tags_cmyk && cmyk_profile.is_none() {
|
||||
warnings.push(format!("the CMYK profile {} can't be embedded: CMYK colours are written untagged", out.cmyk_profile()));
|
||||
}
|
||||
let version = match set.compatibility {
|
||||
@@ -271,8 +273,15 @@ impl Writer {
|
||||
PdfError::from(e)
|
||||
})?;
|
||||
if self.cmyk {
|
||||
let profile = self.out.tagged.then(|| vectorcraft_color::cms::icc_bytes(self.out.cmyk_profile()).ok()).flatten();
|
||||
cmyk_blending(&mut bytes, self.out.tagged, profile.as_deref(), self.out.standard != Standard::PdfA2b);
|
||||
let device = self.out.device_cmyk();
|
||||
let profile = (self.out.tagged && !device).then(|| vectorcraft_color::cms::icc_bytes(self.out.cmyk_profile()).ok()).flatten();
|
||||
let without = match (&profile, self.out.standard != Standard::PdfA2b) {
|
||||
_ if device => Without::AlwaysDeviceCmyk,
|
||||
(None, _) => Without::FirstCmyk,
|
||||
(Some(_), true) => Without::DeviceCmyk,
|
||||
(Some(_), false) => Without::Rgb,
|
||||
};
|
||||
cmyk_blending(&mut bytes, self.out.tagged, profile.as_deref(), without);
|
||||
}
|
||||
let lab = !self.lab_spots.is_empty() && !self.out.standard.cmyk_only();
|
||||
let bytes = if lab { crate::lab_spot::lab_alternates(bytes, &self.lab_spots) } else { bytes };
|
||||
@@ -287,19 +296,12 @@ impl Writer {
|
||||
/// are rewritten in place to DeviceCMYK (or the CMYK profile's space), keeping their length so the
|
||||
/// cross-reference offsets stay valid. Luminosity masks' groups keep RGB: mask luminance is that
|
||||
/// of screen colours, as on screen. Tagged groups blend in the space of CMYK profile `profile`
|
||||
/// (the one that tags CMYK colours) when the file has one. When its only CMYK spaces are of other
|
||||
/// profiles (images' own), they blend in DeviceCMYK where `device` allows it, else they keep RGB;
|
||||
/// without `profile`, they blend in the first CMYK space.
|
||||
fn cmyk_blending(pdf: &mut [u8], tagged: bool, profile: Option<&[u8]>, device: bool) {
|
||||
/// (the one that tags CMYK colours) when the file has one; otherwise they blend as `without` says.
|
||||
fn cmyk_blending(pdf: &mut [u8], tagged: bool, profile: Option<&[u8]>, without: Without) {
|
||||
let masks = luminosity_mask_groups(pdf);
|
||||
let mut spaces = vec![("/CS/DeviceRGB".to_string(), "/CS/DeviceCMYK".to_string())];
|
||||
if tagged {
|
||||
let own = profile.and_then(|icc| crate::output::tagging_stream(pdf, &crate::patch::Xref::read(pdf)?, icc));
|
||||
let without = match (profile, device) {
|
||||
(None, _) => Without::FirstCmyk,
|
||||
(Some(_), true) => Without::DeviceCmyk,
|
||||
(Some(_), false) => Without::Rgb,
|
||||
};
|
||||
spaces.extend(icc_spaces(pdf, own, without));
|
||||
}
|
||||
let mut from = 0;
|
||||
@@ -316,11 +318,15 @@ fn cmyk_blending(pdf: &mut [u8], tagged: bool, profile: Option<&[u8]>, device: b
|
||||
/// What tagged groups blend in when the file holds no space of the document's CMYK profile.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
enum Without {
|
||||
/// The first ICC-based CMYK space of the file.
|
||||
/// The first ICC-based CMYK space of the file (the document's profile isn't known).
|
||||
FirstCmyk,
|
||||
/// DeviceCMYK when the file has an ICC-based CMYK space (images' own profiles), outside PDF/A.
|
||||
DeviceCmyk,
|
||||
/// The RGB space they have.
|
||||
/// The RGB space they have (PDF/A, which allows no DeviceCMYK next to images' own profiles).
|
||||
Rgb,
|
||||
/// DeviceCMYK, also when the file has no ICC-based CMYK space: CMYK colors are DeviceCMYK
|
||||
/// ([`crate::output::ColorOut::device_cmyk`]).
|
||||
AlwaysDeviceCmyk,
|
||||
}
|
||||
|
||||
/// The ICC-based RGB colour spaces of `pdf`, each with the ICC-based CMYK one to blend in instead,
|
||||
@@ -352,6 +358,7 @@ fn icc_spaces(pdf: &[u8], own: Option<u32>, without: Without) -> Vec<(String, St
|
||||
Without::FirstCmyk => cmyk,
|
||||
Without::DeviceCmyk => cmyk.map(|_| "/CS/DeviceCMYK".to_string()),
|
||||
Without::Rgb => None,
|
||||
Without::AlwaysDeviceCmyk => Some("/CS/DeviceCMYK".to_string()),
|
||||
});
|
||||
let Some(cmyk) = cmyk else { return vec![] };
|
||||
rgb.into_iter().map(|r| (r, cmyk.clone())).collect()
|
||||
@@ -435,6 +442,11 @@ mod tests {
|
||||
// profile's space; the first CMYK space when the document's profile isn't known.
|
||||
assert_eq!(icc_spaces(SPACES, None, Without::DeviceCmyk), [(rgb.clone(), "/CS/DeviceCMYK".to_string())]);
|
||||
assert_eq!(icc_spaces(SPACES, None, Without::Rgb), []);
|
||||
assert_eq!(icc_spaces(SPACES, None, Without::FirstCmyk), [(rgb, "/CS 2 0 R".to_string())]);
|
||||
assert_eq!(icc_spaces(SPACES, None, Without::FirstCmyk), [(rgb.clone(), "/CS 2 0 R".to_string())]);
|
||||
// CMYK colors written as DeviceCMYK: groups blend there, with or without a CMYK ICC space.
|
||||
assert_eq!(icc_spaces(SPACES, None, Without::AlwaysDeviceCmyk), [(rgb.clone(), "/CS/DeviceCMYK".to_string())]);
|
||||
let rgb_only = b"%PDF-1.7\n1 0 obj\n[/ICCBased 4 0 R]\nendobj\n4 0 obj\n<</N 3/Length 0>>stream\n\nendstream\nendobj\n";
|
||||
assert_eq!(icc_spaces(rgb_only, None, Without::DeviceCmyk), []);
|
||||
assert_eq!(icc_spaces(rgb_only, None, Without::AlwaysDeviceCmyk), [(rgb, "/CS/DeviceCMYK".to_string())]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,12 +25,17 @@
|
||||
//! document's), RGB with sRGB (colours of another RGB space as their sRGB equivalents) and grey
|
||||
//! with the sRGB tone curve. Otherwise they are device colours. PDF/A, PDF/X-3 and PDF/X-4
|
||||
//! always tag them, whatever `profiles` says; PDF/X-1a never does, and always converts to a
|
||||
//! CMYK destination (see [`crate::pdfx`]). A CMYK image that keeps its numbers is tagged with
|
||||
//! the CMYK profile it carries, if any, with `all` and `taggedSource`, and in PDF/A, PDF/X-3
|
||||
//! and PDF/X-4 unless `profiles` is `destination` ([`ColorOut::cmyk_image_icc`]). When
|
||||
//! CMYK destination (see [`crate::pdfx`]). In PDF/X-3 and PDF/X-4, CMYK colors in the profile
|
||||
//! of a CMYK output intent are DeviceCMYK, and so are all CMYK colors with `none`, unless
|
||||
//! colors are converted to a CMYK destination of another profile ([`ColorOut::device_cmyk`]).
|
||||
//! A CMYK image that keeps
|
||||
//! its numbers is tagged with the CMYK profile it carries, if any, with `all` and
|
||||
//! `taggedSource`, and in PDF/A, PDF/X-3 and PDF/X-4 unless `profiles` is `destination`
|
||||
//! ([`ColorOut::cmyk_image_icc`]); not when that profile is a DeviceCMYK output intent's. When
|
||||
//! `profiles` isn't set, colors are written as with `none` and gray and RGB images keep the
|
||||
//! profiles they carry (but in PDF/X-1a); when it is set to `none`, no image keeps its own
|
||||
//! profile, a JPEG's `ICC_PROFILE` segments included, except in PDF/A, PDF/X-3 and PDF/X-4
|
||||
//! profile, a JPEG's `ICC_PROFILE` segments included, except in PDF/A, PDF/X-3 and PDF/X-4,
|
||||
//! where CMYK images lose theirs only when CMYK colors are DeviceCMYK
|
||||
//! ([`ColorOut::source_profiles`]).
|
||||
//! - Output intent: the profile `outputIntent` names, embedded as the `/GTS_PDFX` output intent
|
||||
//! of the catalog with the condition, identifier and registry; Trapped goes in the document
|
||||
@@ -82,6 +87,13 @@ pub(crate) struct ColorOut {
|
||||
no_profiles: bool,
|
||||
/// The CMYK profile that tags CMYK colours.
|
||||
cmyk_profile: String,
|
||||
/// CMYK colors are written as DeviceCMYK although colors are tagged
|
||||
/// ([`Self::device_cmyk`]): the profile of the CMYK output intent they are in, embedded once
|
||||
/// as its `DestOutputProfile`.
|
||||
device_icc: Option<Arc<[u8]>>,
|
||||
/// With [`Self::device_icc`], CMYK images are untagged too, whatever profile they carry
|
||||
/// (`profiles` is `none`).
|
||||
untag_cmyk_images: bool,
|
||||
/// Tagged RGB colours are written as their sRGB equivalents: why (a warning), when their RGB
|
||||
/// space isn't sRGB.
|
||||
pub srgb_note: Option<String>,
|
||||
@@ -132,6 +144,8 @@ impl Default for ColorOut {
|
||||
image_icc: false,
|
||||
no_profiles: false,
|
||||
cmyk_profile,
|
||||
device_icc: None,
|
||||
untag_cmyk_images: false,
|
||||
srgb_note: None,
|
||||
pixels: OnceLock::new(),
|
||||
tagged_pixels: OnceLock::new(),
|
||||
@@ -290,9 +304,32 @@ impl ColorOut {
|
||||
}
|
||||
out.catalog = catalog(set, &out.cmyk_profile);
|
||||
out.standard = set.standard;
|
||||
// In PDF/X-3 and PDF/X-4 the CMYK output intent characterizes DeviceCMYK: CMYK colors in
|
||||
// its profile are written as DeviceCMYK, and with `none` every CMYK color is, unless
|
||||
// colors are converted to a CMYK destination of another profile. Files without a standard
|
||||
// keep the tags that `profiles` asks for.
|
||||
let intent_cmyk = out.catalog.as_ref().and_then(|c| c.intent.as_ref()?.profile.as_ref()).filter(|(_, n)| *n == 4);
|
||||
let none = set.output.profiles == Some(ProfileInclusion::None);
|
||||
let to_cmyk = out.dest.as_ref().is_some_and(|d| d.model == Model::Cmyk);
|
||||
if out.tagged
|
||||
&& set.standard.is_pdfx()
|
||||
&& let Some(intent) = intent_cmyk.and_then(|(name, _)| cms::icc_bytes(name).ok())
|
||||
&& ((none && !to_cmyk) || cms::icc_bytes(&out.cmyk_profile).is_ok_and(|own| own == intent))
|
||||
{
|
||||
out.device_icc = Some(intent);
|
||||
out.untag_cmyk_images = none;
|
||||
}
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
/// CMYK colors are written as DeviceCMYK although colors are tagged, in PDF/X-3 and PDF/X-4
|
||||
/// with a CMYK output intent: its profile is the one they are in, or `profiles` is `none` and
|
||||
/// there is no CMYK destination of another profile. RGB and gray colors stay tagged, and
|
||||
/// so does a CMYK image that carries another profile, except with `none`.
|
||||
pub(crate) fn device_cmyk(&self) -> bool {
|
||||
self.device_icc.is_some()
|
||||
}
|
||||
|
||||
/// Transparency blends in CMYK: converting to CMYK, or (without conversion) in a CMYK
|
||||
/// document (`cmyk`).
|
||||
pub(crate) fn blends_cmyk(&self, cmyk: bool) -> bool {
|
||||
@@ -415,22 +452,29 @@ impl ColorOut {
|
||||
|
||||
/// The CMYK profile CMYK image `blob` is tagged with ([`crate::images::cmyk_icc`]): the one it
|
||||
/// carries, when its numbers are kept and the Profiles setting or the standard includes source
|
||||
/// profiles. `None` otherwise, and in PDF/X-1a, whose images are untagged CMYK.
|
||||
/// profiles. `None` otherwise, and in PDF/X-1a, whose images are untagged CMYK. When CMYK
|
||||
/// colors are DeviceCMYK ([`Self::device_cmyk`]), an image that carries the output intent's
|
||||
/// profile is untagged too, and so is every CMYK image with `none`.
|
||||
pub(crate) fn cmyk_image_icc(&self, blob: &vectorcraft_doc::ImageBlob) -> Option<Vec<u8>> {
|
||||
if !self.image_icc || self.cmyk_pixels().is_some() {
|
||||
return None;
|
||||
}
|
||||
crate::images::cmyk_icc(blob)
|
||||
let icc = crate::images::cmyk_icc(blob)?;
|
||||
match &self.device_icc {
|
||||
Some(intent) if self.untag_cmyk_images || icc == **intent => None,
|
||||
_ => Some(icc),
|
||||
}
|
||||
}
|
||||
|
||||
/// How CMYK image `blob` is tagged ([`crate::images::recode_cmyk`]): with the profile
|
||||
/// [`Self::cmyk_image_icc`] gives (`icc`), else untagged, without a JPEG's own `ICC_PROFILE`
|
||||
/// segments when Don't Include Profiles was set.
|
||||
/// segments when Don't Include Profiles was set or CMYK colors are DeviceCMYK
|
||||
/// ([`Self::device_cmyk`]).
|
||||
pub(crate) fn cmyk_tag<'a>(&self, icc: Option<&'a [u8]>) -> crate::images::CmykTag<'a> {
|
||||
use crate::images::CmykTag;
|
||||
match icc {
|
||||
Some(icc) => CmykTag::Profile(icc),
|
||||
None if self.no_profiles => CmykTag::Removed,
|
||||
None if self.no_profiles || self.device_cmyk() => CmykTag::Removed,
|
||||
None => CmykTag::Untagged,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
//! - PDF/X-1a:2001: every colour is CMYK, grey or a spot ink with a CMYK alternate (colours and
|
||||
//! images are converted to a CMYK destination and written untagged, see [`crate::output`]), no
|
||||
//! transparency (the app flattens it before writing), no layers, PDF 1.3.
|
||||
//! - PDF/X-3:2002: colours are ICC-based (always tagged), no transparency, no layers, PDF 1.3.
|
||||
//! - PDF/X-4:2010: transparency and layers are kept, colours are tagged, PDF 1.6 at most, and the
|
||||
//! XMP metadata names the standard too and carries `xmp:MetadataDate`.
|
||||
//! - PDF/X-3:2002: colors are ICC-based (always tagged), except CMYK colors in the CMYK output
|
||||
//! intent's profile, which are DeviceCMYK (with `profiles` `none`, all CMYK colors unless they
|
||||
//! are converted to a CMYK destination of another profile), no transparency, no layers, PDF 1.3.
|
||||
//! - PDF/X-4:2010: transparency and layers are kept, colors are tagged as in PDF/X-3, PDF 1.6 at
|
||||
//! most, and the XMP metadata names the standard too and carries `xmp:MetadataDate`.
|
||||
//! - All of them: a `/GTS_PDFX` output intent (blank, the CMYK profile in effect, embedded), a
|
||||
//! TrimBox on every page (the artboard), `/Trapped` True or False, `/GTS_PDFXVersion` in the
|
||||
//! document information, a title and dates, embedded fonts (or text as outlines), no editing
|
||||
|
||||
@@ -164,8 +164,9 @@ fn a_cmyk_jpeg_passes_through_open_and_every_pdf_export() {
|
||||
(json!({}), "DeviceCMYK", None),
|
||||
(json!({"output": {"conversion": "preserveNumbers"}}), "DeviceCMYK", None),
|
||||
(json!({"standard": "pdfX1a"}), "DeviceCMYK", None),
|
||||
(json!({"standard": "pdfX3"}), "ICCBased", Some(4)),
|
||||
(json!({"standard": "pdfX4"}), "ICCBased", Some(4)),
|
||||
// CMYK in the output intent's profile (the CMYK profile in effect) is DeviceCMYK.
|
||||
(json!({"standard": "pdfX3"}), "DeviceCMYK", None),
|
||||
(json!({"standard": "pdfX4"}), "DeviceCMYK", None),
|
||||
(json!({"output": {"profiles": "all"}}), "ICCBased", Some(4)),
|
||||
] {
|
||||
let out = export_with_report(&r.document, &opts(settings.clone())).unwrap();
|
||||
@@ -645,6 +646,37 @@ fn a_cmyk_image_that_keeps_its_numbers_carries_its_cmyk_profile() {
|
||||
assert!(!String::from_utf8_lossy(&bytes).contains("/S/Luminosity"), "no luminosity soft mask");
|
||||
}
|
||||
|
||||
/// When CMYK colors are DeviceCMYK in the output intent's profile, a CMYK image that carries that
|
||||
/// profile is DeviceCMYK too, and with `none` so is one that carries another profile; elsewhere
|
||||
/// it keeps its own (#1954).
|
||||
#[test]
|
||||
fn a_cmyk_image_in_the_output_intents_profile_is_device_cmyk() {
|
||||
let ink = [0u8, 102, 255, 0];
|
||||
let working = cms::icc_bytes(&cms::active_settings().cmyk).unwrap();
|
||||
let other = cmyk_profile(|_| {});
|
||||
let export = |icc: &[u8], s: serde_json::Value| {
|
||||
let tiff = cmyk_tiff_with(ink, 4, 4, icc);
|
||||
let inks = tiff.cmyk().unwrap().data;
|
||||
let d = image_doc(tiff, 4, 4);
|
||||
let out = export_with_report(&d, &opts(s.clone())).unwrap_or_else(|e| panic!("{s}: {e}"));
|
||||
let w: Vec<Written> = written(&out.bytes).into_iter().filter(|w| w.space != "DeviceGray").collect();
|
||||
assert_eq!(w.len(), 1, "{s}: {w:?}");
|
||||
assert_eq!(blobs(&import(&out.bytes).unwrap())[0].cmyk().unwrap().data, inks, "{s}: the inks as they were");
|
||||
w.into_iter().next().unwrap()
|
||||
};
|
||||
for s in [json!({"standard": "pdfX4"}), json!({"standard": "pdfX3"}), json!({"standard": "pdfX4", "output": {"profiles": "none"}})] {
|
||||
let w = export(&working, s.clone());
|
||||
assert_eq!((w.space.as_str(), w.icc_n), ("DeviceCMYK", None), "{s}: the output intent's profile");
|
||||
}
|
||||
let w = export(&other, json!({"standard": "pdfX4"}));
|
||||
assert!((w.space.as_str(), w.icc.as_deref()) == ("ICCBased", Some(other.as_slice())), "another profile is kept: {w:?}");
|
||||
let w = export(&other, json!({"standard": "pdfX4", "output": {"profiles": "none"}}));
|
||||
assert_eq!((w.space.as_str(), w.icc_n), ("DeviceCMYK", None), "with none: {w:?}");
|
||||
// Without an output intent, the image keeps the profile it carries.
|
||||
let w = export(&working, json!({"output": {"profiles": "all"}}));
|
||||
assert!(w.space == "ICCBased" && w.icc.as_deref() == Some(&*working), "{w:?}");
|
||||
}
|
||||
|
||||
/// With Don't Include Profiles set, a CMYK JPEG kept as it is is DeviceCMYK without its own
|
||||
/// `ICC_PROFILE` segments, its compressed inks unchanged; one resampled and compressed again is
|
||||
/// written without a profile too. Left unset, the JPEG data stays as it is.
|
||||
@@ -672,6 +704,16 @@ fn a_set_dont_include_profiles_takes_a_cmyk_jpegs_profile_out() {
|
||||
let s = json!({"output": {"profiles": "none"}, "compression": {"color": {"downsample": "bicubic", "ppi": 72.0, "abovePpi": 100.0}}});
|
||||
let (w, _) = export(s.clone());
|
||||
assert!(w.icc.is_none() && !segment(&w.data), "{s}: {w:?}");
|
||||
// A PDF/X file whose CMYK colors are DeviceCMYK takes the profile out of a JPEG it untags.
|
||||
let s = json!({"standard": "pdfX4", "output": {"profiles": "none"}});
|
||||
let (w, _) = export(s.clone());
|
||||
assert!(w.space == "DeviceCMYK" && w.data == vectorcraft_doc::cmyk::jpeg_without_icc(&jpg).unwrap(), "{s}: {w:?}");
|
||||
let working = cms::icc_bytes(&cms::active_settings().cmyk).unwrap();
|
||||
let own = cmyk_jpeg_with(&flat(ink, 64 * 64), 64, 64, &working);
|
||||
let d = image_doc(ImageBlob::new("image/jpeg", own.clone()), 64, 64);
|
||||
let out = export_with_report(&d, &opts(json!({"standard": "pdfX4"}))).unwrap();
|
||||
let w: Vec<Written> = written(&out.bytes).into_iter().filter(|w| w.space != "DeviceGray").collect();
|
||||
assert!(w.len() == 1 && w[0].space == "DeviceCMYK" && w[0].data == vectorcraft_doc::cmyk::jpeg_without_icc(&own).unwrap(), "{w:?}");
|
||||
}
|
||||
|
||||
/// A CMYK JPEG kept as it is whose header declares far more pixels than the app reads is left out
|
||||
|
||||
@@ -591,39 +591,96 @@ fn standard_pdf(d: &Document, settings: Value) -> ExportReport {
|
||||
export_with_report(d, &PdfOptions { settings, created: Some(1_700_000_000), ..Default::default() }).unwrap()
|
||||
}
|
||||
|
||||
/// The output intent's profile, decoded, of `bytes`.
|
||||
fn intent_profile(bytes: &[u8]) -> Vec<u8> {
|
||||
let mut out = vec![];
|
||||
output_intent(bytes, None, |oi| out = oi.get::<Stream<'_>>(b"DestOutputProfile").unwrap().decoded().unwrap().into_owned());
|
||||
out
|
||||
}
|
||||
|
||||
/// CMYK colors in the profile of a CMYK output intent are DeviceCMYK, which the output intent
|
||||
/// describes: no ICC-based CMYK space carries the same profile, and it is embedded once (#1954).
|
||||
#[test]
|
||||
fn a_profile_that_tags_colours_and_is_the_output_intent_is_embedded_once() {
|
||||
let d = doc(ColorMode::Cmyk, &[Color::cmyk(0.1, 0.2, 0.3, 0.4)]);
|
||||
fn cmyk_colors_in_the_output_intents_profile_are_device_cmyk() {
|
||||
let ink = [0.1, 0.2, 0.3, 0.4];
|
||||
let d = doc(ColorMode::Cmyk, &[Color::cmyk(ink[0], ink[1], ink[2], ink[3])]);
|
||||
let working = cms::active_settings().cmyk;
|
||||
let icc = cms::icc_bytes(&working).unwrap();
|
||||
for set in [
|
||||
json!({"standard": "pdfX4"}),
|
||||
json!({"standard": "pdfX4", "output": {"outputIntent": working}}),
|
||||
// PDF/X-3 and PDF/X-4 always tag their colours: `profiles` doesn't apply.
|
||||
json!({"standard": "pdfX4", "output": {"profiles": "none", "outputIntent": working}}),
|
||||
json!({"standard": "pdfX3"}),
|
||||
json!({"output": {"profiles": "all", "outputIntent": working}}),
|
||||
] {
|
||||
let r = standard_pdf(&d, set.clone());
|
||||
let streams = icc_streams(&r.bytes);
|
||||
assert_eq!(streams.len(), 1, "{set}: ICC profile streams");
|
||||
assert!(streams[0] == *icc, "{set}: the working CMYK profile");
|
||||
assert!(colours(&r.bytes).iter().all(|c| c.0 == "scn"), "{set}: tagged colours");
|
||||
output_intent(&r.bytes, None, |oi| assert_eq!(oi.get::<Stream<'_>>(b"DestOutputProfile").unwrap().decoded().unwrap().as_ref(), &*icc));
|
||||
assert!(r.warnings.is_empty(), "{set}: {:?}", r.warnings);
|
||||
assert!(icc_streams(&r.bytes) == [icc.to_vec()], "{set}: the working CMYK profile, once");
|
||||
assert!(icc_profiles(&r.bytes).is_empty(), "{set}: no ICC-based color space");
|
||||
let c = colours(&r.bytes);
|
||||
assert!(c.len() == 1 && c[0].0 == "k" && close(&c[0].1, &ink), "{set}: DeviceCMYK, the numbers kept: {c:?}");
|
||||
assert!(intent_profile(&r.bytes) == *icc, "{set}");
|
||||
}
|
||||
// Another output intent profile is its own stream.
|
||||
// Another output intent's profile: CMYK colors keep their own, and both are embedded.
|
||||
let other = cms::icc_bytes(DEVICE_CMYK).unwrap();
|
||||
let r = standard_pdf(&d, json!({"standard": "pdfX4", "output": {"outputIntent": DEVICE_CMYK}}));
|
||||
assert_eq!(icc_streams(&r.bytes).len(), 2);
|
||||
output_intent(&r.bytes, None, |oi| {
|
||||
assert_eq!(oi.get::<Stream<'_>>(b"DestOutputProfile").unwrap().decoded().unwrap().as_ref(), &*cms::icc_bytes(DEVICE_CMYK).unwrap())
|
||||
});
|
||||
assert!(icc_profiles(&r.bytes) == [(4, icc.to_vec())]);
|
||||
assert!(colours(&r.bytes).iter().all(|c| c.0 == "scn"), "{:?}", colours(&r.bytes));
|
||||
assert!(intent_profile(&r.bytes) == *other);
|
||||
// With `none`, every CMYK color is DeviceCMYK, in the output intent's profile.
|
||||
for standard in ["pdfX3", "pdfX4"] {
|
||||
let set = json!({"standard": standard, "output": {"profiles": "none", "outputIntent": DEVICE_CMYK}});
|
||||
let r = standard_pdf(&d, set.clone());
|
||||
assert!(icc_streams(&r.bytes) == [other.to_vec()], "{set}");
|
||||
let c = colours(&r.bytes);
|
||||
assert!(c.len() == 1 && c[0].0 == "k" && close(&c[0].1, &ink), "{set}: {c:?}");
|
||||
}
|
||||
// With `none`, colors converted to a CMYK destination of another profile keep its tag: they
|
||||
// are in the destination's profile, not the output intent's.
|
||||
let set = json!({"standard": "pdfX4", "output": {"profiles": "none", "conversion": "destination", "destination": DEVICE_CMYK, "outputIntent": working}});
|
||||
let r = standard_pdf(&d, set.clone());
|
||||
assert!(icc_profiles(&r.bytes) == [(4, other.to_vec())], "{set}");
|
||||
assert!(colours(&r.bytes).iter().all(|c| c.0 == "scn"), "{set}: {:?}", colours(&r.bytes));
|
||||
assert!(intent_profile(&r.bytes) == *icc, "{set}");
|
||||
// Without a standard, `all` tags CMYK colors, with an output intent of their profile or none.
|
||||
for set in [json!({"output": {"profiles": "all"}}), json!({"output": {"profiles": "all", "outputIntent": working}})] {
|
||||
let r = standard_pdf(&d, set.clone());
|
||||
assert!(icc_profiles(&r.bytes) == [(4, icc.to_vec())], "{set}");
|
||||
assert!(colours(&r.bytes).iter().all(|c| c.0 == "scn"), "{set}: {:?}", colours(&r.bytes));
|
||||
}
|
||||
}
|
||||
|
||||
/// Next to DeviceCMYK colors, RGB colors stay ICC-based (a CMYK output intent leaves no room for
|
||||
/// DeviceRGB), and transparency groups of a CMYK document blend in DeviceCMYK.
|
||||
#[test]
|
||||
fn rgb_stays_tagged_and_groups_blend_in_device_cmyk_beside_device_cmyk_colors() {
|
||||
let d = doc(ColorMode::Rgb, &[Color::rgb(0.2, 0.4, 0.6), Color::cmyk(0.1, 0.2, 0.3, 0.4)]);
|
||||
for set in [json!({"standard": "pdfX4"}), json!({"standard": "pdfX4", "output": {"profiles": "none"}})] {
|
||||
let r = standard_pdf(&d, set.clone());
|
||||
let ops: Vec<String> = colours(&r.bytes).into_iter().map(|c| c.0).collect();
|
||||
assert_eq!(ops, ["scn", "k"], "{set}");
|
||||
let n: Vec<i32> = icc_profiles(&r.bytes).iter().map(|p| p.0).collect();
|
||||
assert_eq!(n, [3], "{set}: sRGB only");
|
||||
}
|
||||
let mut d = doc(ColorMode::Cmyk, &[Color::cmyk(1.0, 0.0, 0.0, 0.0)]);
|
||||
let mut n = Node::path(
|
||||
d.alloc_id(),
|
||||
shapes::rectangle(Rect::new(20.0, 20.0, 60.0, 60.0)),
|
||||
Appearance::basic(Paint::solid(Color::cmyk(0.0, 1.0, 0.0, 0.0)), Paint::None, 0.0),
|
||||
);
|
||||
n.opacity = 0.5;
|
||||
let l = d.layers[0].id;
|
||||
d.insert(Some(l), 1, n).unwrap();
|
||||
let r = standard_pdf(&d, json!({"standard": "pdfX4"}));
|
||||
let text = String::from_utf8_lossy(&r.bytes);
|
||||
let groups: Vec<&str> = text.split("/Group<<").skip(1).map(|g| g.split(">>").next().unwrap()).collect();
|
||||
assert!(!groups.is_empty() && groups.iter().all(|g| g.contains("/CS/DeviceCMYK")), "{groups:?}");
|
||||
}
|
||||
|
||||
/// The profiles assigned to a document (Edit › Assign Profile) are its colour spaces whatever the
|
||||
/// working spaces of the session that exports it: a document opened again in a new session,
|
||||
/// which starts with the default working spaces, keeps its profiles. Its CMYK colours are tagged
|
||||
/// with its CMYK profile, which is also the PDF/X output intent, and its RGB colours separate
|
||||
/// through it.
|
||||
/// which starts with the default working spaces, keeps its profiles. Its CMYK profile is the PDF/X
|
||||
/// output intent, whose DeviceCMYK colors are in it, and its RGB colours separate through it.
|
||||
#[test]
|
||||
fn colours_are_in_the_profiles_assigned_to_the_document() {
|
||||
let working = cms::active_settings().cmyk;
|
||||
@@ -635,13 +692,13 @@ fn colours_are_in_the_profiles_assigned_to_the_document() {
|
||||
let r = standard_pdf(&d, json!({"standard": "pdfX4"}));
|
||||
assert!(!r.warnings.iter().any(|w| w.contains("profile")), "{:?}", r.warnings);
|
||||
let own = cms::icc_bytes(DEVICE_CMYK).unwrap();
|
||||
assert!(icc_streams(&r.bytes) == [own.to_vec()], "tagged with the document's CMYK profile, not the working one");
|
||||
assert!(icc_streams(&r.bytes) == [own.to_vec()], "the document's CMYK profile, not the working one");
|
||||
output_intent(&r.bytes, None, |oi| assert_eq!(oi.get::<Stream<'_>>(b"DestOutputProfile").unwrap().decoded().unwrap().as_ref(), &*own));
|
||||
let c = colours(&r.bytes);
|
||||
assert!(c[0].0 == "scn" && close(&c[0].1, &[0.1, 0.2, 0.3, 0.4]), "CMYK keeps its numbers: {c:?}");
|
||||
assert!(c[0].0 == "k" && close(&c[0].1, &[0.1, 0.2, 0.3, 0.4]), "CMYK keeps its numbers: {c:?}");
|
||||
let separated = to_cmyk(DEVICE_CMYK).to_cmyk(&grey, intent);
|
||||
assert!(!close(&separated, &cms::active().to_cmyk(&grey, intent)), "the two profiles separate grey differently");
|
||||
assert!(c[1].0 == "scn" && close(&c[1].1, &separated), "RGB separated through the document's profile: {c:?} vs {separated:?}");
|
||||
assert!(c[1].0 == "k" && close(&c[1].1, &separated), "RGB separated through the document's profile: {c:?} vs {separated:?}");
|
||||
// A profile that isn't available leaves the working space, with a warning.
|
||||
d.color_profiles.cmyk = Some("No Such Press".into());
|
||||
let r = standard_pdf(&d, json!({"standard": "pdfX4"}));
|
||||
|
||||
@@ -711,6 +711,13 @@ fn output(ui: &mut egui::Ui, d: &mut Dialog) {
|
||||
});
|
||||
if standard.cmyk_only() {
|
||||
note(ui, tl!("PDF/X-1a files are CMYK: every colour is converted to the destination (blank: the output intent's CMYK profile), untagged."));
|
||||
} else if standard.is_pdfx() {
|
||||
note(
|
||||
ui,
|
||||
tl!(
|
||||
"Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK."
|
||||
),
|
||||
);
|
||||
} else if standard != Standard::None {
|
||||
note(ui, tl!("Files of this standard tag their colours with ICC profiles."));
|
||||
}
|
||||
|
||||
@@ -1208,6 +1208,7 @@ font-technology Variable Променливи
|
||||
Files Файлове
|
||||
Files of a PDF standard can't be password-protected. Файлове от PDF стандарт не могат да бъдат защитени с парола.
|
||||
Files of this standard tag their colours with ICC profiles. Файловете от този стандарт етикетират цветовете си с ICC профили.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Файловете от този стандарт етикетират цветовете си с ICC профили, с изключение на CMYK цветовете в профила на предназначението на изхода, които се записват като DeviceCMYK.
|
||||
Fill Запълване
|
||||
Fill & Stroke Запълване и щрих
|
||||
Fill (X), double-click for the Color Picker Запълване (X), щракнете двукратно за избор на цвят
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3087,6 +3087,7 @@ antiAlias Sharp Oštro
|
||||
Every option matches {base}. Sve opcije odgovaraju {base}.
|
||||
Files of a PDF standard can't be password-protected. Datoteke PDF standarda ne mogu se zaštititi lozinkom.
|
||||
Files of this standard tag their colours with ICC profiles. Datoteke ovog standarda označavaju svoje boje ICC profilima.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Datoteke ovog standarda označavaju svoje boje ICC profilima, osim CMYK boja u profilu izlazne namjene, koje se zapisuju kao DeviceCMYK.
|
||||
Flattener preset: Predložak spljoštavanja:
|
||||
General › Thumbnails Općenito › Sličice
|
||||
Grayscale images Slike u nijansama sive
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -1706,6 +1706,7 @@ digits Malayalam Malaiàlam
|
||||
Files Fitxers
|
||||
Files of a PDF standard can't be password-protected. Els fitxers d’un estàndard PDF no es poden protegir amb contrasenya.
|
||||
Files of this standard tag their colours with ICC profiles. Els fitxers d’aquest estàndard etiqueten els colors amb perfils ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Els fitxers d’aquest estàndard etiqueten els colors amb perfils ICC, excepte els colors CMYK del perfil d’intenció de sortida, que s’escriuen com a DeviceCMYK.
|
||||
Fill Farciment
|
||||
Fill & Stroke Farciment i traç
|
||||
Fill (X), double-click for the Color Picker Farciment (X), fes doble clic per al selector de color
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3171,6 +3171,7 @@ antiAlias Sharp Ostré
|
||||
Every option matches {base}. Všechny možnosti odpovídají: {base}.
|
||||
Files of a PDF standard can't be password-protected. Soubory podle standardu PDF nelze chránit heslem.
|
||||
Files of this standard tag their colours with ICC profiles. Soubory tohoto standardu označují své barvy profily ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Soubory tohoto standardu označují své barvy profily ICC, kromě barev CMYK v profilu výstupního záměru, které se zapisují jako DeviceCMYK.
|
||||
Flattener preset: Přednastavení sloučení:
|
||||
General › Thumbnails Obecné › Miniatury
|
||||
Grayscale images Obrazy ve stupních šedi
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5644,6 +5644,7 @@ antiAlias Sharp Skarp
|
||||
Every option matches {base}. Alle indstillinger matcher {base}.
|
||||
Files of a PDF standard can't be password-protected. Filer med en PDF-standard kan ikke beskyttes med adgangskode.
|
||||
Files of this standard tag their colours with ICC profiles. Filer med denne standard mærker deres farver med ICC-profiler.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Filer med denne standard mærker deres farver med ICC-profiler, undtagen CMYK-farver i outputintentens profil, som skrives som DeviceCMYK.
|
||||
Flattener preset: Forudindstilling til fladgøring:
|
||||
General › Thumbnails Generelt › Miniaturer
|
||||
Grayscale images Gråtonebilleder
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1231,6 +1231,7 @@ font-technology Variable Variabel
|
||||
Files Dateien
|
||||
Files of a PDF standard can't be password-protected. Dateien eines PDF-Standards können nicht mit einem Kennwort geschützt werden.
|
||||
Files of this standard tag their colours with ICC profiles. Dateien dieses Standards kennzeichnen ihre Farben mit ICC-Profilen.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Dateien dieses Standards kennzeichnen ihre Farben mit ICC-Profilen, außer CMYK-Farben im Profil der Ausgabemethode, die als DeviceCMYK geschrieben werden.
|
||||
Fill Fläche
|
||||
Fill & Stroke Fläche und Kontur
|
||||
Fill (X), double-click for the Color Picker Fläche (X), Doppelklick öffnet den Farbwähler
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1193,6 +1193,7 @@ font-technology Variable Μεταβλητές
|
||||
Files Αρχεία
|
||||
Files of a PDF standard can't be password-protected. Τα αρχεία αυτού του προτύπου PDF δεν μπορούν να προστατεύονται με κωδικό.
|
||||
Files of this standard tag their colours with ICC profiles. Τα αρχεία αυτού του προτύπου χαρακτηρίζουν τα χρώματά τους με προφίλ ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Τα αρχεία αυτού του προτύπου χαρακτηρίζουν τα χρώματά τους με προφίλ ICC, εκτός από τα χρώματα CMYK στο προφίλ προορισμού εξόδου, τα οποία γράφονται ως DeviceCMYK.
|
||||
Fill Γέμισμα
|
||||
Fill & Stroke Γέμισμα και περίγραμμα
|
||||
Fill (X), double-click for the Color Picker Γέμισμα (X), διπλό κλικ για τον επιλογέα χρώματος
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1256,6 +1256,7 @@ font-technology Variable Variables
|
||||
Files Archivos
|
||||
Files of a PDF standard can't be password-protected. Los archivos de un estándar PDF no se pueden proteger con contraseña.
|
||||
Files of this standard tag their colours with ICC profiles. Los archivos de este estándar etiquetan sus colores con perfiles ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Los archivos de este estándar etiquetan sus colores con perfiles ICC, excepto los colores CMYK en el perfil de propósito de salida, que se escriben como DeviceCMYK.
|
||||
Fill Relleno
|
||||
Fill & Stroke Relleno y trazo
|
||||
Fill (X), double-click for the Color Picker Relleno (X), doble clic para el selector de color
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3115,6 +3115,7 @@ antiAlias Sharp Terävä
|
||||
Every option matches {base}. Kaikki asetukset vastaavat kohdetta {base}.
|
||||
Files of a PDF standard can't be password-protected. PDF-standardin mukaisia tiedostoja ei voi suojata salasanalla.
|
||||
Files of this standard tag their colours with ICC profiles. Tämän standardin tiedostot merkitsevät värinsä ICC-profiileilla.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Tämän standardin tiedostot merkitsevät värinsä ICC-profiileilla, paitsi tulostustavoitteen profiilin CMYK-värit, jotka kirjoitetaan DeviceCMYK-muodossa.
|
||||
Flattener preset: Litistyksen esiasetus:
|
||||
General › Thumbnails Yleiset › Pikkukuvat
|
||||
Grayscale images Harmaasävykuvat
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -1247,6 +1247,7 @@ font-technology Variable Variables
|
||||
Files Fichiers
|
||||
Files of a PDF standard can't be password-protected. Les fichiers conformes à une norme PDF ne peuvent pas être protégés par mot de passe.
|
||||
Files of this standard tag their colours with ICC profiles. Les fichiers conformes à cette norme balisent leurs couleurs avec des profils ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Les fichiers conformes à cette norme balisent leurs couleurs avec des profils ICC, sauf les couleurs CMJN du profil du mode de sortie, qui sont écrites en DeviceCMYK.
|
||||
Fill Fond
|
||||
Fill & Stroke Fond et contour
|
||||
Fill (X), double-click for the Color Picker Fond (X), double-cliquez pour ouvrir le Sélecteur de couleurs
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1378,6 +1378,7 @@
|
||||
Files ફાઇલો
|
||||
Files of a PDF standard can't be password-protected. PDF સ્ટાન્ડર્ડની ફાઇલો પાસવર્ડ-સુરક્ષિત કરી શકાતી નથી.
|
||||
Files of this standard tag their colours with ICC profiles. આ સ્ટાન્ડર્ડની ફાઇલો તેમના રંગોને ICC પ્રોફાઇલ્સ સાથે ટૅગ કરે છે.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. આ સ્ટાન્ડર્ડની ફાઇલો તેમના રંગોને ICC પ્રોફાઇલ્સ સાથે ટૅગ કરે છે, આઉટપુટ ઇન્ટેન્ટ પ્રોફાઇલમાંના CMYK રંગો સિવાય, જે DeviceCMYK તરીકે લખાય છે.
|
||||
Fill ભરો
|
||||
Fill & Stroke ભરો અને સ્ટ્રોક
|
||||
Fill (X), double-click for the Color Picker ભરો (X), કલર પીકર માટે ડબલ-ક્લિક કરો
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -1898,6 +1898,7 @@ antiAlias Sharp शार्प
|
||||
Files फ़ाइलें
|
||||
Files of a PDF standard can't be password-protected. एक PDF मानक की फ़ाइलें पासवर्ड की रक्षा नहीं की जा सकती है।
|
||||
Files of this standard tag their colours with ICC profiles. इस मानक की फ़ाइलें ICC प्रोफ़ाइल के साथ उनके रंगों को टैग करती हैं।
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. इस मानक की फ़ाइलें ICC प्रोफ़ाइल के साथ उनके रंगों को टैग करती हैं, आउटपुट इंटेंट प्रोफ़ाइल के CMYK रंगों को छोड़कर, जो DeviceCMYK के रूप में लिखे जाते हैं।
|
||||
Fill फ़िल
|
||||
Fill (X), double-click for the Color Picker फ़िल (X), कलर पिकर के लिए डबल-क्लिक करें
|
||||
Fill & Stroke भरें और स्ट्रोक करें
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1565,6 +1565,7 @@ digits Malayalam Malajálam
|
||||
Files Fájlok
|
||||
Files of a PDF standard can't be password-protected. A PDF-szabványnak megfelelő fájlok nem védhetők jelszóval.
|
||||
Files of this standard tag their colours with ICC profiles. Ennek a szabványnak a fájljai ICC-profillal jelölik a színeiket.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Ennek a szabványnak a fájljai ICC-profillal jelölik a színeiket, kivéve a kimeneti cél profiljában lévő CMYK-színeket, amelyek DeviceCMYK-ként íródnak.
|
||||
Fill Kitöltés
|
||||
Fill & Stroke Kitöltés és körvonal
|
||||
Fill (X), double-click for the Color Picker Kitöltés (X), dupla kattintás: Színválasztó
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2896,6 +2896,7 @@ antiAlias Sharp Tajam
|
||||
Every option matches {base}. Setiap opsi cocok dengan {base}.
|
||||
Files of a PDF standard can't be password-protected. File standar PDF tidak dapat dilindungi kata sandi.
|
||||
Files of this standard tag their colours with ICC profiles. File standar ini menandai warnanya dengan profil ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. File standar ini menandai warnanya dengan profil ICC, kecuali warna CMYK dalam profil output intent, yang ditulis sebagai DeviceCMYK.
|
||||
Flattener preset: Preset flattener:
|
||||
General › Thumbnails Umum › Miniatur
|
||||
Grayscale images Gambar skala abu-abu
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2511 and column 5.
|
@@ -1265,6 +1265,7 @@ font-technology Variable Variabili
|
||||
Files File
|
||||
Files of a PDF standard can't be password-protected. I file conformi a uno standard PDF non possono essere protetti da password.
|
||||
Files of this standard tag their colours with ICC profiles. I file conformi a questo standard contrassegnano i colori con profili ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. I file conformi a questo standard contrassegnano i colori con profili ICC, tranne i colori CMYK nel profilo dell'intento di output, che vengono scritti come DeviceCMYK.
|
||||
Fill Riempimento
|
||||
Fill & Stroke Riempimento e traccia
|
||||
Fill (X), double-click for the Color Picker Riempimento (X), fai doppio clic per il selettore colore
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1829,6 +1829,7 @@ antiAlias Sharp シャープ
|
||||
Files ファイル
|
||||
Files of a PDF standard can't be password-protected. PDF 規格のファイルにはパスワードを設定できません。
|
||||
Files of this standard tag their colours with ICC profiles. この規格のファイルでは、カラーに ICC プロファイルが付けられます。
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. この規格のファイルでは、カラーに ICC プロファイルが付けられます。ただし、出力インテントのプロファイルの CMYK カラーは DeviceCMYK として書き出されます。
|
||||
Fill 塗り
|
||||
Fill New Type Objects With Placeholder Text 新規テキストオブジェクトをダミーテキストで埋める
|
||||
Start Lists From Typed Markers 入力した記号からリストを開始
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5040,6 +5040,7 @@ antiAlias Sharp მკვეთრი
|
||||
Every option matches {base}. ყველა პარამეტრი ემთხვევა {base}-ს.
|
||||
Files of a PDF standard can't be password-protected. PDF სტანდარტის ფაილების პაროლით დაცვა შეუძლებელია.
|
||||
Files of this standard tag their colours with ICC profiles. ამ სტანდარტის ფაილები ფერებს ICC პროფილებით აღნიშნავს.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. ამ სტანდარტის ფაილები ფერებს ICC პროფილებით აღნიშნავს, გარდა გამოტანის მიზნის პროფილის CMYK ფერებისა, რომლებიც DeviceCMYK-ად იწერება.
|
||||
Flattener preset: გაბრტყელების პრესეტი:
|
||||
General › Thumbnails ზოგადი › ესკიზები
|
||||
Grayscale images ნაცრისფერი გამოსახულებები
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1819,6 +1819,7 @@ antiAlias Sharp 날카롭게
|
||||
Files 파일
|
||||
Files of a PDF standard can't be password-protected. PDF 표준 파일은 암호로 보호할 수 없습니다.
|
||||
Files of this standard tag their colours with ICC profiles. 이 표준의 파일은 ICC 프로파일로 색상을 태그합니다.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. 이 표준의 파일은 ICC 프로파일로 색상을 태그합니다. 단, 출력 의도 프로파일의 CMYK 색상은 DeviceCMYK로 기록됩니다.
|
||||
Fill 칠
|
||||
Fill New Type Objects With Placeholder Text 새 문자 개체를 대체 텍스트로 채우기
|
||||
Start Lists From Typed Markers 입력한 기호로 목록 시작
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3518,6 +3518,7 @@ antiAlias Sharp Scherp
|
||||
Every option matches {base}. Elke optie komt overeen met {base}.
|
||||
Files of a PDF standard can't be password-protected. Bestanden volgens een PDF-standaard kunnen niet met een wachtwoord worden beveiligd.
|
||||
Files of this standard tag their colours with ICC profiles. Bestanden volgens deze standaard voorzien hun kleuren van ICC-profielen.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Bestanden volgens deze standaard voorzien hun kleuren van ICC-profielen, behalve CMYK-kleuren in het profiel voor uitvoerintentie, die als DeviceCMYK worden geschreven.
|
||||
Flattener preset: Voorinstelling voor afvlakking:
|
||||
General › Thumbnails Algemeen › Miniaturen
|
||||
Grayscale images Grijswaardenafbeeldingen
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3061,6 +3061,7 @@ antiAlias Sharp Ostre
|
||||
Every option matches {base}. Wszystkie opcje są zgodne z {base}.
|
||||
Files of a PDF standard can't be password-protected. Plików standardu PDF nie można chronić hasłem.
|
||||
Files of this standard tag their colours with ICC profiles. Pliki tego standardu oznaczają kolory profilami ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Pliki tego standardu oznaczają kolory profilami ICC, z wyjątkiem kolorów CMYK w profilu docelowych warunków wyjściowych, które są zapisywane jako DeviceCMYK.
|
||||
Flattener preset: Ustawienie spłaszczania:
|
||||
General › Thumbnails Ogólne › Miniatury
|
||||
Grayscale images Obrazy w skali szarości
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1141,6 +1141,7 @@ antiAlias Sharp Nítido
|
||||
Files Arquivos
|
||||
Files of a PDF standard can't be password-protected. Arquivos de um padrão PDF não podem ser protegidos por senha.
|
||||
Files of this standard tag their colours with ICC profiles. Os arquivos deste padrão etiquetam suas cores com perfis ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Os arquivos deste padrão etiquetam suas cores com perfis ICC, exceto as cores CMYK no perfil de intenção de saída, que são gravadas como DeviceCMYK.
|
||||
Fill Preenchimento
|
||||
Fill & Stroke Preenchimento e Traçado
|
||||
Fill Color Cor de Preenchimento
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1254,6 +1254,7 @@ font-technology Variable Вариативные
|
||||
Files Файлы
|
||||
Files of a PDF standard can't be password-protected. Файлы стандарта PDF не могут быть защищены паролем.
|
||||
Files of this standard tag their colours with ICC profiles. Файлы этого стандарта помечают свои цвета профилями ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Файлы этого стандарта помечают свои цвета профилями ICC, кроме цветов CMYK в профиле назначения вывода, которые записываются как DeviceCMYK.
|
||||
Fill Заливка
|
||||
Fill & Stroke Заливка и обводка
|
||||
Fill (X), double-click for the Color Picker Заливка (X), дважды щёлкните для палитры цветов
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1226,6 +1226,7 @@ font-technology Variable Variabla
|
||||
Files Filer
|
||||
Files of a PDF standard can't be password-protected. Filer enligt en PDF-standard kan inte lösenordsskyddas.
|
||||
Files of this standard tag their colours with ICC profiles. Filer enligt den här standarden märker sina färger med ICC-profiler.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Filer enligt den här standarden märker sina färger med ICC-profiler, utom CMYK-färger i profilen för utgångsavsikt, som skrivs som DeviceCMYK.
|
||||
Fill Fyllning
|
||||
Fill & Stroke Fyllning och kontur
|
||||
Fill (X), double-click for the Color Picker Fyllning (X), dubbelklicka för färgväljaren
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1217,6 +1217,7 @@ font-technology Variable Değişken
|
||||
Files Dosyalar
|
||||
Files of a PDF standard can't be password-protected. PDF standardının dosyaları parola korumalı olamaz.
|
||||
Files of this standard tag their colours with ICC profiles. Bu standardın dosyaları renklerini ICC profilleriyle etiketler.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Bu standardın dosyaları renklerini ICC profilleriyle etiketler, ancak çıkış amacı profilindeki CMYK renkleri DeviceCMYK olarak yazılır.
|
||||
Fill Dolgu
|
||||
Fill & Stroke Doldur ve Konturla
|
||||
Fill (X), double-click for the Color Picker Doldur (X), Renk Seçici için çift tıklayın
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1259,6 +1259,7 @@ font-technology Variable Варіативні
|
||||
Files Файли
|
||||
Files of a PDF standard can't be password-protected. Файли стандарту PDF не можуть бути захищені паролем.
|
||||
Files of this standard tag their colours with ICC profiles. Файли цього стандарту позначають свої кольори профілями ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Файли цього стандарту позначають свої кольори профілями ICC, крім кольорів CMYK у профілі призначення виведення, які записуються як DeviceCMYK.
|
||||
Fill Заливка
|
||||
Fill & Stroke Заливка та обведення
|
||||
Fill (X), double-click for the Color Picker Заливка (X), двічі клацніть на палітрі кольорів
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1451,6 +1451,7 @@ digits Malayalam Malayalam
|
||||
Files Tệp
|
||||
Files of a PDF standard can't be password-protected. Tệp theo tiêu chuẩn PDF không thể bảo vệ bằng mật khẩu.
|
||||
Files of this standard tag their colours with ICC profiles. Tệp theo tiêu chuẩn này gắn thẻ màu bằng hồ sơ ICC.
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. Tệp theo tiêu chuẩn này gắn thẻ màu bằng hồ sơ ICC, trừ các màu CMYK trong hồ sơ mục đích đầu ra, được ghi dưới dạng DeviceCMYK.
|
||||
Fill Tô
|
||||
Fill & Stroke Tô & Nét
|
||||
Fill (X), double-click for the Color Picker Tô (X), bấm đúp để mở Bộ chọn màu
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 205 and column 5.
|
@@ -1195,6 +1195,7 @@ antiAlias Sharp 锐利
|
||||
Files 文件
|
||||
Files of a PDF standard can't be password-protected. PDF 标准的文件无法设置密码保护。
|
||||
Files of this standard tag their colours with ICC profiles. 此标准的文件会以 ICC 配置文件标记颜色。
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. 此标准的文件会以 ICC 配置文件标记颜色,但输出意图配置文件中的 CMYK 颜色会写为 DeviceCMYK。
|
||||
Fill 填色
|
||||
Fill & Stroke 填色和描边
|
||||
Fill (X), double-click for the Color Picker 填色 (X),双击打开拾色器
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1229,6 +1229,7 @@ font-technology Variable 可變
|
||||
Files 檔案
|
||||
Files of a PDF standard can't be password-protected. PDF 標準的檔案無法設定密碼保護。
|
||||
Files of this standard tag their colours with ICC profiles. 此標準的檔案會以 ICC 描述檔標記顏色。
|
||||
Files of this standard tag their colors with ICC profiles, except CMYK colors in the output intent's profile, which are written as DeviceCMYK. 此標準的檔案會以 ICC 描述檔標記顏色,但輸出目的描述檔中的 CMYK 顏色會寫為 DeviceCMYK。
|
||||
Fill 填色
|
||||
Fill & Stroke 填色與筆畫
|
||||
Fill (X), double-click for the Color Picker 填色 (X),按兩下開啟檢色器
|
||||
|
||||
|
Can't render this file because it is too large.
|
+13
-7
@@ -1337,7 +1337,7 @@ the image at, and all paint that one image.
|
||||
A 16-bit PNG that is not resampled, recompressed or converted keeps its 16 bits a sample in PDF 1.5 and later files,
|
||||
and is written at 8 bits in PDF 1.3 and 1.4 files.
|
||||
CMYK images stay CMYK (DeviceCMYK, or ICC-based with the CMYK profile when colours are tagged, as in PDF/X-3 and
|
||||
PDF/X-4): a CMYK JPEG neither resampled nor recompressed is written unchanged, and the others' ink amounts are
|
||||
PDF/X-4, where an image in the output intent's profile is DeviceCMYK): a CMYK JPEG neither resampled nor recompressed is written unchanged, and the others' ink amounts are
|
||||
resampled and compressed again (CMYK JPEG or ZIP). `output.conversion` converts them like CMYK colours: `destination`
|
||||
to another CMYK profile or to RGB, `preserveNumbers` (and PDF/X-1a) keeps their numbers in a CMYK destination.
|
||||
`document.pdfSettings` lists the options that differ from the preset and the warnings without writing a file.
|
||||
@@ -6259,13 +6259,18 @@ The destination is any profile `edit.colorSettings` lists (default: the document
|
||||
for its colour mode). `profiles` (`all`, `destination`, or `taggedSource` for a document assigned profiles with
|
||||
`edit.assignProfile`) writes colours in ICC-based spaces with their profiles embedded: CMYK with the destination's or
|
||||
the document's CMYK profile, RGB as sRGB, grey with the sRGB tone curve (PDF/A, PDF/X-3 and PDF/X-4 files are
|
||||
always tagged, whatever `profiles` says). A CMYK image that keeps its numbers carries the CMYK profile it embeds
|
||||
with `all` and `taggedSource`, and in PDF/A, PDF/X-3 and PDF/X-4 unless `profiles` is `destination`; PDF/X-1a
|
||||
always tagged, whatever `profiles` says). In PDF/X-3 and PDF/X-4 files, CMYK colors whose profile is the profile of a
|
||||
CMYK output intent are written as DeviceCMYK, and the profile is embedded once, as the output intent's. With `none` and a CMYK output intent, PDF/X-3 and PDF/X-4 files write every CMYK color as DeviceCMYK
|
||||
(unless colors are converted to a CMYK `destination` of another profile, which then tags them), and RGB and gray
|
||||
colors stay tagged. A CMYK image that keeps its numbers carries the CMYK profile it embeds
|
||||
with `all` and `taggedSource`, and in PDF/A, PDF/X-3 and PDF/X-4 unless `profiles` is `destination`, but not when
|
||||
CMYK colors are DeviceCMYK and either its profile is the output intent's or `profiles` is `none` (a CMYK JPEG
|
||||
then loses its `ICC_PROFILE` segments); PDF/X-1a
|
||||
images are always untagged CMYK. Left unset (the default; `"default"` unsets it over a preset, while `null` keeps the
|
||||
preset's value), `profiles` writes device colours and gray and RGB images keep the profiles they carry (not in
|
||||
PDF/X-1a). Set to `none`, it also writes every image without the profile it carries, and a JPEG kept as it is without
|
||||
its `ICC_PROFILE` segments, its other segments and compressed samples unchanged; PDF/A, PDF/X-3 and PDF/X-4 files keep
|
||||
the profiles they tag images with. The Save PDF dialog lists the unset value as Default. `outputIntent` embeds a profile as the file's
|
||||
the profiles they tag images with, except CMYK images when CMYK colors are DeviceCMYK. The Save PDF dialog lists the unset value as Default. `outputIntent` embeds a profile as the file's
|
||||
`/GTS_PDFX` output intent with `outputCondition`, `outputConditionId` and `registry`, and `trapped` sets `/Trapped`
|
||||
(PDF/A files keep their own output intent). Type is written as selectable, searchable text in embedded subset fonts
|
||||
with a ToUnicode map (fonts whose licence forbids embedding stay outlines, with a warning); `advanced: {outlineText:
|
||||
@@ -9399,9 +9404,10 @@ layers are refused.
|
||||
- **pdfX1a** (PDF/X-1a:2001, written as PDF 1.3): CMYK, grey and spot colours only. Every colour and image is converted
|
||||
to `output.destination` (blank: the output intent's CMYK profile, else the working CMYK profile), untagged; an RGB
|
||||
destination or output intent is refused. Transparency is flattened before writing.
|
||||
- **pdfX3** (PDF/X-3:2002, written as PDF 1.3): colours are tagged with ICC profiles; transparency is flattened.
|
||||
- **pdfX4** (PDF/X-4:2010, PDF 1.6 at most): transparency and layers are kept, colours are tagged, and the XMP metadata
|
||||
names the standard and has an `xmp:MetadataDate` equal to its `xmp:ModifyDate`.
|
||||
- **pdfX3** (PDF/X-3:2002, written as PDF 1.3): colours are tagged with ICC profiles, except CMYK colors in the CMYK
|
||||
output intent's profile, which are DeviceCMYK (see `output.profiles`); transparency is flattened.
|
||||
- **pdfX4** (PDF/X-4:2010, PDF 1.6 at most): transparency and layers are kept, colours are tagged as in pdfX3, and the
|
||||
XMP metadata names the standard and has an `xmp:MetadataDate` equal to its `xmp:ModifyDate`.
|
||||
|
||||
Flattening uses `flattenerPreset` (default High Resolution, see PDF 1.3 above) on a copy (the document is untouched; a
|
||||
warning says so), and images with see-through pixels count as transparency. The written file is checked against
|
||||
|
||||
@@ -1914,8 +1914,8 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- Save as Template writes a PDF-compatible `.ait` as well as a `.vctemplate`, which stays the default: the save panel and the web build's Save as Template dialog list both, and New from Template opens the `.ait` as an untitled document with its layers and art (`file.saveAsTemplate {format: "ait"}`, or a path ending in `.ait`).
|
||||
Save as Template always writes a file named with its template type's extension: `file.saveAsTemplate` saves a path ending in another format's extension (`card.png`) as `card.vctemplate` (or `card.ait`), the desktop save panel does the same with a Save As format's extension typed in it (`card.pdf` is saved as `card.vctemplate`), and `file.saveAs` and `document.save` refuse `ait` with an error that names `file.saveAsTemplate`. A `.ait` is PDF-compatible only: `aiVersion: "7"` is an error for it, and the web build's dialog shows no Version row for it.
|
||||
Exports refuse a `.ait` with an error that names `file.saveAsTemplate`, and `vectorcraft-cli convert in.pdf out.ait` and `run --export out.ait` write the template as `file.saveAsTemplate` does.
|
||||
- SVG/SVGZ in and out with SVG Options, Preserve Editing, symbols, filters, rich text and physical units (SVG type under a transform or `viewBox` scale opens at the size it draws at, the scale moved into its size, leading, baseline shift and strokes, a stretch, skew or rotation kept as its transform: #396; a top-level group with a clip path, such as a clipped Inkscape layer, opens as a layer with a clipping mask, its name kept: #420; hidden objects written hidden on Save and `convert`, and `data-*` attributes kept as the objects' own data: #522; top-level groups open as layers named from `data-name`, else the id, also when one more group (a transform on all the art, a `<switch>`) wraps them, hidden ones hidden, and a file whose art sits loose under a root `<svg>` with an id (or `data-name`), as one-layer exports write it, opens with its one layer named from it; nested groups stay groups, except the sublayers VectorCraft writes, marked `data-vc-layer`, and Inkscape sublayers, which open as sublayers in their layer's colour: #372); PDF and PDF-compatible `.ai` in and out (layers, with hidden ones kept hidden with their art and nested ones as sublayers, on pages of up to 64 million operators, art whose layer can't be told going to a hidden, non-printing layer rather than showing or printing: #419; strokes kept live, a fill and a stroke of one outline as one object; a type object's stroke written as each glyph's outline stroked back on the type, so it stays one editable object; lines wrapped in a frame (each wrapped line ending in a space, one left edge, leading and font) back as one area type object, left aligned or justified with its paragraph spacing, where laying it out breaks the lines where the file does; glyphs set apart by gaps wider than a space (a barcode's digit groups) keeping their places; layers stacked as the pages mark them even when one first paints on a later page, art ending a layer's marked content or a clip closing in a later layer kept in its own layer, and layers with no art kept empty: #508; art reaching past a plain PDF's page clipped to its crop box, as PDF viewers show it, each such object in a clip group of its own (a PDF-compatible `.ai` opens whole: #675); a `.ai` on its trim boxes with the bleed boxes round them as the document's bleed, as Crop To › Trim opens a PDF (#1266); masks, editable text with type set along a curve coming back as type on a path, each artboard's art on its own page only, an `.ai`'s white page under its layers left out rather than coming in as art, spot colours, presets, security, marks and bleed, ICC output intents, raster effects, subset fonts, PDF/X, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3). CMYK images keep their ink amounts from PDF import (and from placed CMYK TIFFs) to PDF export: a CMYK JPEG passes through unchanged, others stay CMYK (DeviceCMYK, or ICC-based CMYK in PDF/X-3/X-4) unless the Output settings convert them; the canvas shows them through the working CMYK profile (#320). Overprint is kept from PDF import (opened, the PDF part of an `.ai`, placed) to PDF export: the graphics state's `/OP` and `/op` become the overprint of fills, strokes and type, so a spot colour over a process colour still overprints; a page whose overprint can't be read for certain knocks out with a note, as does `/OPM 0` being read as nonzero overprint (#1388; hand-written fixtures, `pdf/src/tests/import_overprint.rs`). A masked CMYK image (`/SMask`, `/Mask` or a colour key) keeps its inks too, its alpha coming in as a greyscale opacity mask.
|
||||
- SVG/SVGZ in and out with SVG Options, Preserve Editing, symbols, filters, rich text and physical units (SVG type under a transform or `viewBox` scale opens at the size it draws at, the scale moved into its size, leading, baseline shift and strokes, a stretch, skew or rotation kept as its transform: #396; a top-level group with a clip path, such as a clipped Inkscape layer, opens as a layer with a clipping mask, its name kept: #420; hidden objects written hidden on Save and `convert`, and `data-*` attributes kept as the objects' own data: #522; top-level groups open as layers named from `data-name`, else the id, also when one more group (a transform on all the art, a `<switch>`) wraps them, hidden ones hidden, and a file whose art sits loose under a root `<svg>` with an id (or `data-name`), as one-layer exports write it, opens with its one layer named from it; nested groups stay groups, except the sublayers VectorCraft writes, marked `data-vc-layer`, and Inkscape sublayers, which open as sublayers in their layer's colour: #372); PDF and PDF-compatible `.ai` in and out (layers, with hidden ones kept hidden with their art and nested ones as sublayers, on pages of up to 64 million operators, art whose layer can't be told going to a hidden, non-printing layer rather than showing or printing: #419; strokes kept live, a fill and a stroke of one outline as one object; a type object's stroke written as each glyph's outline stroked back on the type, so it stays one editable object; lines wrapped in a frame (each wrapped line ending in a space, one left edge, leading and font) back as one area type object, left aligned or justified with its paragraph spacing, where laying it out breaks the lines where the file does; glyphs set apart by gaps wider than a space (a barcode's digit groups) keeping their places; layers stacked as the pages mark them even when one first paints on a later page, art ending a layer's marked content or a clip closing in a later layer kept in its own layer, and layers with no art kept empty: #508; art reaching past a plain PDF's page clipped to its crop box, as PDF viewers show it, each such object in a clip group of its own (a PDF-compatible `.ai` opens whole: #675); a `.ai` on its trim boxes with the bleed boxes round them as the document's bleed, as Crop To › Trim opens a PDF (#1266); masks, editable text with type set along a curve coming back as type on a path, each artboard's art on its own page only, an `.ai`'s white page under its layers left out rather than coming in as art, spot colours, presets, security, marks and bleed, ICC output intents, raster effects, subset fonts, PDF/X, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3). CMYK images keep their ink amounts from PDF import (and from placed CMYK TIFFs and the images in an `.ai` or EPS file's editing data, an alpha channel coming in as a grayscale opacity mask) to PDF export: a CMYK JPEG passes through unchanged, others stay CMYK (DeviceCMYK, or ICC-based CMYK in PDF/X-3/X-4) unless the Output settings convert them; the canvas shows them through the working CMYK profile (#320). Overprint is kept from PDF import (opened, the PDF part of an `.ai`, placed) to PDF export: the graphics state's `/OP` and `/op` become the overprint of fills, strokes and type, so a spot colour over a process colour still overprints; a page whose overprint can't be read for certain knocks out with a note, as does `/OPM 0` being read as nonzero overprint (#1388; hand-written fixtures, `pdf/src/tests/import_overprint.rs`). A masked CMYK image (`/SMask`, `/Mask` or a colour key) keeps its inks too, its alpha coming in as a greyscale opacity mask.
|
||||
- SVG/SVGZ in and out with SVG Options, Preserve Editing, symbols, filters, rich text and physical units (SVG type under a transform or `viewBox` scale opens at the size it draws at, the scale moved into its size, leading, baseline shift and strokes, a stretch, skew or rotation kept as its transform: #396; a top-level group with a clip path, such as a clipped Inkscape layer, opens as a layer with a clipping mask, its name kept: #420; hidden objects written hidden on Save and `convert`, and `data-*` attributes kept as the objects' own data: #522; top-level groups open as layers named from `data-name`, else the id, also when one more group (a transform on all the art, a `<switch>`) wraps them, hidden ones hidden, and a file whose art sits loose under a root `<svg>` with an id (or `data-name`), as one-layer exports write it, opens with its one layer named from it; nested groups stay groups, except the sublayers VectorCraft writes, marked `data-vc-layer`, and Inkscape sublayers, which open as sublayers in their layer's colour: #372); PDF and PDF-compatible `.ai` in and out (layers, with hidden ones kept hidden with their art and nested ones as sublayers, on pages of up to 64 million operators, art whose layer can't be told going to a hidden, non-printing layer rather than showing or printing: #419; strokes kept live, a fill and a stroke of one outline as one object; a type object's stroke written as each glyph's outline stroked back on the type, so it stays one editable object; lines wrapped in a frame (each wrapped line ending in a space, one left edge, leading and font) back as one area type object, left aligned or justified with its paragraph spacing, where laying it out breaks the lines where the file does; glyphs set apart by gaps wider than a space (a barcode's digit groups) keeping their places; layers stacked as the pages mark them even when one first paints on a later page, art ending a layer's marked content or a clip closing in a later layer kept in its own layer, and layers with no art kept empty: #508; art reaching past a plain PDF's page clipped to its crop box, as PDF viewers show it, each such object in a clip group of its own (a PDF-compatible `.ai` opens whole: #675); a `.ai` on its trim boxes with the bleed boxes round them as the document's bleed, as Crop To › Trim opens a PDF (#1266); masks, editable text with type set along a curve coming back as type on a path, each artboard's art on its own page only, an `.ai`'s white page under its layers left out rather than coming in as art, spot colours, presets, security, marks and bleed, ICC output intents, raster effects, subset fonts, PDF/X, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3). CMYK images keep their ink amounts from PDF import (and from placed CMYK TIFFs) to PDF export: a CMYK JPEG passes through unchanged, others stay CMYK (DeviceCMYK, or ICC-based CMYK in PDF/X-3/X-4 when not in the output intent's profile) unless the Output settings convert them; the canvas shows them through the working CMYK profile (#320). Overprint is kept from PDF import (opened, the PDF part of an `.ai`, placed) to PDF export: the graphics state's `/OP` and `/op` become the overprint of fills, strokes and type, so a spot colour over a process colour still overprints; a page whose overprint can't be read for certain knocks out with a note, as does `/OPM 0` being read as nonzero overprint (#1388; hand-written fixtures, `pdf/src/tests/import_overprint.rs`). A masked CMYK image (`/SMask`, `/Mask` or a colour key) keeps its inks too, its alpha coming in as a greyscale opacity mask.
|
||||
- SVG/SVGZ in and out with SVG Options, Preserve Editing, symbols, filters, rich text and physical units (SVG type under a transform or `viewBox` scale opens at the size it draws at, the scale moved into its size, leading, baseline shift and strokes, a stretch, skew or rotation kept as its transform: #396; a top-level group with a clip path, such as a clipped Inkscape layer, opens as a layer with a clipping mask, its name kept: #420; hidden objects written hidden on Save and `convert`, and `data-*` attributes kept as the objects' own data: #522; top-level groups open as layers named from `data-name`, else the id, also when one more group (a transform on all the art, a `<switch>`) wraps them, hidden ones hidden, and a file whose art sits loose under a root `<svg>` with an id (or `data-name`), as one-layer exports write it, opens with its one layer named from it; nested groups stay groups, except the sublayers VectorCraft writes, marked `data-vc-layer`, and Inkscape sublayers, which open as sublayers in their layer's colour: #372); PDF and PDF-compatible `.ai` in and out (layers, with hidden ones kept hidden with their art and nested ones as sublayers, on pages of up to 64 million operators, art whose layer can't be told going to a hidden, non-printing layer rather than showing or printing: #419; strokes kept live, a fill and a stroke of one outline as one object; a type object's stroke written as each glyph's outline stroked back on the type, so it stays one editable object; lines wrapped in a frame (each wrapped line ending in a space, one left edge, leading and font) back as one area type object, left aligned or justified with its paragraph spacing, where laying it out breaks the lines where the file does; glyphs set apart by gaps wider than a space (a barcode's digit groups) keeping their places; layers stacked as the pages mark them even when one first paints on a later page, art ending a layer's marked content or a clip closing in a later layer kept in its own layer, and layers with no art kept empty: #508; art reaching past a plain PDF's page clipped to its crop box, as PDF viewers show it, each such object in a clip group of its own (a PDF-compatible `.ai` opens whole: #675); a `.ai` on its trim boxes with the bleed boxes round them as the document's bleed, as Crop To › Trim opens a PDF (#1266); masks, editable text with type set along a curve coming back as type on a path, each artboard's art on its own page only, an `.ai`'s white page under its layers left out rather than coming in as art, spot colours, presets, security, marks and bleed, ICC output intents, raster effects, subset fonts, PDF/X, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3). CMYK images keep their ink amounts from PDF import (and from placed CMYK TIFFs and the images in an `.ai` or EPS file's editing data, an alpha channel coming in as a grayscale opacity mask) to PDF export: a CMYK JPEG passes through unchanged, others stay CMYK (DeviceCMYK, or ICC-based CMYK in PDF/X-3/X-4 when not in the output intent's profile) unless the Output settings convert them; the canvas shows them through the working CMYK profile (#320). Overprint is kept from PDF import (opened, the PDF part of an `.ai`, placed) to PDF export: the graphics state's `/OP` and `/op` become the overprint of fills, strokes and type, so a spot colour over a process colour still overprints; a page whose overprint can't be read for certain knocks out with a note, as does `/OPM 0` being read as nonzero overprint (#1388; hand-written fixtures, `pdf/src/tests/import_overprint.rs`). A masked CMYK image (`/SMask`, `/Mask` or a colour key) keeps its inks too, its alpha coming in as a greyscale opacity mask.
|
||||
In imported PDF type, a space glyph the file draws between two words also keeps the next word where the file has it when the gap beside the space is wide, as VectorCraft's own export draws a tracked space: the space gets tracking of its own, and the wrapped lines of a justified paragraph still come back as one area type object when the word gaps on each line are alike (part of #2384).
|
||||
Letter-spaced PDF type, whether set with character spacing (`Tc`) or glyph by glyph, keeps its word spaces and gains none between its letters: the spacing a line's letters share is taken off each gap before a gap reads as a space. That holds on a line that also shows where its words break, with spaces the file draws or gaps wider than the rest; evenly spaced glyphs alone, which could be words of one letter, keep every gap as a space, as do glyphs set more than half an em apart, such as figures in columns.
|
||||
A function-based PDF shading (type 1) whose colour changes along one axis only, as a browser writes a repeating linear gradient, comes in as a linear gradient over its domain, each hard colour change two stops at one offset; one whose colour changes in two directions comes in as its average colour, with a warning. Either paints only over the shading's domain. Both came in as a flat grey that wasn't in the file (#3621). Each such shading is read once per import, and all of them within one budget of 200,000 function evaluations, so a file filling thousands of paths with long functions still opens in about a second (it took minutes); past the budget they come in as their average colour, then grey, with a warning.
|
||||
@@ -2089,7 +2089,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- File › Revert also drops what was started for the content it discards: a file being read for Place, for the place cursor or dropped on the canvas, a bitmap being read for Paste, and a paste waiting at its Swatch Conflict dialog are not placed or pasted in the reverted document, and the status bar says the document was reverted. Edits made while a file is read, a Revert that fails or that a batch rolls back, and a Revert of another document leave the read to finish as before (`crates/ui-egui/src/placing/tests.rs`).
|
||||
- The pixels of a PNG, JPEG, GIF or WebP file that Place decodes to check them are kept in the image store the renderers share, so the canvas's first frame with the placed image draws them without decoding the file again on the UI thread: File › Place, a file dropped on the canvas, a click or drag of the place cursor, `file.place`, and Paste of such an image. A CMYK JPEG is still decoded when it is first drawn (`crates/ui-egui/src/placing.rs`, `crates/render/src/tests.rs`).
|
||||
- A photo whose EXIF orientation turns or flips it (a camera held upright or upside down) is placed and opened upright, as it was taken; the image is stored as it is seen (#4284). A quarter turn swaps the resolution's axes, so the image keeps its physical size. TIFFs read without the image decoder (grayscale with extra channels, CCITT Group 3, CMYK with one plane per ink) follow their Orientation tag too, and a turned CMYK JPEG or TIFF keeps its inks, at the 8 or 16 bits the file has, as a CMYK TIFF.
|
||||
- PDF export writes a CMYK image that keeps its numbers in an `ICCBased` color space holding, byte for byte, the CMYK profile the image carries (a CMYK TIFF's tag 34675, or a CMYK JPEG's `ICC_PROFILE` APP2 segments) when `output.profiles` is `all` or `taggedSource`, and in PDF/A-2b, PDF/X-3 and PDF/X-4 unless it is `destination` ([the help page](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/pdf-marks-bleeds-and-color-output-options.html)). This covers a CMYK JPEG embedded as it is, one the Compression settings resample or compress again, a TIFF written again, and an image written with its mask as its soft mask. With `none`, and in PDF/X-1a, the image is DeviceCMYK and a JPEG's own profile is left out, so PDF/X-1a export writes a CMYK JPEG that carries a profile. Pixels the Output settings convert are never tagged with the profile of their old numbers. A profile tags an image only when its size, signature, class, CMYK color space and tag table are well formed and it is at most 16 MiB (VectorCraft's own limit). Transparency in a tagged CMYK document blends in the document's CMYK profile; when the file holds no space of that profile it blends in DeviceCMYK, or keeps its RGB space in PDF/A, and never in an image's own profile (`crates/pdf/src/tests/cmykimages.rs`, `export::writer::tests`).
|
||||
- PDF export writes a CMYK image that keeps its numbers in an `ICCBased` color space holding, byte for byte, the CMYK profile the image carries (a CMYK TIFF's tag 34675, or a CMYK JPEG's `ICC_PROFILE` APP2 segments) when `output.profiles` is `all` or `taggedSource`, and in PDF/A-2b, PDF/X-3 and PDF/X-4 unless it is `destination`, except in PDF/X-3 and PDF/X-4 when that profile is the CMYK output intent's, or when `none` makes every CMYK color DeviceCMYK (#1954) ([the help page](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/pdf-marks-bleeds-and-color-output-options.html)). This covers a CMYK JPEG embedded as it is, one the Compression settings resample or compress again, a TIFF written again, and an image written with its mask as its soft mask. With `none`, and in PDF/X-1a, the image is DeviceCMYK and a JPEG's own profile is left out, so PDF/X-1a export writes a CMYK JPEG that carries a profile. Pixels the Output settings convert are never tagged with the profile of their old numbers. A profile tags an image only when its size, signature, class, CMYK color space and tag table are well formed and it is at most 16 MiB (VectorCraft's own limit). Transparency in a tagged CMYK document blends in the document's CMYK profile; when the file holds no space of that profile it blends in DeviceCMYK, or keeps its RGB space in PDF/A, and never in an image's own profile (`crates/pdf/src/tests/cmykimages.rs`, `export::writer::tests`).
|
||||
- When the Output settings convert an image's colors ([the help page](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/pdf-marks-bleeds-and-color-output-options.html)), PDF export leaves out an image whose pixels can't be decoded or written in the destination's colors, with the warning "an image couldn't be converted to the Output destination and is missing from the picture", in every standard, instead of writing it in its own colors. This covers a CMYK image with more than 2^26 pixels, the most VectorCraft reads CMYK inks for, and a color image that could be embedded as it is but is more than VectorCraft decodes. A color image whose pixel data can't be read is left out with the warning "an image couldn't be decoded and is missing from the picture", as without a conversion. Gray images, whose pixels are not converted, images in a file that converts no colors, and a gray or RGB image that an sRGB destination would convert from its ICC profile (it keeps the profile, with a warning) are written as before, and an image that can't be written at all still gets the warning that it couldn't be decoded (`crates/pdf/src/tests/cmykimages.rs`, `crates/pdf/src/tests/compression.rs`).
|
||||
- PDF export with `output.profiles` set to `none` (Don't Include Profiles) writes no image with the ICC profile it carries, as [the help page](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/pdf-marks-bleeds-and-color-output-options.html) describes for that setting: gray and RGB PNG, JPEG and TIFF images embedded as they are, resampled or compressed again, and CMYK JPEG images. A JPEG kept as it is loses its `ICC_PROFILE` APP2 segments, its other segments and compressed samples unchanged. PDF/A-2b, PDF/X-3 and PDF/X-4 files keep the profiles they tag images with. Left unset (the default, `"default"`, listed as Default in Save PDF), the setting writes device colors while gray and RGB images keep their profiles, as before; that default is VectorCraft's own rule (`a_set_dont_include_profiles_removes_image_profiles`, `a_set_dont_include_profiles_takes_a_cmyk_jpegs_profile_out`).
|
||||
- PDF import keeps the CMYK profile of an image in a four-component `ICCBased` color space, whose stream holds the profile ([ISO 32000-1, §8.6.5.5](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=157)), byte for byte with the image's ink amounts, so PDF export can write the image in it again. A CMYK TIFF carries it as tag 34675, whatever the image's Decode array and bit depth ([ICC.1:2010, Annex B](https://www.color.org/specification/ICC1v43_2010-12.pdf)). A CMYK JPEG kept as it is carries it in `ICC_PROFILE` APP2 segments in place of a profile of its own, with its compressed samples unchanged, and one whose segments can't hold it is stored as a CMYK TIFF carrying it. A profile that isn't well formed, isn't of CMYK colors or is over 16 MiB (VectorCraft's own limit) leaves the image's inks as they are, untagged. DeviceCMYK and DeviceN images carry no profile, and a CMYK TIFF's tag 34675 is read up to 16 MiB. EPS and PostScript import does not keep one: PostScript defines no `ICCBased` profile stream (`crates/pdf/src/tests/cmykimages.rs`, `cmyk::tests`).
|
||||
|
||||
Reference in New Issue
Block a user