When the import refuses a file's PDF part and its editing data can't be
read either, the error named only the PDF part. It now adds "its editing
data couldn't be read either (<why>)", as layers already do
(crates/eps/src/import.rs). The reasons come from the editing data
reader (a size limit, damaged compression) and from the private data
streams (larger than 256 MB, another filter or decode parameters,
damaged zlib data). A file without editing data, and an open with pages
picked, layers off or the editing data off, keep the PDF part's error.
Part of #4366.
The search for a PDF's editing file stopped 16 levels deep in the
attachment name tree, so an editing file listed deeper read as absent
and a confined package copied the PDF without checking its stored
paths. The search now walks the tree at any depth, each indirect node
once, up to 65,536 nodes; a tree with more nodes counts as listing the
editing file, so a confined package refuses the PDF.
A prepared package (Session::prepare_package) now keeps the read roots
in force where it was prepared, and Package::write collects under them
on any thread.
Bullets and Numbering's Numbers tab gets a Start at box and number, and
text.setFormat takes startNumber (1 to 999999999) and restartNumbering.
The number goes to the first numbered paragraph the call touches that
holds text, and the numbered paragraphs after it at its level count on
from it, through threaded frames too. restartNumbering false removes the
numbers. A bad value, or both keys at once, is an error, and a call that
changes nothing records no undo step.
The native file saves the number as the list's "start" only when it is
set. A paragraph made with Return does not take it, a paragraph style
does not keep it, and Convert to Text and the exports write the numbers
the paragraphs show.
Part of #2473
select.anchorsMany, which the Direct Selection and Group Selection
marquees, the Lasso and Smart Pen send, checked and changed membership
through Selection::contains, add and remove for each item, each a scan
of the selected objects. It now keeps the selected objects in a map
while the items run and writes them back once. The objects, their
order, the anchors, segments, key, key anchor and the other selection
fields come out as before, repeated ids and ids deselected and
selected again included.
Tests compare the result with the item-by-item loop for every mode,
four starting selections and fifteen item lists, and bound the passes
over the selected objects. An ignored benchmark times both loops on
2,000, 20,000 and 50,000 rectangles.
A graphic style dragged from the panel onto the New Graphic Style button
runs Duplicate Graphic Style. The button takes the drop with no art
selected and is outlined while a style is held over it. A dragged style
that is highlighted brings the other highlighted styles, copied in panel
order in one undo step, and the copies are highlighted.
graphicStyle.duplicate now adds the copy at the end of the list instead
of right after its source, for the panel menu's command and the drop.
The list's drop zone no longer reaches over the footer when the list is
shorter than 220 pt, so a style released on New Graphic Style or Delete
is not moved to the end of the list.
First Baseline gains Em Box Height (`text.areaOptions {firstBaseline:
"emBoxHeight"}`, and the Area Type Options dropdown). The top of the
first line's ideographic em box, the largest on a line of several sizes,
touches the top of the type area inside the inset, in each row/column
cell and in vertical type. It is the em box that Top-to-Top leading
uses. Min is the least distance, as with the other kinds.
Native files save it as `emBoxHeight`. The .ai reader reads editing-data
kind 5 as Em Box Height and the writer writes it back; Legacy (6) and
unknown kinds keep today's fallback.
The dropdown's Ascent and x Height labels, and Fixed in Gujarati, get
the catalog rows nine languages were missing, beside the new label in
every catalog.
Help page: https://helpx.adobe.com/illustrator/desktop/design-with-text/add-manage-text/add-margins-to-text-and-adjust-the-first-baseline.html
Unite, Minus Front, Intersect, Exclude and Minus Back close open paths,
so a straight line encloses no area and does not change the result.
Until now the line was dropped with no message. Reported in #7849.
- The reply of object.pathfinder.unite, minusFront, intersect, exclude
and minusBack now carries a warning, which the status bar shows, when
a selected object is or holds an open path that encloses no area once
closed (a line in a group or compound path included). The message
names Object › Path › Outline Stroke. The area is measured with the
path's fill rule, as Make Compound Shape's check in #7894 does.
- When such a path is what leaves the result empty (Intersect, or a
line at the back in Minus Front), the error says so. Objects that
leave nothing without the line keep the plain error.
- Both messages have rows in each complete-message catalog. The params
text and docs/mcp.md describe the reply field.
The Print dialog's Output section has an Overprint Black checkbox under
Convert All Spot Colors to Process, off by default and available with
Separations (print.setup output.overprintBlack, kept with the document
and in print presets). With it on, solid 100% process K or 100% gray
fills, strokes and characters, and gradients whose every stop (or every
freeform point) is, overprint in the printed copy, so the inks under them
stay on the other plates. Rich, RGB, Lab, spot-linked and lighter blacks
knock out. The document and its own overprint settings do not change, and
composite output ignores the option.
Plates draw an overprinting paint that puts no ink on them as nothing, so
PostScript separations keep the inks below it too. Overprinting character
fills and strokes now darken on PDF plates like fills and strokes, a type
object's own fill in a PDF is drawn with its blending mode, and Edit >
Edit Colors > Overprint Black counts a gradient with a spot-linked stop as
a spot black and a freeform gradient by its color points.
Clear with `ids`, which Cut uses for the objects it copied, removed each
id from the selection with its own scan of the selected objects. It now
calls Selection::remove_all once, which gives the same selection.
With 50,000 objects selected and all of them cut, the selection step
takes 5.5 ms instead of 572 ms (release build, median of 7 wall-clock
runs, measured while other builds were running). The new tests compare
the result with removing each id in turn, including Undo and Redo, and
an ignored benchmark times both.
Drawing or exporting a symbol instance looked its symbol up by scanning
the document's symbol list, so a document with many instances and many
symbols spent most of a frame or an export on name comparisons. The
renderer, the SVG and PDF writers and the export walks now find symbols
through SymbolBoxes::symbol, which builds the name index once per frame,
export or walk and returns the first symbol of a name as before.
- Renderer: plain instances, inline graphics, instances with object
effects (their art and the symbol budget) and the effect bounds.
- SVG export: instance art, symbol defs and their reuse check, and the
paint reach of filter regions.
- PDF export: instance art, inline graphics and the brush search of
knockout masks.
- Export warnings and artboard crops measured what each object paints
with new symbol boxes per object, which built the name index again for
every instance. painted_bounds_with and drawn_outline_with take the
boxes once; Object › Rasterize's clipping mask uses them too.
High Fidelity Photo traced with a Limited palette of 64 colors as
overlapping shapes. It now traces with Palette Full Tone at Color detail
85 and Method Abutting; Paths, Corners and Noise stay 50, 50 and 5.
These are VectorCraft's own values.
Palette Full Tone splits its colors until none is wider than its limit,
then, while it has fewer colors than Color detail's value, splits the
narrower ones too, where the image has that many. Its colors then merge
as one only when they look alike: thoroughly mixed and less than 5 apart
in Oklab x 100, or mixed in patches (compression blocks) and less than
1.5 apart. This applies to every Full Tone trace, so an existing Full
Tone trace or saved preset traces differently when traced again.
Automatic's continuous-tone colors keep the earlier count and the RGB
merge.
On 19 photos, cartoons and synthetic shapes, the mean pixel difference
summed over the inputs falls from 80.5 to 65.6 levels: by more than 1%
on 14 inputs and by less than 1% either way on the other 5. Anchors
rise 1.66 times, the SVG size 1.31 times and the trace time 1.9 times;
flat synthetic art costs the most (12 to 400 anchors on one image).
Low Fidelity Photo, 16 Colors, 6 Colors, Black and White Logo and Auto
Color give byte-identical results.
Supersedes #2699 by andeecollard, which moved the photo presets to Full
Tone.
A linked PDF or .ai file that lists the editing file among its
attachments, but whose file specification, EF dictionary or F or UF
stream can't be resolved, was taken for a file without editing data and
copied without its stored paths being checked. Under read roots,
file.package now refuses it with the error for editing data that can't
be read. Opening such a PDF is unchanged.
The plug-in export test removes its folders when it ends.
The Links panel menu's Unembed… now works with several embedded images
selected: it asks for one folder, writes a file for each image there in
the format the image is stored in, and links each image to its file,
keeping its bounds, in one undo step. On the web each image is
downloaded instead.
links.unembed takes `ids` and `folder` for this form. Each file is named
after its image, with characters a file name can't hold replaced by `_`;
a taken name is numbered (`Name 2`), and a file already in the folder is
never replaced. Linked images among `ids` are skipped and listed. When an
image can't be written, the files the call wrote are removed and the
document does not change. A folder outside the automation write roots is
refused. The one-image `{id, path}` form is unchanged.
With Link, File > Place now places an EPS file, a PostScript file and a
PostScript .ai as a linked placed document, but the Place dialog still
counted them as other files, so Link's tooltip did not say they become one
locked object, and the dialog test expected a PostScript .ai to be
embedded.
- `is_vectorcraft_file` counts an EPS, EPSF or PostScript file on disk, and
a PostScript .ai, as a document, and leaves out a DCS file, which is
placed as a linked image.
- Where the platform reads part of a file, it reads only the file's start
and tells a DCS file from it with `place::head_is_dcs` (the check Links
uses), binary EPS headers included.
- The dialog test now checks the .ai, .eps and .ps cases, the bounded read,
DCS files plain and behind a binary header, and a file named .eps that
isn't PostScript.
With `pdfs: "single"` and several assets, layers or selected objects
(`selection: "each"`), document.exportForScreens wrote one PDF named
after the document holding only the first item's art, and every other
item's PDF was left out. Single file puts artboards on the pages of one
PDF; each asset, layer or object is cut out of the document with its own
art, so the export now refuses that combination before it writes any
file, and the Example line refuses it too. `pdfs: "multiple"` still
writes a PDF of each item, and `selection: "one"` writes one PDF either
way.
Docs: params text, docs/mcp.md, docs/target-app-parity.md.
A press on an edge (Shift with Paint Fills alone, or a plain press with
Paint Strokes on) now starts a drag, as a press on a face does. The drag
paints the edge and every visible edge of the same group that it crosses
or comes within 0.0001 pt of, between pointer events and on the release,
as one undo step; Escape cancels it. Edges of other groups and hidden
edges keep their strokes, a drag over edges that already have the stroke
records no undo step, and a drag that starts on a face still fills only
faces. A double-click after such a drag joins through the edges the drag
stroked as the paint they had before it.
livePaint.strokeEdge takes the drag's points and continuation as
livePaint.fill does, and both refuse them with scope connected or
samePaint.
Help page: https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/paint-with-the-live-paint-bucket-tool.html
The Symbols panel and its panel menu asked for the current symbol on
every frame by running symbol.list, which builds a row per symbol and
walks the whole document once per symbol to count its instances. They
now read it from the active document with cmd::current_symbol, the
rule symbol.list itself uses for its `current`: the stored name while
a symbol has it, else the first symbol. symbol.sortByName,
symbol.place, symbol.options and text.insertInline use the same
function, and symbol.list's reply is unchanged.
An idle frame of the panel or its menu now runs no command, so on
macOS the native menu is not brought up to date on every frame while
the panel is open. In a document with 200 symbols and 50,000 objects
the read takes 0.035 us instead of 48.5 ms in a release build (thread
CPU time on Linux, median of 7 runs). The gain matters on large
documents; on small ones it is too small to notice.
Under automation read roots, an exporter plug-in's format (plugin.<id>)
counts as an output that carries the native document, since its plug-in
is given the document's JSON. document.serialize, document.export,
document.exportSelection, Export for Screens and assets.export rows and
file.exportAs refuse it before the plug-in runs and before any file or
folder is written when the document links a JavaScript file, a linked
image or placed file, a kept relative path or a data set's image outside
the roots, with the existing errors. The JSON the plug-in is given leaves
out an Export for Screens folder outside the roots.
file.package refuses, before anything is written, a linked file whose
native document it can't read to check: a native document that doesn't
load, a PDF or .ai file that can't be opened (one that needs a password
to open, or a damaged one), and a PDF, .ai or EPS file whose editing data
doesn't load. The error, "a linked file's editing data can't be read to
check it against the read roots", names no file or folder and gets rows
in the complete-message catalogs. A PDF or EPS file without editing data
is copied as before, and packages made without read roots are unchanged.
In a CMYK document the Fill Color and Stroke Color tolerances run from 0
to 100 and measure the Euclidean distance between the C, M, Y and K
percentages; RGB, Gray and Lab colors are converted to CMYK. RGB
documents keep the 0 to 255 RGB distance. The panel's fields take the
range of the active document.
A tolerance above 100 set in an RGB document is kept and applies as 100
while a CMYK document is active. magicWand.set now returns an error for
a tolerance that is out of range or not a number, and for a switch that
is not true or false, and then changes no setting, reset included;
before, it clamped the values and applied reset first.
A Shape Builder gesture that builds nothing now says why when it is
released: "select paths or compound paths" when nothing usable is
selected, "select all paths you want to merge" when the pointer is over
a path or compound path outside the selection, and "no region under the
pointer" otherwise. The message changes nothing in the document, the
selection or the undo history, and the next gesture that builds
something clears it. A gesture made while a large selection's map is
being built gives its message once, when it is replayed.
Tools get Action::Status, which the session passes to the status bar;
the new message has a row in every complete-message catalog.
With Export PDFs As set to a single file, a PDF row writes the first
item's document alone. The check for linked images outside the read
roots now looks only at that document, so an image linked in a later
asset no longer refuses a file that does not carry it.
Holding Backtick while dragging out a rectangle, rounded rectangle,
ellipse, polygon, star or line leaves a copy of the shape being drawn
each time the pointer has moved 8 screen points with the key down, up to
128 copies a drag. Each copy is its own object, drawn as the drag showed
it then. The release keeps the copies and the last shape as one undo
step, and Escape takes them all back. The spacing and the limit are
VectorCraft's own values.
The `backquote` descriptions of `pointer_gesture` name the shape tools.
Docs: docs/mcp.md, docs/target-app-parity.md.
A clip group whose clipping path clips by nothing (an empty group) hides its
members on the canvas, but Pathfinder skipped the group altogether, so
Intersect gave the other objects' overlap. Its members now get an empty
region and count as hidden like any other masked art.
A series read from bands with unstroked markers, or bands alone, kept an
explicit no-stroke paint. With Draw Filled Lines turned off, the thin line
took that paint and was not drawn. Such a series now keeps no stroke, as a
graph drawn here does, and its thin line is drawn in the series color at
1 pt. A series whose markers carry a stroke keeps it.
When a placed EPS or PostScript .ai file is gone, File > Package writes
the PostScript bytes the document holds only for a placed document whose
file name ends in .eps, .epsf, .ps, .ai or .ait. Under any other name,
or for a linked image, the link is reported as missing and nothing is
written for it.
A selected object its clipping masks hide altogether was left out of the
operation. For Intersect, Minus Front (hidden at the back), Minus Back
(hidden in front) and Crop (hidden on top) that changed the result: the
others' overlap or the next object down took its place. It now stays in as
an empty shape for those four, which then give nothing. The other operations
still leave it out, which gives the same art and keeps its style off the
result.
- A crease that runs past the cut outline by the tolerance or more is
reported as outside, though its hinge is still built.
- Two lines that fold, of any role, on top of each other are reported as
duplicate; a line drawn twice is still checked for where it lies.
- Hidden lines are left out in every scope, members of a selected group
included.
- The ids scope gets its own noCut message.
- The notStraight, ambiguous and summary texts say what the check finds:
the summary counts hinges, not creases.
- The fold angle fields, which nothing in this change reads, are removed.
- A window drawn as open cut lines stays a hole when a cut line crosses
it or when slits join it to an outline of open lines, so that three
lines meet at a corner. Cut lines drawn whole that cross a cell leave
it material.
- A slot drawn across the outline is a notch, not a hole, as when the
notch is drawn in the outline; a crease in it lies outside the blank.
- notStraight measures each hinge piece at its farthest point from the
hinge line instead of at five samples.
- Cut lines drawn on top of each other so many times that the gap search
would look at more than 16,777,216 pairs are reported as tooComplex
before the search.
Under automation read roots, every output that carries the native document
(a native file or template, an EPS file, a .ai or .ait file of every
artboard, a PDF of every artboard with Preserve Editing, from
document.serialize, document.export, document.exportSelection,
document.exportPdf, the saves, file.exportAs and Export for Screens rows)
is refused with "a linked image file is outside the read roots" when that
document names a linked image or placed file, a kept relative path or a
data set's image outside the roots, or holds a stored brush entry that
does not read as a brush. Nothing is written and the error names no file
or folder. Outputs without the native document are written as before.
The native document these files carry, and the documents file.package
writes or rewrites, leave out an Export for Screens folder outside the
read roots, as SVG with Preserve Editing already did. file.package refuses
a linked file it copies as it is (a PDF, .ai or EPS file, or a native
document with relink off) whose native document keeps such a folder, with
"a linked file's export folder is outside the read roots".
Export for Screens rows that write one artboard as a native, .ai or EPS
file are checked against that artboard's art. Each asset, layer or
selected object now writes its own native, .ai or EPS file: the per-artboard
document cache was keyed by artboard index alone, so every piece after the
first wrote the first piece's document.
Both messages get rows in the complete-message catalogs.
shape.arc returns an error for a reference that is not a whole number
from 0 to 8, a baseAlong other than x or y (either case), null included
for both, and a slope outside -100 to 100, in both of its forms. Before,
such a value drew the arc from reference point 0 or 8, along the X axis
or with the nearest slope. shape.rectangularGrid and shape.polarGrid
return an error for a divider count that is not a whole number of at
least 0; before, it took the default 5. Each error names the key,
nothing is drawn and no undo step is added. Left-out values keep their
defaults.