src/Smalot/PdfParser/Document.php
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;
            }
        }
    }
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;
            }
        }
    }
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 ; } } }
Build dictionary based on type header field.
Build dictionary based on type header field .