public function getCatalog()
    {
        $xref = $this->getCrossReference();
        $trailer = $xref->getTrailer();

        $catalog = PdfType::resolve(PdfDictionary::get($trailer, 'Root'), $this);

        return PdfDictionary::ensure($catalog);
    }
public function getCatalog()
    {
        $xref = $this->getCrossReference();
        $trailer = $xref->getTrailer();

        $catalog = PdfType::resolve(PdfDictionary::get($trailer, 'Root'), $this);

        return PdfDictionary::ensure($catalog);
    }
public function getCatalog ( ) { $ xref = $ this -> getCrossReference ( ) ; $ trailer = $ xref -> getTrailer ( ) ; $ catalog = PdfType :: resolve ( PdfDictionary :: get ( $ trailer , 'Root' ) , $ this ) ; return PdfDictionary :: ensure ( $ catalog ) ; }
Get the catalog dictionary.

@return PdfDictionary
@throws Type\PdfTypeException
@throws CrossReferenceException
@throws PdfParserException
Get the catalog dictionary .