[Tex/LaTex] pdfcrop and –bbox command line option

pdfcroppdftex

This tool that's distributed with texlive has no actual documentation for the bbox parameter. It just says that

--bbox "<left> <bottom> <right> <top>"

What units do these number follow? Say I have a letter sized paper, what will be the intervals on which these numbers are defined? Also is the right coordinate computed from the left or right margin? Same with top.

Best Answer

These coordinates are referenced as bp (or big points), which is different from TeX's pt. More specifically, 1in is equivalent to 72bp or 72.27pt.

A letter-sized paper (8.5in x 11in) consists of 612bp x 792bp, typically with coordinates gives as (0,0) and (612,792). Since these are coordinates, they are not calculated from one another. That is, coordinates of the form (100,100) and (712,892) would still represent a letter-sized paper, while (100,100) and (612,792) represents a sheet of paper that has dimensions 7.11in x 9.61in.

Conversions between units is available, as an example, from Is there a command to convert cm to bp?