Find out in this Article,
- which PageBoxes are present in a PDF,
- which meaning is assigned to each Page Box,
- how PageBoxes should be arranged in a PDF and
- how you can edit the PageBoxes.
1. Introduction
A PDF file can contain up to five PageBoxes, whereby one PageBox - the MediaBox - must always be present in a PDF. All other PageBoxes are optional.
In the PDF Editor, it is possible to display, add or remove PageBoxes as well as to edit their positioning. A distinction is made between the following five PageBoxes, which should be nested in the following order:
- TrimBox - represents the final size of the printed and trimmed document. A document that is designed for printing requires a Trim Box. The size of this box must be smaller or the same size as the Bleed Box, Crop Box and Media Box.
- BleedBox – represents an extended area around the Trim Box in which printable content is to be located. Although this printed content is ultimately cut away, it serves as a safety area so that no "bleed" (white paper) is created at the edge when it is cut away. This box should always be larger than the Trim Box, but smaller than or equal to the Crop Box and Media Box.
- ArtBox –describes a Box that surrounds all printable objects and is therefore used to place the page content. In many applications, however, this Box is also used as a description for the trimmed area (Trim Box), which sometimes leads to confusion during further processing. For this reason, the ISO standard PDF/X-15930 specifies that either the Trim Box or the Art Box may be present in a PDF/X file - both are prohibited. In practice, it has become common practice that the final size of the file is described with the Trim Box.
- CropBox – is created by cropping the page with a suitable tool. The Crop Box is used as standard for display in PDF display programs as well as for placing PDF files in layout programs. This Box should always be larger than or equal to the Bleed Box but smaller than or equal to the Media Box.
- MediaBox – represents the physical size of the media and normally corresponds to the selected paper size used for printing.
2. Show PageBoxes
The View and Analyze [1] tab contains the PageBox [2] settings area. This shows you all existing PageBoxes for the current page, including their size.
Figure 1: The settings area PageBoxes in the View and Analyze tab
You can determine which PageBoxes are to be displayed by clicking on the circle symbol [3] in front of the name of the Page Box. The respective PageBox is displayed as a dashed line in the color of the circle symbol.
- MediaBox [4] - Pink dashed line
- CropBox [5] - Dashed black
- ArtBox [6] - Dashed red
- BleedBox [7] - Dashed blue
- TrimBox [8] - Dashed green
Figure 2: Example file with correctly embedded PageBoxes
3. Edit PageBoxes
At various points in the PDF Editor it is possible to edit the PageBoxes and furthermore to select the Edit PageBox dialog. PageBoxes can be edited in the following places:
- In the settings menu of the PageBox settings area in the View and Analyze tab.
- When using the Crop Tool
C - Via various menu items in the Page menu , which can also be found in some context menu items
3.1. Via "View and Analyze" tab
The View and Analyze [9] tab contains the PageBox [10] settings area. All existing PageBoxes for the current page, including their size, are displayed here. To edit the PageBoxes for the current page, proceed as follows:
- In the View and Analyze [9] tab, go to the PageBox [10] settings area.
- Click on the settings menu [11].
- Open the Set PageBox dialog by clicking on the Set PageBoxes for selected Pages command....
Figure 3: The settings area PageBoxes in the View and Analyze tab
In the Set PageBox dialog, you can make all changes to the PageBoxes and view the Current Dimensions [21] for each individual Page Box. Proceed as follows to edit specific PageBoxes:
- First select which PageBox you want to edit. There are three options available.
- Apply [18] - the selected values are applied to the selected Page Box
- Delete [19] - the selected PageBoxes are deleted
- Unchanged [20] - the selected PageBoxes are excluded from editing.
- Select a PageBox in Copy Values from [12] so that the current values for the selected PageBox are applied in the input fields below.
- X [13] - the horizontal start position of the PageBox starting from the left edge.
- Y [14] - the vertical start position of the PageBox starting from the top edge.
- Width [15] - the current width of the Page Box.
- Height [16] - the current height of the Page Box.
Figure 4: The Set PageBox dialog with which the BleedBox, CropBox and MediaBox can be moved 3mm from the TrimBox
- Then either enter the desired position and size for the PageBoxes set to Apply [18] or, by activating the Add Offset [22] option, determine the offset from the selected PageBox [12] with which the PageBoxes set to Apply [18] should be moved.
- The new position of the PageBox that is set to Apply [18] is displayed live by an orange dashed frame [23].
- If the MediaBox is also changed by the process, the Set MediaBox to Origin [17] option is automatically activated. You can optionally deactivate the checkbox, but in practice this makes no sense.
Figure 5: The changes in the Set PageBox are displayed live
Only for current page
All edits made via the Set PageBox dialog only apply to the PageBox of the current page. The PageBoxes of all other pages remain unchanged.
The application to all pages will be added in a later version.
3.2. Via menus for editing PageBoxes in the "Page" menu
In the Page menu of the PDF Editor, users can influence the PageBox of the current page at any time. There are three menu items available:
- Set MediaBox to Origin... [24] - sets the MediaBox to the origin coordinates 0/0 of the top left corner and moves all other PageBoxes accordingly. This menu command is only accessible if the MediaBox of the current page is not in the origin.
- Set PageBox to selected objects... [25] - sets the TrimBox to the currently selected objects. Selecting this function opens the Set PageBox dialog, in which the dimensions of the selected objects are entered in the dialog for X, Y, width and height (Figure 4) by default. Please note that these dimensions are applied to all PageBoxes by default. If other PageBoxes are not to be changed, set them to Unchanged [20] (Figure 4)
- Set PageBoxes for selected pages... [26] - opens the Set PageBoxes dialog, where you can then carry out the desired changes for the selected PageBoxes.
Figure 6: The Pages menu
Also available in the context menu
The three menu items described above are also available to the user in the context menu at various points in the PDF Editor, if they make any sense at all in the current context.
3.3. Via the "Crop Tool"
If the current page of the PDF file should be cropped, the Crop Tool is available for this purpose in the PDF Editor. To crop the current page, proceed as follows:
- Select the Crop Tool [27] in the toolbar or via the
Ckeyboard shortcut. - Use it to draw the desired section on the current page.
- After releasing the mouse button, the Set PageBox dialog (Figure 4) opens, in which the current dimension of the cropping process is entered in X, Y, Width and Height (Figure 4).
- Now carry out the desired precise adjustment and confirm the dialog by pressing OK.
Figure 7: The toolbar with the Crop Tool
Crop Tool cannot be selected
Please note that it is only possible to edit PageBoxes with the Crop Tool if the current page has a CropBox. As a rule, print data always has a CropBox, which is why this situation will only occur very rarely.
Article update: PDF-Editor 1.10 – 10/2024


