Docs: say when a named crop box applies to a .ai-backed PDF

cropTo: "crop" alone restores an intact Preserve Editing copy, so the crop
boxes apply only when the caller forces page import. The trim-box rule checks
the first PDF page's PieceInfo for the editing data.
This commit is contained in:
dotCooCoo committed 2026-11-30 21:11:25 -08:00
1 parent b969e58487
commit be3ee13f0e
1 file changed
+4 -4
+4 -4
View File
@@ -1739,9 +1739,9 @@ unknown label is refused. The `warnings` of the result name the first three such
Opening a PDF (or `.ai`) imports every page as an artboard and layer; `document.open` takes `pages` ("2-3, 5", 1-based),
`cropTo` (`bounding` (the art's bounds), `art`, `crop` (default), `trim`, `bleed`, `media`: the box each artboard gets;
with `trim` the bleed box round it becomes the document's bleed and the artboards are 36 pt apart plus that bleed on both sides, and a PDF-compatible file whose PDF carries `.ai` editing data (`AIPrivateData` or `AIPDFPrivateData`) opens on its trim boxes for
`crop`; when its pages are imported as editable art instead of from an editing copy (for example with a `pages` range or `editingData: false`), the default still gives the
trim boxes, and a `crop` the caller names (`cropTo: "crop"`, or its alias `crop: "crop"`) gives its crop boxes, which take in whatever part of the bleed the file's crop box covers: all of it, part of it or none, depending on where the crop box and the bleed lie) and `password` for an encrypted file. `document.pdfInfo` reads a file without opening it: the page count, each page's
with `trim` the bleed box round it becomes the document's bleed and the artboards are 36 pt apart plus that bleed on both sides, and a PDF-compatible file whose first PDF page's `PieceInfo` carries `.ai` editing data (`AIPrivateData` or `AIPDFPrivateData`) opens on its trim boxes for
`crop`; when callers force its pages to be imported as editable art instead of restoring an editing copy (for example with a `pages` range or `editingData: false`), the default still gives the
trim boxes, and a `crop` the caller names (`cropTo: "crop"`, or its alias `crop: "crop"`) gives its crop boxes, which take in whatever part of the bleed the file's crop box covers: all of it, part of it or none, depending on where the crop box and the bleed lie) and `password` for an encrypted file. For a `.ai` file with an intact Preserve Editing copy, `document.open` with only `cropTo: "crop"` restores the embedded document. `document.pdfInfo` reads a file without opening it: the page count, each page's
size and boxes, `needsPassword`, and with `thumbnail: n` a PNG of page n. It reads a PostScript file (an EPS, a `.ps`
file, a `.ai` in PostScript form) as one page the size of its bounding box (a US Letter page without one), with an
empty `boxes`, and `thumbnail: 1` shows what that page prints. A page whose `UserUnit` (PDF 1.6) is above 1
@@ -1751,7 +1751,7 @@ such a page opens from that data at the page's size.
`linkPages: true` (File › Open's Import PDF dialog: Import PDF pages as links) opens each page `pages` picks as a
placed document linked to that page of the file, as `file.place` with `link` places one, instead of as editable art.
Each page gets an artboard of its `cropTo` box (`bounding`: its art's bounds; a blank page gets its crop box), in a row from the left 36 pt apart, and
a layer named after the page (`Page 2`). A file whose PDF carries `.ai` editing data gets its trim boxes for
a layer named after the page (`Page 2`). A file whose first PDF page's `PieceInfo` carries `.ai` editing data gets its trim boxes for
the `crop` box, named or by default. A page on its trim box shows its bleed box round the artboard, and the pages give the document
their bleed; the artboards are then 36 pt apart plus the bleed on both sides. The document opens in CMYK when most of those pages are painted mostly in
CMYK, unless `colorMode` names a mode. All the pages' objects share one copy of the file. The Links panel lists each