page.Bleed
Bleed value in document units. Print work needs 3 mm of bleed; check it before export and you avoid the classic white sliver at the trim.
Signature
page.Bleed
Notes
Bleed value in document units. Print work needs 3 mm of bleed; check it before export and you avoid the classic white sliver at the trim.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
print("Page size: ", page.SizeWidth * 25.4, "x", page.SizeHeight * 25.4, "mm")
print("Bleed: ", page.Bleed * 25.4, "mm")
if page.Bleed * 25.4 < 3:
page.Bleed = 3 / 25.4 # pad it up to 3mm if it is short
print("Bleed padded to 3mm")
About this section: Layer Advanced
Layer Advanced — multi-layer and multi-page workflows.
- This section has 8 entries; this is one of them.
- See the full section index: Layer Advanced
Other entries in this section
- page.CreateLayer(Name)Adds a layer to the page. Good habit: background, content, text and an
- layer.MoveAbove(OtherLayer) / MoveBelow(OtherLayer)Reorders layers. The text layer has to sit on top or images cover it —
- layer.Visible / layer.Printable / layer.EditableThree layer switches: visible, printable, editable. Locking a layer me
- doc.AddPages(Count) / doc.DeletePages(Range)Adds and deletes pages. Price tags, business cards, certificates — add
- layer.CreateGuide(X, Y, Angle)Creates a guide on the layer. For consistent margins and type areas, l
- page.SelectShapesFromRectangle(X1, Y1, X2, Y2)Selects by rectangle, the scripted version of dragging a marquee. Very
- layer.Paste() / layer.PasteSpecial()Pastes the clipboard onto the named layer rather than the current one.