Docs: say a named crop box can take in all, part or none of the bleed

The crop box can miss the bleed entirely, for example when the bleed lies
only right of the trim box and the crop box reaches past it only on the left.
This commit is contained in:
dotCooCoo
2026-11-30 21:02:46 -08:00
parent 4fdea52931
commit 69a42e00a2
+1 -1
View File
@@ -1741,7 +1741,7 @@ Opening a PDF (or `.ai`) imports every page as an artboard and layer; `document.
`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 file whose PDF carries `.ai` editing data (`AIPrivateData` or `AIPDFPrivateData`) opens on its trim boxes for
`crop`; when its pages are imported (with a `pages` range, or with `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 when the crop box contains the bleed box, part of it when the crop box reaches past the trim box but not to the bleed box's edges) and `password` for an encrypted file. `document.pdfInfo` reads a file without opening it: the page count, each page's
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
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