Related subjects →  Tutorial , Bleed , Example , Change , Dimensions , Resize , Page .


The PDF we want to fix.

This is the sixth example of how to create an action list. In this case, we are going to modify an erroneous document to add bleed and crop marks. It is a 148 × 215 mm book with a 30 mm spine with 3 mm of bleed missing (one of the most common errors in printing).

Wrong and right page boxes.

This error can be seen with PitStop's "Inspector", where the original page boxes have all been left with the same dimensions.

Warning: For other cases where, for example, the document size has been defined incorrectly (paper size too big and wrongly defined crop marks), this action does not work. We should use a different action list, with a different approach.

The list of actions won't work properly in this PDF.

This is where the value of using PitStop Server instead of PitStop as an Acrobat plugin can be appreciated. The server version is able to use an automated working system with conditional movement of documents, depending on their qualities, sending them to one list of actions or another.

The steps of the list

The steps of the list of actions.

The first thing is fixing the paper size MediaBox and deleting the other page boxes in the document. We do this to avoid problems were other boxes incorrectly defined. We put these actions together in a group called "Remove and adjust previous boxes".

Adding bleed to a PDF.

Then, in a second group of actions called "Fix bleed and add trim marks" we adjust the size of the final printed page (two pages plus spine) (TrimBox here is the full covers of the book) to the size of the paper (MediaBox), we add a bleed box (BleedBox), we add crop marks, we enlarge the size of the media box (MediaBox), we add the necessary bleed, and then we crop what is displayed on screen (CropBox) so that we only see the finished document (TrimBox).

Warning: The use of the "Group actions" operator is not mandatory but we do it to make it easier to analyse possible failures while building the list and to be able to reuse some parts in other lists more easily. If you prefer not to use it, that's fine.

Resize MediaBox to CropBox.

"Change MediaBox". Here we redefine the paper size (MediaBox, the only essential box in a PDF). We resize it as the CropBox, which is what we see on the screen (which matches with what the final result should be once the bleed has been trimmed).

Remove all page boxes from a PDF.

Now we delete all the other boxes in case the creators set them unproperly (the order of removal is irrelevant):

We group all the above steps into a "Group of actions" called "Remove and adjust previous boxes".

Group to fix bleed and add marks.

Now, we create a second "Group of actions" called "Fix bleed and add trim marks" and we gather the remaining actions in the list there.

Resize TrimBox to CropBox.

"Change TrimBox to CropBox size". Now we define a new TrimBox by giving it the size of the CropBox.

Resize BleedBox to TrimBox.

"Change BleedBox to TrimBox size". Next we add a BleedBox, which receives the same size as the TrimBox.

Warning: We do this because usually we cannot create a page box with the size we want directly, but we have to do it in two steps: First we create the box with the same size as an existing box, correctly sized, and, in a second step, we modify it with the "Resize" option.

Add 3mm to the BleedBox.

"Resize BleedBox 3 mm.". Once the BleedBox is defined, we can redefine its size by "resizing" it by 3 mm on all sides. Now we have the two essential boxes (TrimBox and BleedBox) defined with the correct size.

Add trim marks.

"Add page box marks". Now, we add some "Crop Marks" ("InDesign Style"). It is not essential but many printers ask for themt, so we add them.

Resize MediaBox as BleedBox.

"Change MediaBox to BleedBox size". We give the paper (MediaBox) the size of the BleedBox to modify it in a second step.

Add 8 mm. to the MediaBox all around.

"Resize MediaBox 8mm.". In this second step, we redefine the size of the MediaBox by "resizing" it "8 mm." on all sides. We do this in order to fit the trim marks without problems.

Add bleed to a PDF.

"Add bleed". Now we include the command that will add the corresponding bleed by extending the backgrounds, layouts or images as necessary. Remember that for this command to take effect, the TrimBox and BleedBox must be defined and that they must have some difference in size between them (in this case, they must have 3 mm difference on all sides).

Resize CropBox to TrimBox.

"Change CropBox to TrimBox size". This last step is not really needed. What we are going to do is to return  the display on the screen CropBox to what we saw at the beginning, that is: the final size of the document is once trimmed (the TrimBox).

Conclusion

This is one way of creating a list of actions for this purpose, but it is not the only one. As long as the system is not overloaded, the best will always be the most flexible and simplest one. Sometimes, the difference between one method and another is marginal and we should overthink about it.

In this link you can download the list of actions described in this page to understand how it works (any damage or inconvenience it may cause is your responsibility, not the creator's. The list is provided as is and is password protected against any alteration, but it can be opened and examined).