{
    "mode": "man",
    "parameter": "EXTRACTBB",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/EXTRACTBB/json",
    "generated": "2026-10-22T13:04:43Z",
    "synopsis": "extractbb [-v|-q] [-O] [-m|-x] file...",
    "sections": {
        "NAME": {
            "content": "extractbb, ebb - extract bounding box information from graphics files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "extractbb [-v|-q] [-O] [-m|-x] file...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "For  each  JPEG,  PNG, or PDF file given on the command line, extractbb extracts the bounding\nbox information and writes it into a file with extension .xbb, together with some header  in‐\nformation.  These  files  can  then be used by dvipdfmx or other programs. For PDF files, the\nnumber of pages and the PDF version number are reported as well.  The input  filename  exten‐\nsion may be in upper or lower case.\n\nIf called as ebb, the output is written in the ``bb'' format (and with extension .bb) as used\nby dvipdfm.  Xbb may be defined as a synomym for extractbb on your system.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-q",
                    "content": "",
                    "flag": "-q"
                },
                {
                    "name": "-O",
                    "content": "",
                    "flag": "-O"
                },
                {
                    "name": "-m",
                    "content": "",
                    "flag": "-m"
                },
                {
                    "name": "-x",
                    "content": "by pdfTeX.\n",
                    "flag": "-x"
                }
            ]
        },
        "OUTPUT FORMATS": {
            "content": "Here are more details about the bb and xbb formats:\n\nThe  original  ebb (from dvipdfm) ignored density information in bitmap images, and generated\nbounding boxes with 100px = 72bp = 1in.  Unfortunately, screenshots (especially) tend to look\nbad with this approach.\n\nSo, extractbb (from dvipdfmx) uses density information if present.  Otherwise,  it  generates\nbounding box with 100px = 100bp.  This is what pdfTeX does.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "There  is  currently no way to specify which bounding box is taken for PDF files. It will al‐\nways be the first one from the following list: ArtBox, TrimBox,  BleedBox,  MediaBox.  (Often\nonly  MediaBox  is  defined.)  Moreover, the reported bounding box always refers to the first\npage in a PDF file.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "extractbb was written by the DVIPDFMx project team <dvipdfmx@ktug.or.kr>, based on  the  pro‐\ngram ebb by Mark A. Wicks.\n\nThis  manual page was also written by the DVIPDFMx project team, based on a manual page Frank\nKüster <frank@kuesterei.ch> wrote for the Debian GNU/Linux system.  It may be used, modified,\nand/or redistributed by others without contacting the authors.\n\n20120420                                    20 April 2012                               EXTRACTBB(1)",
            "subsections": []
        }
    },
    "summary": "extractbb, ebb - extract bounding box information from graphics files",
    "flags": [
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-q",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-O",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-m",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-x",
            "long": null,
            "arg": null,
            "description": "by pdfTeX."
        }
    ],
    "examples": [],
    "see_also": []
}