mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
EPS: white fills and strokes knock out with Discard White Overprint
PDF export lets a fill or stroke marked to overprint do so only when it is not white with Discard White Overprint in Output (Document Setup, on by default). EPS export and composite PostScript printing ignored that setting, so an overprinting white fill or stroke was written with "true op" and the inks below it stayed visible. They now apply the same rule to path fills and strokes, character fills and type object fills. The tiles of an overprinting pattern fill overprint with it, as in PDF export. Before, a tile marked to overprint wrote its own "true op" and "false op", which turned overprinting off for the tiles after it. Separated plates are not checked for white, since their colors are already the plate's coverage. Re-exporting or printing to PostScript a document with an overprinting white fill or stroke gives different output: the white knocks out instead of overprinting, unless Discard White Overprint in Output is off.
This commit is contained in:
1 parent
db9acab4da
commit
6327295d28
6 files changed
+122
-12
No files matched your search
@@ -33,7 +33,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Export EPS",
|
||||
[],
|
||||
None,
|
||||
"{path?, level?: 2|3 (default; PostScript language level: 3 writes smooth gradients and masks transparent image pixels out, 2 steps gradients and writes those pixels white), previewFormat?: none|tiffBw|tiffColor (default: a TIFF preview other apps show), transparentPreview?: true (else on white), overprints?: preserve (default)|discard, flattenerPreset?: \"medium\" (default; high, low or a saved preset: flattener.presets.list), flattener?: {the options of object.flattenTransparency over the preset}, embedFonts?: true (type is always written as outlines, so no fonts are needed), includeLinkedFiles?: false (the embedded document keeps linked images whole, not just their previews), thumbnails?: true (a PNG thumbnail in the file), cmykPostScript?: true (RGB documents written in CMYK), compatibleGradients?: false (stepped gradients at level 3 too), selectedOnly?: false, useArtboards?: true (one file per chosen artboard, artboards?/range?, {stem}_{artboard}.eps, the bounding box the artboard; with two or more, also the central file {stem}.eps first: the whole document, the bounding box the visible art; none when no art shows) | false (one file, the bounding box the visible art, y up from the first artboard's bottom-left corner, even when artboards are named; the default when none are named), format?: \"eps\", artboard?: i | artboards?: [i…] | range?: \"1-3, 5\" (the artboards written; naming them without useArtboards works as useArtboards: true)} → {path, bytes, warnings, files?}; no path → {dataBase64, …}. Transparency is flattened with the preset (EPS has none); the native document rides along in comments, for reopening the file as it was. Same as document.export {format: eps}. A key EPS doesn't take, and an unknown key inside flattener, are refused",
|
||||
"{path?, level?: 2|3 (default; PostScript language level: 3 writes smooth gradients and masks transparent image pixels out, 2 steps gradients and writes those pixels white), previewFormat?: none|tiffBw|tiffColor (default: a TIFF preview other apps show), transparentPreview?: true (else on white), overprints?: preserve (default; white fills and strokes knock out with document.setup discardWhiteOverprint)|discard, flattenerPreset?: \"medium\" (default; high, low or a saved preset: flattener.presets.list), flattener?: {the options of object.flattenTransparency over the preset}, embedFonts?: true (type is always written as outlines, so no fonts are needed), includeLinkedFiles?: false (the embedded document keeps linked images whole, not just their previews), thumbnails?: true (a PNG thumbnail in the file), cmykPostScript?: true (RGB documents written in CMYK), compatibleGradients?: false (stepped gradients at level 3 too), selectedOnly?: false, useArtboards?: true (one file per chosen artboard, artboards?/range?, {stem}_{artboard}.eps, the bounding box the artboard; with two or more, also the central file {stem}.eps first: the whole document, the bounding box the visible art; none when no art shows) | false (one file, the bounding box the visible art, y up from the first artboard's bottom-left corner, even when artboards are named; the default when none are named), format?: \"eps\", artboard?: i | artboards?: [i…] | range?: \"1-3, 5\" (the artboards written; naming them without useArtboards works as useArtboards: true)} → {path, bytes, warnings, files?}; no path → {dataBase64, …}. Transparency is flattened with the preset (EPS has none); the native document rides along in comments, for reopening the file as it was. Same as document.export {format: eps}. A key EPS doesn't take, and an unknown key inside flattener, are refused",
|
||||
has_doc,
|
||||
export_eps
|
||||
)]
|
||||
|
||||
@@ -212,11 +212,29 @@ fn flattening_cropped_art_keeps_the_art_under_its_hidden_part() {
|
||||
fn overprints_are_kept_or_discarded() {
|
||||
let mut s = session(100.0, 100.0, 1);
|
||||
let id = s.execute("shape.rectangle", &json!({"x": 10, "y": 10, "width": 30, "height": 30})).unwrap()["id"].as_u64().unwrap();
|
||||
s.execute("paint.setFill", &json!({"ids": [id], "color": {"c": 100, "m": 0, "y": 0, "k": 0}})).unwrap();
|
||||
s.execute("attributes.set", &json!({"ids": [id], "overprintFill": true})).unwrap();
|
||||
let kept = postscript(&b64(&s.execute("document.exportEps", &json!({"previewFormat": "none"})).unwrap()));
|
||||
assert!(kept.contains("true op\n"), "{kept}");
|
||||
let dropped = postscript(&b64(&s.execute("document.exportEps", &json!({"previewFormat": "none", "overprints": "discard"})).unwrap()));
|
||||
assert!(!dropped.contains("true op"));
|
||||
|
||||
// A white fill or stroke that overprints knocks out with Discard White Overprint (on by
|
||||
// default), and overprints without it, as in PDF export.
|
||||
let white = json!({"c": 0, "m": 0, "y": 0, "k": 0});
|
||||
let filled = [json!({"ids": [id], "color": white}), json!({"ids": [id], "none": true})];
|
||||
let stroked = [json!({"ids": [id], "none": true}), json!({"ids": [id], "color": white})];
|
||||
for (i, [fill, stroke]) in [filled, stroked].iter().enumerate() {
|
||||
s.execute("paint.setFill", fill).unwrap();
|
||||
s.execute("paint.setStroke", stroke).unwrap();
|
||||
s.execute("attributes.set", &json!({"ids": [id], "overprintFill": i == 0, "overprintStroke": i == 1})).unwrap();
|
||||
s.execute("document.setup", &json!({"discardWhiteOverprint": true})).unwrap();
|
||||
let knocked_out = postscript(&b64(&s.execute("document.exportEps", &json!({"previewFormat": "none"})).unwrap()));
|
||||
assert!(!knocked_out.contains("true op"), "{i}: {knocked_out}");
|
||||
s.execute("document.setup", &json!({"discardWhiteOverprint": false})).unwrap();
|
||||
let overprinted = postscript(&b64(&s.execute("document.exportEps", &json!({"previewFormat": "none"})).unwrap()));
|
||||
assert!(overprinted.contains("true op\n"), "{i}: {overprinted}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
+29
-10
@@ -287,6 +287,8 @@ pub(crate) struct Scene<'a> {
|
||||
/// The gradient being painted overprints on a plate: where it is paper white it puts none of
|
||||
/// the plate's ink down, and the plate below it is left as it is ([`Self::inked_spans`]).
|
||||
keep_below: bool,
|
||||
/// Overprinting is on in the page's graphics state ([`Self::overprint_on`]).
|
||||
overprinting: bool,
|
||||
}
|
||||
|
||||
impl<'a> Scene<'a> {
|
||||
@@ -317,6 +319,7 @@ impl<'a> Scene<'a> {
|
||||
nest: 0,
|
||||
plate: false,
|
||||
keep_below: false,
|
||||
overprinting: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -507,11 +510,22 @@ impl<'a> Scene<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Turn overprinting on for one paint (when overprints are preserved); `false` when it stays off.
|
||||
/// Whether a fill or stroke of `paint` marked to overprint (`overprint`) does: not when it is
|
||||
/// white with Discard White Overprint in Output (Document Setup), as in PDF export. On a plate
|
||||
/// the colors are already the plate's coverage, and the plate's document already left out or
|
||||
/// kept each overprinting paint by that setting, so white is not checked there.
|
||||
fn overprints(&self, overprint: bool, paint: &Paint) -> bool {
|
||||
let discarded = !self.plate && self.doc.setup.discard_white_overprint && vectorcraft_doc::overprint::is_white(paint);
|
||||
overprint && !discarded
|
||||
}
|
||||
|
||||
/// Turn overprinting on for one paint (when overprints are preserved); `false` when it stays off
|
||||
/// or is already on (a pattern's tiles inside an overprinting pattern fill).
|
||||
fn overprint_on(&mut self, overprint: bool) -> bool {
|
||||
let on = overprint && self.o.overprint == Overprint::Preserve;
|
||||
let on = overprint && self.o.overprint == Overprint::Preserve && !self.overprinting;
|
||||
if on {
|
||||
self.line("true op");
|
||||
self.overprinting = true;
|
||||
}
|
||||
on
|
||||
}
|
||||
@@ -519,6 +533,7 @@ impl<'a> Scene<'a> {
|
||||
fn overprint_off(&mut self, on: bool) {
|
||||
if on {
|
||||
self.line("false op");
|
||||
self.overprinting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -673,7 +688,8 @@ impl<'a> Scene<'a> {
|
||||
match item {
|
||||
AppearanceItem::Fill(fl) if fl.visible && !fl.paint.is_none() => {
|
||||
self.note_item(fl.opacity, fl.blend);
|
||||
self.fill(bp, rule, &fl.paint, bounds, fl.overprint);
|
||||
let overprint = self.overprints(fl.overprint, &fl.paint);
|
||||
self.fill(bp, rule, &fl.paint, bounds, overprint);
|
||||
}
|
||||
AppearanceItem::Stroke(st) if st.visible && !st.paint.is_none() && st.width > 0.0 && st.width.is_finite() => {
|
||||
self.stroke(bp, rule, st, bounds);
|
||||
@@ -756,6 +772,7 @@ impl<'a> Scene<'a> {
|
||||
return;
|
||||
}
|
||||
self.note_item(st.opacity, st.blend);
|
||||
let overprint = self.overprints(st.overprint, &st.paint);
|
||||
let paint_bounds = st.paint_bounds(bounds);
|
||||
let area_paint = match &st.paint {
|
||||
Paint::Pattern { .. } => true,
|
||||
@@ -766,7 +783,7 @@ impl<'a> Scene<'a> {
|
||||
// The area the stroke paints, as Outline Stroke makes it, painted with the pattern's
|
||||
// tiles or the freeform's image.
|
||||
let region = stroke::outline_region(&PathData::from_bezpath(bp), rule, st).to_bezpath();
|
||||
self.fill(®ion, FillRule::NonZero, &st.paint, paint_bounds, st.overprint);
|
||||
self.fill(®ion, FillRule::NonZero, &st.paint, paint_bounds, overprint);
|
||||
return;
|
||||
}
|
||||
let w = stroke::for_writer(bp, st);
|
||||
@@ -791,7 +808,7 @@ impl<'a> Scene<'a> {
|
||||
};
|
||||
match &w.shape {
|
||||
WrittenShape::Stroke { width } => {
|
||||
let on = self.overprint_on(st.overprint);
|
||||
let on = self.overprint_on(overprint);
|
||||
self.line_style(st, *width);
|
||||
match &st.paint {
|
||||
Paint::Solid { color, swatch, tint } => {
|
||||
@@ -805,7 +822,7 @@ impl<'a> Scene<'a> {
|
||||
self.line("q");
|
||||
push_path(&mut self.body, bp);
|
||||
self.line("strokepath W");
|
||||
self.paint_overprinting(st.overprint, p, paint_bounds, w.reach(st, bounds));
|
||||
self.paint_overprinting(overprint, p, paint_bounds, w.reach(st, bounds));
|
||||
self.line("Q");
|
||||
}
|
||||
}
|
||||
@@ -818,14 +835,14 @@ impl<'a> Scene<'a> {
|
||||
push_path(&mut self.body, &ws.clip);
|
||||
self.body.push_str(clip_op(FillRule::NonZero));
|
||||
for (shape, paint) in &ws.slices {
|
||||
self.fill(shape, FillRule::NonZero, paint, shape.bounding_box(), st.overprint);
|
||||
self.fill(shape, FillRule::NonZero, paint, shape.bounding_box(), overprint);
|
||||
}
|
||||
self.line("Q");
|
||||
}
|
||||
}
|
||||
WrittenShape::Fill(outlines) => {
|
||||
for o in outlines {
|
||||
self.fill(o, FillRule::NonZero, &st.paint, paint_bounds, st.overprint);
|
||||
self.fill(o, FillRule::NonZero, &st.paint, paint_bounds, overprint);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -920,7 +937,8 @@ impl<'a> Scene<'a> {
|
||||
if bp.elements().is_empty() {
|
||||
continue;
|
||||
}
|
||||
self.fill(&bp, FillRule::NonZero, &run.style.fill, layout.bounds, run.style.overprint_fill);
|
||||
let overprint = self.overprints(run.style.overprint_fill, &run.style.fill);
|
||||
self.fill(&bp, FillRule::NonZero, &run.style.fill, layout.bounds, overprint);
|
||||
if run.style.has_stroke() {
|
||||
// Character strokes are drawn in text space, with their cap, join and dashes.
|
||||
self.stroke(&bp, FillRule::NonZero, &run.style.stroke_layer(), layout.bounds);
|
||||
@@ -938,7 +956,8 @@ impl<'a> Scene<'a> {
|
||||
match item {
|
||||
AppearanceItem::Fill(fl) if fl.visible && !fl.paint.is_none() => {
|
||||
self.note_item(fl.opacity, fl.blend);
|
||||
self.fill(bp, FillRule::NonZero, &fl.paint, tb, fl.overprint);
|
||||
let overprint = self.overprints(fl.overprint, &fl.paint);
|
||||
self.fill(bp, FillRule::NonZero, &fl.paint, tb, overprint);
|
||||
}
|
||||
AppearanceItem::Stroke(st) if st.visible && !st.paint.is_none() && st.width > 0.0 && st.width.is_finite() => {
|
||||
self.stroke(bp, FillRule::NonZero, st, tb);
|
||||
|
||||
@@ -448,6 +448,77 @@ fn spot_colours_are_separations_and_overprints_are_kept_or_dropped() {
|
||||
assert!(!page_of(&d, &EpsOptions { overprint: Overprint::Discard, ..opts(&d) }).contains("true op"));
|
||||
}
|
||||
|
||||
/// Whether overprinting is on at each fill a page paints, by its `true op` and `false op` lines.
|
||||
fn overprint_at_fills(page: &str) -> Vec<bool> {
|
||||
let mut on = false;
|
||||
let mut fills = vec![];
|
||||
for line in page.lines() {
|
||||
match line {
|
||||
"true op" => on = true,
|
||||
"false op" => on = false,
|
||||
l if l == "f" || l.ends_with(" f") || l.ends_with(" f*") || l == "f*" => fills.push(on),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
fills
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn tiles_overprint_with_their_overprinting_pattern() {
|
||||
// A rectangle filled with an overprinting pattern whose tile is a white square marked to
|
||||
// overprint and then a cyan one that is not.
|
||||
let mut d = doc_with(|_| vec![]);
|
||||
let square = |d: &mut Document, paint: Paint, overprint: bool| {
|
||||
let mut n = path(d, shapes::rectangle(Rect::new(0.0, 0.0, 10.0, 10.0)), paint, Paint::None, 0.0);
|
||||
if let Some(AppearanceItem::Fill(f)) = n.appearance.items.first_mut() {
|
||||
f.overprint = overprint;
|
||||
}
|
||||
Arc::new(n)
|
||||
};
|
||||
let tile = vec![square(&mut d, Paint::solid(Color::WHITE), true), square(&mut d, Paint::solid(Color::cmyk(1.0, 0.0, 0.0, 0.0)), false)];
|
||||
d.patterns.push(vectorcraft_doc::PatternDef::new("tile", tile));
|
||||
let mut n = red_rect(&mut d);
|
||||
if let Some(AppearanceItem::Fill(f)) = n.appearance.items.first_mut() {
|
||||
f.paint = Paint::Pattern { pattern: "tile".into(), xf: Affine::IDENTITY };
|
||||
f.overprint = true;
|
||||
}
|
||||
let layer = d.layers[0].id;
|
||||
d.insert(Some(layer), 0, n).unwrap();
|
||||
// The whole pattern overprints, as in PDF export: the white square's own mark does not turn
|
||||
// overprinting off for the cyan square after it, and Discard White Overprint applies to the
|
||||
// pattern fill, not to its tiles.
|
||||
let fills = overprint_at_fills(&page_of(&d, &opts(&d)));
|
||||
assert!(!fills.is_empty() && fills.iter().all(|&on| on), "{fills:?}");
|
||||
// On a plate too.
|
||||
let plate = crate::scene::Scene::new(&d, &opts(&d)).on_plate(true).run();
|
||||
let fills = overprint_at_fills(&plate.body);
|
||||
assert!(!fills.is_empty() && fills.iter().all(|&on| on), "{fills:?}");
|
||||
}
|
||||
|
||||
/// A white character fill, and a white fill of the type object itself, marked to overprint knock
|
||||
/// out with Discard White Overprint and overprint without it.
|
||||
#[test]
|
||||
fn white_type_fills_knock_out_with_discard_white_overprint() {
|
||||
use vectorcraft_doc::{CharStyle, FillLayer, TextObject};
|
||||
let white = Paint::solid(Color::WHITE);
|
||||
let char_fill = CharStyle { size: 30.0, fill: white.clone(), overprint_fill: true, ..CharStyle::default() };
|
||||
let object_fill = CharStyle { size: 30.0, fill: Paint::None, ..CharStyle::default() };
|
||||
for (i, style) in [char_fill, object_fill].into_iter().enumerate() {
|
||||
let mut d = doc_with(|d| {
|
||||
let mut n = Node::new(d.alloc_id(), NodeKind::Text(Box::new(TextObject::point(Point::new(20.0, 100.0), "AB", style))));
|
||||
if i == 1 {
|
||||
n.appearance.items = vec![AppearanceItem::Fill(FillLayer { overprint: true, ..FillLayer::new(white.clone()) })];
|
||||
}
|
||||
vec![n]
|
||||
});
|
||||
let fills = overprint_at_fills(&page_of(&d, &opts(&d)));
|
||||
assert!(!fills.is_empty() && fills.iter().all(|&on| !on), "{i}: {fills:?}");
|
||||
d.setup.discard_white_overprint = false;
|
||||
let fills = overprint_at_fills(&page_of(&d, &opts(&d)));
|
||||
assert!(!fills.is_empty() && fills.iter().all(|&on| on), "{i}: {fills:?}");
|
||||
}
|
||||
}
|
||||
|
||||
const GOLD: Color = Color::Cmyk { c: 0.0, m: 0.2, y: 0.8, k: 0.1 };
|
||||
const LEAF: Color = Color::Cmyk { c: 1.0, m: 0.0, y: 1.0, k: 0.0 };
|
||||
|
||||
|
||||
+2
-1
@@ -10222,7 +10222,8 @@ without `useArtboards` (no central file when no art shows). `level: 3` (default)
|
||||
shadings and masks transparent image pixels out; `level: 2` writes gradients as bands of colour (as does
|
||||
`compatibleGradients`) and transparent pixels white. Type is always glyph outlines, so no fonts are needed (`embedFonts`
|
||||
is accepted); spot colours are Separation colour spaces, and overprinting fills and strokes overprint unless
|
||||
`overprints: "discard"`. RGB documents are written in CMYK unless `cmykPostScript: false`. A freeform gradient is
|
||||
`overprints: "discard"`. With `discardWhiteOverprint` (`document.setup`, on by default) white ones knock out instead, as
|
||||
in PDF export. RGB documents are written in CMYK unless `cmykPostScript: false`. A freeform gradient is
|
||||
written as an image, in CMYK when every point is CMYK or when every point is Gray in a file written in CMYK. When the file would hold an
|
||||
image that can't be decoded, the image is left out, and `warnings` carries "an image couldn't be decoded and is missing
|
||||
from the picture" once for all such images.
|
||||
|
||||
@@ -802,6 +802,7 @@ since 2026-10-01.
|
||||
|
||||
- **EPS Save with Use Artboards:** Save As › EPS Options show Use Artboards with All or Range, for a separate file per artboard ([saving in EPS](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/save-artwork-in-eps-format.html)), unchecked by default (the scripting reference's EPS save options list `saveMultipleArtboards` with a default of false, [scripting reference](https://web.archive.org/web/20160803105056/https://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2015_3/Illustrator%20JavaScript%20Scripting%20Reference.pdf)). Unchecked, Save writes one file whose bounding box fits all the visible art, as Export does, without the artboards' background colors; when no art shows, the page is the first artboard in its color. An opened EPS saved back this way loses its page margins. Checked with two or more chosen artboards, the file at the path is the central file of the visible art and each artboard is also written to `<name>_<artboard>.eps` beside it. Checked with one chosen artboard, VectorCraft writes that artboard as the page of the file at the path alone (the behavior Save had since #4293). Evidence: `cmd::fileio::tests_artboard_fill::eps_save_draws_the_color_on_an_artboard_page`, `tests::save::eps_save_without_use_artboards_fits_the_box_to_art_past_the_artboard`, `tests::save::opened_eps_saves_to_its_own_file_around_its_art_or_on_its_page`, `tests::save::eps_save_with_use_artboards_writes_the_central_file_and_one_per_artboard`, `dialogs::save_options::tests::eps_save_as_shows_use_artboards_off_and_writes_the_art_or_the_artboard`.
|
||||
- **EPS Options custom flattener settings:** the help page describes flattening an EPS's transparency with a preset or with custom options, adjusted through Custom ([saving in EPS](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/save-artwork-in-eps-format.html)). EPS Options now has Custom… beside the flattener Preset. It opens Custom Transparency Flattener Options on the settings the export would use: the raster/vector balance, both resolutions, the text and stroke outline switches, Clip Complex Regions and Anti-alias Rasters. OK goes back to EPS Options with the preset shown as [Custom], the export flattens with those settings, and the next EPS Options start from them; choosing a preset drops them, and Cancel goes back to EPS Options unchanged. Preserve Alpha Transparency stays off, and overprints are kept only with Overprints set to Preserve. The [Custom] label, the remembering, the Cancel behavior, Anti-alias Rasters and the ranges (balance 0 to 100, resolutions 1 to 2400 ppi) are VectorCraft's own. Evidence: `dialogs::tests_eps::custom_flattener_options_start_from_the_preset_and_cancel_goes_back_unchanged`, `custom_flattener_options_are_exported_and_remembered_until_a_preset_is_chosen`, `bad_custom_flattener_options_keep_the_dialog_open`.
|
||||
- **EPS export and Discard White Overprint:** the help page describes Discard White Overprint as taking the overprint attribute off white objects in output, without changing the artwork ([white overprint](https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/white-overprint.html)). EPS export and composite PostScript printing now follow Discard White Overprint in Output (Document Setup), as PDF export does: a white fill or stroke marked to overprint knocks out while the setting is on and overprints while it is off. The tiles of an overprinting pattern fill overprint with it. Evidence: `cmd::fileio::tests_eps::overprints_are_kept_or_discarded`, `tests::tiles_overprint_with_their_overprinting_pattern`, `tests::white_type_fills_knock_out_with_discard_white_overprint`.
|
||||
- **Save PDF custom flattener settings:** the help page describes the Advanced section's flattener preset for PDF 1.3 saves of transparent art, with a Custom button for adjusting the flattener settings, and says neither is available at PDF 1.4 and later ([PDF options](https://helpx.adobe.com/illustrator/using/pdf-options.html)). Save PDF › Advanced now has Custom… beside Flattener preset, enabled for PDF 1.3, PDF/X-1a and PDF/X-3. It opens Custom Transparency Flattener Options on the settings the save would use: the raster/vector balance, both resolutions, the text and stroke outline switches and Anti-alias Rasters; Clip Complex Regions shows on, as the PDF 1.3 writer always clips, overprints are kept only with Overprint set to Preserve, and Preserve Alpha Transparency shows off, as PDF 1.3 rasters keep no alpha. OK goes back to Save PDF with the preset shown as [Custom] and the save flattens with those settings; settings equal to the preset's leave its name, choosing a preset drops them, and Cancel goes back unchanged. PDF presets keep the flattener preset but not these settings, and Save Preset… says so while they are set. `ui.savePdfDialog` keeps a `flattener` it is given. The [Custom] label, the Cancel behavior, Anti-alias Rasters, the editor's absence from the PDF preset editor and the ranges (balance 0 to 100, resolutions 1 to 2400 ppi) are VectorCraft's own. Evidence: `dialogs::save_pdf::tests::custom_is_enabled_where_the_save_flattens`, `custom_starts_from_the_preset_and_cancel_goes_back_unchanged`, `custom_options_are_written_until_a_preset_is_chosen`, `custom_options_equal_to_the_preset_leave_its_name`, `custom_shows_alpha_as_the_pdf_1_3_writer_drops_it`, `save_preset_says_it_leaves_the_custom_flattener_options_out`, `save_pdf_opens_with_the_flattener_options_given_and_refuses_bad_ones`.
|
||||
|
||||
- **Raster export backgrounds (#6125):** a raster export draws its background under the finished art, and blend modes read only the art below them, as on the canvas. An Outer Glow in Screen mode on the bare page shows in a PNG on white and in a JPEG. Flatten Transparency puts its white under the finished art the same way. Evidence: `tests::file::a_screen_outer_glow_is_in_raster_exports`, `tests::objectfx::a_screen_outer_glow_on_the_bare_page_shows_on_a_background`, `tests::knockout::page_knockout_and_isolated_blending`, `tests::knockout::no_blend_mode_reads_the_background`, `tests::cmykflatten::every_blend_mode_flattens_to_the_canvas_pixels_in_cmyk`.
|
||||
|
||||
Reference in new issue
Block a user