I have a PDF document, evidently produced using LaTeX, which has wide white margins and crop marks. I'd like to remove these margins and corresponding crop marks. Is there a tool to do it automatically?
EDIT
Werner suggested to use pdfpages
package to include PDF's pages in a LaTeX document. I should actually include only the pages of the PDF I'd like to crop and use options to trim it. I'm waiting for an help in recognizing the most appropriate options to do so.
Best Answer
The pdfcrop utility is made to crop the white borders from a PDF.
If you want to remove a little MORE so that the crop marks are also removed, then use the
--margins
option. Providing a negative margin value will cause a crop of some of your content. The margin value unit is bp. Play with the negative value to remove your tick marks and nothing else.Edit Using OP's sample PDF follows...
Your sample PDF file works for me. I used the following command.
This is your original file
And this is the cropped file
The
pdfcrop
verbose log followsAs you see,
pdfcrop
usedghostscript
. Perhaps yourghostscript
has an issue.