{
    "content": [
        {
            "type": "text",
            "text": "# PDF::API2::Basic::PDF::Dict (perldoc)\n\n## NAME\n\nPDF::API2::Basic::PDF::Dict - Low-level dictionary and stream objects\n\n## Sections\n\n- **NAME**\n- **INSTANCE VARIABLES**\n- **METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PDF::API2::Basic::PDF::Dict",
        "section": "",
        "mode": "perldoc",
        "summary": "PDF::API2::Basic::PDF::Dict - Low-level dictionary and stream objects",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "INSTANCE VARIABLES",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 22,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "PDF::API2::Basic::PDF::Dict - Low-level dictionary and stream objects\n",
                "subsections": []
            },
            "INSTANCE VARIABLES": {
                "content": "There are various special instance variables which are used to look after, particularly,\nstreams. Each begins with a space:\n\nstream\nHolds the stream contents for output\n\nstreamfile\nHolds the stream contents in an external file rather than in memory. This is not the same as\na PDF file stream. The data is stored in its unfiltered form.\n\nstreamloc\nIf both ' stream' and ' streamfile' are empty, this indicates where in the source PDF the\nstream starts.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "$type = $d->type($type)\nGet/Set the standard Type key. It can be passed, and will return, a text value rather than a\nName object.\n\n@filters = $d->filter(@filters)\nGet/Set one or more filters being used by the optional stream attached to the dictionary.\n\n$d->outobjdeep($fh)\nOutputs the contents of the dictionary to a PDF file. This is a recursive call.\n\nIt also outputs a stream if the dictionary has a stream element. If this occurs then this method\nwill calculate the length of the stream and insert it into the stream's dictionary.\n\n$d->readstream($forcememory)\nReads in a stream from a PDF file. If the stream is greater than \"PDF::Dict::mincache\" (defaults\nto 32768) bytes to be stored, then the default action is to create a file for it somewhere and\nto use that file as a data cache. If $forcememory is set, this caching will not occur and the\ndata will all be stored in the $self->{' stream'} variable.\n\n$d->val\nReturns the dictionary, which is itself.\n",
                "subsections": []
            }
        }
    }
}