I have some pdf's for professional print that are put in a certain folder. These pdf's may or may not contain spot/Pantone colors. All files in this folder get processed.

I have to cut some white space from the edges and this works fine with Ghostscript 8.7 on a linux machine using the command:

```
gs \
   -o correct_size.pdf \
   -sDEVICE=pdfwrite \
   -g1000x1000 \
   -dPDFSETTINGS=/prepress \
   -c "<</PageOffset [0 0]>> setpagedevice" \
   -f original_size.pdf

```

This problem is the spot/Pantone colors aren't preserved.

The documentation speaks about handling spotcolors but doesn't really give a solution.

Has anyone come across this before or does anyone have another solution? It doesn't have to involve Ghostscript.