MCPcopy Index your code
hub / github.com/clips/pattern / get_dest

Method get_dest

pattern/web/pdf/pdfparser.py:564–576  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

562 return lookup(d0)
563
564 def get_dest(self, name):
565 try:
566 # PDF-1.2 or later
567 obj = self.lookup_name('Dests', name)
568 except KeyError:
569 # PDF-1.1 or prior
570 if 'Dests' not in self.catalog:
571 raise PDFDestinationNotFound(name)
572 d0 = dict_value(self.catalog['Dests'])
573 if name not in d0:
574 raise PDFDestinationNotFound(name)
575 obj = d0[name]
576 return obj
577
578
579## PDFParser

Callers

nothing calls this directly

Calls 3

lookup_nameMethod · 0.95
dict_valueFunction · 0.90

Tested by

no test coverage detected