Lines Matching defs:parser
33 protected $parser;
50 * @param PdfParser $parser
52 public function __construct(PdfParser $parser)
54 $this->parser = $parser;
62 if ($this->parser !== null) {
63 $this->parser->cleanUp();
68 * Get the pdf parser instance.
74 return $this->parser;
85 return \implode('.', $this->parser->getPdfVersion());
99 $catalog = $this->parser->getCatalog();
101 $pages = PdfType::resolve(PdfDictionary::get($catalog, 'Pages'), $this->parser);
102 $count = PdfType::resolve(PdfDictionary::get($pages, 'Count'), $this->parser);
149 $object = $this->parser->getIndirectObject($reference->value);
165 $page = $this->parser->getIndirectObject($page->value);
166 $dict = PdfType::resolve($page, $this->parser);
170 $kids = PdfType::resolve(PdfDictionary::get($dict, 'Kids'), $this->parser);
188 return new Page($page, $this->parser);
217 $object = $this->parser->getIndirectObject($reference->value);
228 $catalog = $this->parser->getCatalog();
229 $pages = PdfType::resolve(PdfDictionary::get($catalog, 'Pages'), $this->parser);
230 $count = PdfType::resolve(PdfDictionary::get($pages, 'Count'), $this->parser);
231 $kids = PdfType::resolve(PdfDictionary::get($pages, 'Kids'), $this->parser);