This page discusses and proposes prepress features for Apache FOP.

Concepts

Basic rules

The simple-page-master's width and height properties shall define the TrimBox. If there is no bleed and crop mark area, the MediaBox will be equal to the TrimBox. In the PDF case, just the MediaBox is generated and the other values follow the defaulting rules of the PDF specification.

Extensions

fox:bleed

If there is only one value, it applies to all sides. If there are two values, the top and bottom bleed widths are set to the first value and the right and left bleed widths are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values, they apply to the top, right, bottom, and left, respectively. (Corresponds to http://www.w3.org/TR/xsl11/#padding)

This extension indirectly defines the BleedBox and is calculated by expanding the TrimBox by the bleed widths. The lengths must be non-negative.

fox:crop-offset

Same behaviour as with fox:bleed.

This extension indirectly defines the MediaBox and is calculated by expanding the TrimBox by the crop offsets. The lengths must be non-negative.

fox:crop-box

Alternative names due to the closeness to fox:crop-offset: crop-box-selector, crop-box-source, page-clip-area

The crop box controls how Acrobat displays the page (CropBox in PDF) or how the Java2DRenderer sizes the output media. The PDF spec defines that the CropBox defaults to the MediaBox. This extension follows that definition. To simplify usage and cover most use cases, the three supported enumeration values "trim-box", "bleed-box" and "media-box" set the CropBox to one of those three other boxes.

If requested in the future, we could offer to specify the CropBox in absolute coordinates rather than just be referencing another box.

Notes

Further Ideas

PrepressSupport (last edited 2009-09-20 23:52:24 by localhost)