Smalot\PdfParser\Document::buildDictionary PHP Method

buildDictionary() protected method

Build dictionary based on type header field.
protected buildDictionary ( )
    protected function buildDictionary()
    {
        // Build dictionary.
        $this->dictionary = array();
        foreach ($this->objects as $id => $object) {
            $type = $object->getHeader()->get('Type')->getContent();
            if (!empty($type)) {
                $this->dictionary[$type][$id] = $id;
            }
        }
    }