EXTRACTBB(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸŽ€ EXTRACTBB(1) Β· DVIPDFMx πŸŽ€

bestie, let's talk about extractbb πŸ’– it's the DVIPDFMx manual page and it's giving bounding boxes πŸ“¦βœ¨

✨ NAME ✨

okay so the names are extractbb and ebb, and they both do the same job: pulling bounding box info out of graphics files πŸ¦‹

πŸ’… SYNOPSIS πŸ’…

extractbb [-v|-q] [-O] [-m|-x] file...

🌸 DESCRIPTION 🌸

okay so this is the main vibe 🧚 for every JPEG, PNG, or PDF file you hand it on the command line, extractbb digs up the bounding box info and saves it into a file with the extension .xbb, plus some header info. dvipdfmx (or other programs) can then use those files, iykyk 🫢 for PDF files it also reports the number of pages and the PDF version number, so you get extra tea β˜• the input extension can be upper or lower case, no judgment πŸ’œ

if you call it as ebb, the output is written in the β€œbb” format (with extension .bb) that dvipdfm uses instead πŸ“ and Xbb can be set up as a synonym for extractbb on your system, if you're into that 🌈

πŸŽ€ OPTIONS πŸŽ€

  • -v β€” be verbose, tell me everything πŸ“£
  • -q β€” be quiet 🀫
  • -O β€” write the output to standard output instead of a file πŸ‘‘
  • -m β€” write the output in dvipdfm's β€œbb” format πŸ¦‹
  • -x β€” write the output in dvipdfmx's β€œxbb” format ✨ this one is the default, and it's the same format pdfTeX uses πŸ’…

🧚 OUTPUT FORMATS 🧚

okay so here's the tea on the bb and xbb formats πŸ«–

the original ebb (from dvipdfm) ignored density info in bitmap images and made bounding boxes with 100px = 72bp = 1in. ngl that looks bad for screenshots especially 😭

so extractbb (from dvipdfmx) actually uses density info when it's there πŸ”₯ if it isn't, it makes the bounding box with 100px = 100bp, which is what pdfTeX does. main character energy πŸ‘‘

πŸ™ˆ BUGS πŸ™ˆ

bestie, heads up ⚠️ there is currently no way to pick which bounding box gets used for PDF files. it will always take the first one from this list: ArtBox, TrimBox, BleedBox, MediaBox. (often only MediaBox is defined πŸ₯²) also, the reported bounding box always refers to the first page in a PDF file, so if you were hoping for page five, sorry babe πŸ’€

πŸ’œ 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 🌷 it may be used, modified, and/or redistributed by others without contacting the authors, so go wild 🌈


bestie, that's the whole page πŸ’– this is the DVIPDFMx manual for EXTRACTBB(1), last updated 20120420 (20 April 2012) ✨ slay forever πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • alpine 3.24: texmf-dist-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
  • πŸ’– girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms