EXTRACTBB(1)
π 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
- centos-stream 10: texlive-dvipdfmx 13:20240311-6.el10 Β· GPL-1.0-or-later
- centos-stream 9: texlive-dvipdfmx 9:20200406-26.el9 Β· GPL+
- debian bookworm: texlive-binaries 2022.20220321.62855-5.1+deb12u2
- debian trixie: texlive-binaries 2024.20240313.70630+ds-6 Β· TeX-Live
- fedora 43: texlive-dvipdfmx 11:svn66203-93.fc43 Β· GPL-1.0-or-later
- fedora 43: texlive-dvipdfmx 11:svn66203-95.fc43.1 Β· GPL-1.0-or-later
- ubuntu jammy: texlive-binaries 2021.20210626.59705-1build1
- ubuntu jammy: texlive-binaries 2021.20210626.59705-1ubuntu0.3
- ubuntu noble: texlive-binaries 2023.20230311.66589-9build3 Β· TeX-Live
- ubuntu questing: texlive-binaries 2024.20240313.70630+ds-6ubuntu2 Β· TeX-Live
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms