Coverage for pdfrw/pdfrw/objects/pdfindirect.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# A part of pdfrw (https://github.com/pmaupin/pdfrw)
2# Copyright (C) 2006-2015 Patrick Maupin, Austin, Texas
3# MIT license -- See LICENSE.txt for details
6class _NotLoaded(object):
7 pass
10class PdfIndirect(tuple):
11 ''' A placeholder for an object that hasn't been read in yet.
12 The object itself is the (object number, generation number) tuple.
13 The attributes include information about where the object is
14 referenced from and the file object to retrieve the real object from.
15 '''
16 value = _NotLoaded
18 def real_value(self, NotLoaded=_NotLoaded):
19 value = self.value
20 if value is NotLoaded:
21 value = self.value = self._loader(self)
22 return value