EXTRACTBB(1)
π EXTRACTBB(1) π
okay bestie, welcome to the DVIPDFMx corner of the manual, where we talk about extractbb (and its little twin ebb) π
β¨ NAME β¨
extractbb, ebb β extract bounding box information from graphics files πΌοΈβ¨
πΈ SYNOPSIS πΈ
extractbb [-v|-q] [-O] [-m|-x] file...
π¦ DESCRIPTION π¦
okay so here's the vibe. for every JPEG, PNG, or PDF file you hand it on the command line, extractbb pulls out the bounding box information and writes it into a file with the extension .xbb, plus some header info on top. those files then get used by dvipdfmx or other programs, iykyk. π¦
for PDF files specifically, it also reports the number of pages and the PDF version number. slay. and the input filename extension? upper case or lower case, it literally does not care. π
if you call it as ebb, the output gets written in the ``bb'' format instead (with the extension .bb), exactly like dvipdfm used to do it. and heads up β Xbb might be defined as a synonym for extractbb on your system. π
π OPTIONS π
-vβ be verbose. spill the tea, tell me everything. π£οΈ-qβ be quiet. not a word. π€«-Oβ write the output to standard output instead. π-mβ write the output indvipdfm's ``bb'' format.-xβ write the output indvipdfmx's ``xbb'' format, which is the default, and which is the same onepdfTeXuses. β¨
π OUTPUT FORMATS π
here's the deeper lore on the bb and xbb formats, bestie, sit down π
the original ebb (the one from dvipdfm) straight up ignored density information in bitmap images, and generated bounding boxes assuming 100px = 72bp = 1in. and unfortunately β especially with screenshots β that approach tends to look bad. π like, genuinely tragic.
so extractbb (the one from dvipdfmx) uses density information if it's present. if it's not present, it generates the bounding box with 100px = 100bp. and that? that's exactly what pdfTeX does. periodt. π
π BUGS π
ngl, there is currently no way to specify which bounding box gets taken for PDF files. it will always be the first one from this list, in this order:
ArtBoxTrimBoxBleedBoxMediaBox
(and often only MediaBox is even defined, so π)
also, the reported bounding box always refers to the first page in a PDF file. no cap.
π AUTHOR π
extractbb was written by the DVIPDFMx project team <dvipdfmx@ktug.or.kr>, based on the program ebb by Mark A. Wicks. π«Ά
this manual page was also written by the DVIPDFMx project team, based on a manual page Frank KΓΌster <frank@kuesterei.ch> wrote for the Debian GNU/Linux system. and the best part? it may be used, modified, and/or redistributed by others without contacting the authors. iconic behavior fr fr π
okay that's the whole page bestie, you ate that π this was the DVIPDFMx extractbb manual, dated 20120420 / 20 April 2012, and you can find it living under EXTRACTBB(1). go forth and extract those bounding boxes, main character β¨ππ
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- fedora 44: texlive-extractbb 12:svn77855-105.fc44 Β· CC-BY-SA-4.0
- fedora 44: texlive-extractbb 12:svn77855-111.fc44 Β· CC-BY-SA-4.0
- opensuse-leap 16.0: texlive-extractbb-doc 2025.221.1.1.0svn73916-160000.3.1 Β· LPPL-1.0
- ubuntu stonking: texlive-binaries 2026.20260303.78225+ds-5ubuntu1 Β· TeX-Live
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms