PDFreactor supports the following PDF page boxes:
The TrimBox defines the final print result of the page and contains the page content.
The size of the TrimBox is defined equivalent to the page size, as mentioned in chapter Page Layout, using the "size" property. An example:
size: A4;
In prepress, a printed document can contain more information than just the actual content in the TrimBox (i.e. Printer Marks or bleed). As this information does not belong to the print result and instead needs to be printed around it, a print sheet larger than the print result is needed. The MediaBox defines the size of the print sheet.
Special oversize formats are used as print sheet in such cases. For DIN standard-based formats, the matching oversize formats to the A series are the DIN-RA and DIN-SRA formats. An overview of all supported page sizes can be found in chapter Page Layout
The property "-ro-media-size" is used to specify the media size. An example:
-ro-media-size: SRA4;
The MediaBox is the largest of all 5 page boxes and contains all others which can be smaller or equal than this box.
The BleedBox is an area larger than and containing the TrimBox. Content from the TrimBox may "bleed" into the BleedBox where it is also painted. This is necessary if that content reaches the edge of the print result. The "bleeded" content prevents having unprinted areas on the print result due to unprecise cutting the print sheet.
The size of the BleedBox is defined as a width that adds up on the TrimBox' size. Common bleed values are 3-5 mm (Europe) or 1/8 in (USA/UK).
Setting the bleed size can be achieved by using the property "-ro-bleed-width", as can be seen in the following example:
-ro-bleed-width: 3mm;
The CropBox defines the complete area of the document that should be displayed on screen or printed out.
The crop size can be defined using the property "-ro-crop-size", e.g.
-ro-crop-size: media;
The crop size can be set to a specific page size format (like setting the trim size) or to one of the page boxes "media", "trim" or "art". It is not set by default.
The ArtBox is used to define a specific area inside which the page's content is located.
Using the property "-ro-art-size", the ArtBox can be set to a specific page size or one of the page boxes "media", "trim" or "crop". The ArtBox is also not set by default.
When generating a PDF/A conformant file (see PDF/A conformance), the ArtBox is required not to be defined.