{
    "content": [
        {
            "type": "text",
            "text": "# pdfattach (man)\n\n## NAME\n\npdfattach - Portable Document Format (PDF) document embedded file creator (version 3.03)\n\n## SYNOPSIS\n\npdfattach [options] input-PDF-file file-to-attach output-PDF-file\n\n## DESCRIPTION\n\nPdfattach adds a new embedded file (attachment) to an existing Portable Document Format (PDF)\nfile.\n\n## TLDR\n\n> Add a new attachment (embedded file) to an existing PDF file.\n\n- Add a new attachment to an existing PDF file:\n  `pdfattach {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}`\n- Replace attachment with same name if it exists:\n  `pdfattach -replace {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}`\n- Display help:\n  `pdfattach {{-h|--help}}`\n- Display version:\n  `pdfattach -v`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (3 subsections)\n- **EXIT CODES**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pdfattach",
        "section": "",
        "mode": "man",
        "summary": "pdfattach - Portable Document Format (PDF) document embedded file creator (version 3.03)",
        "synopsis": "pdfattach [options] input-PDF-file file-to-attach output-PDF-file",
        "tldr_summary": "Add a new attachment (embedded file) to an existing PDF file.",
        "tldr_examples": [
            {
                "description": "Add a new attachment to an existing PDF file",
                "command": "pdfattach {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}"
            },
            {
                "description": "Replace attachment with same name if it exists",
                "command": "pdfattach -replace {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}"
            },
            {
                "description": "Display help",
                "command": "pdfattach {{-h|--help}}"
            },
            {
                "description": "Display version",
                "command": "pdfattach -v"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Replace embedded file with same name (if it exists)"
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pdfdetach",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfdetach/1/json"
            },
            {
                "name": "pdfimages",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfimages/1/json"
            },
            {
                "name": "pdfinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfinfo/1/json"
            },
            {
                "name": "pdftocairo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdftocairo/1/json"
            },
            {
                "name": "pdftohtml",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdftohtml/1/json"
            },
            {
                "name": "pdftoppm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdftoppm/1/json"
            },
            {
                "name": "pdftops",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdftops/1/json"
            },
            {
                "name": "pdftotext",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdftotext/1/json"
            },
            {
                "name": "pdfseparate",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfseparate/1/json"
            },
            {
                "name": "pdfsig",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfsig/1/json"
            },
            {
                "name": "pdfunite",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pdfunite/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-replace",
                        "lines": 2
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-h -help --help",
                        "lines": 1,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "EXIT CODES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pdfattach - Portable Document Format (PDF) document embedded file creator (version 3.03)\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pdfattach [options] input-PDF-file file-to-attach output-PDF-file\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Pdfattach adds a new embedded file (attachment) to an existing Portable Document Format (PDF)\nfile.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-replace",
                        "content": "Replace embedded file with same name (if it exists)\n"
                    },
                    {
                        "name": "-v",
                        "content": "",
                        "flag": "-v"
                    },
                    {
                        "name": "-h -help --help",
                        "content": "",
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            "EXIT CODES": {
                "content": "0      No error.\n\n1      Error opening input PDF file.\n\n2      Error opening file to attach.\n\n3      Output file already exists.\n\n3      There is already an attached file with that name.\n\n5      Error saving the output file.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "The pdfattach software and documentation are copyright 2019 The Poppler developers\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pdfdetach(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1),\npdftotext(1) pdfseparate(1), pdfsig(1), pdfunite(1)\n\n\n\n10 Febuary 2019                              pdfattach(1)",
                "subsections": []
            }
        }
    }
}