1PDF::API2::Basic::PDF::UOsbejrinCdo(n3t)ributed Perl DocPuDmFe:n:tAaPtIi2o:n:Basic::PDF::Objind(3)
2
3
4

NAME

6       PDF::API2::Basic::PDF::Objind - PDF indirect object reference. Also
7       acts as an abstract superclass for all elements in a PDF file.
8

INSTANCE VARIABLES

10       Instance variables differ from content variables in that they all start
11       with a space.
12
13       parent
14           For an object which is a reference to an object in some source,
15           this holds the reference to the source object, so that should the
16           reference have to be de-referenced, then we know where to go and
17           get the info.
18
19       objnum (R)
20           The object number in the source (only for object references)
21
22       objgen (R)
23           The object generation in the source
24
25           There are other instance variables which are used by the parent for
26           file control.
27
28       isfree
29           This marks whether the object is in the free list and available for
30           re-use as another object elsewhere in the file.
31
32       nextfree
33           Holds a direct reference to the next free object in the free list.
34

METHODS

36   PDF::API2::Basic::PDF::Objind->new()
37       Creates a new indirect object
38
39   uid
40       Returns a Unique id for this object, creating one if it didn't have one
41       before
42
43   $r->release
44       Releases ALL of the memory used by this indirect object, and all of its
45       component/child objects.  This method is called automatically by
46       '"PDF::API2::Basic::PDF::File->release"' (so you don't have to call it
47       yourself).
48
49       Note: it is important that this method get called at some point prior
50       to the actual destruction of the object.  Internally, PDF files have an
51       enormous amount of cross-references and this causes circular references
52       within our own internal data structures.  Calling '"release()"' forces
53       these circular references to be cleaned up and the entire internal data
54       structure purged.
55
56   $r->val
57       Returns the value of this object or reads the object and then returns
58       its value.
59
60       Note that all direct subclasses *must* make their own versions of this
61       subroutine otherwise we could be in for a very deep loop!
62
63   $r->realise
64       Makes sure that the object is fully read in, etc.
65
66   $r->outobjdeep($fh, $pdf)
67       If you really want to output this object, then you must need to read it
68       first.  This also means that all direct subclasses must subclass this
69       method or loop forever!
70
71   $r->outobj($fh)
72       If this is a full object then outputs a reference to the object,
73       otherwise calls outobjdeep to output the contents of the object at this
74       point.
75
76   $r->elements
77       Abstract superclass function filler. Returns self here but should
78       return something more useful if an array.
79
80   $r->empty
81       Empties all content from this object to free up memory or to be read to
82       pass the object into the free list. Simplistically undefs all instance
83       variables other than object number and generation.
84
85   $r->merge($objind)
86       This merges content information into an object reference place-holder.
87       This occurs when an object reference is read before the object
88       definition and the information in the read data needs to be merged into
89       the object place-holder
90
91   $r->is_obj($pdf)
92       Returns whether this object is a full object with its own object number
93       or whether it is purely a sub-object. $pdf indicates which output file
94       we are concerned that the object is an object in.
95
96   $r->copy($pdf, $res)
97       Returns a new copy of this object. The object is assumed to be some
98       kind of associative array and the copy is a deep copy for elements
99       which are not PDF objects, according to $pdf, and shallow copy for
100       those that are.  Notice that calling "copy" on an object forces at
101       least a one level copy even if it is a PDF object. The returned object
102       loses its PDF object status though.
103
104       If $res is defined then the copy goes into that object rather than
105       creating a new one. It is up to the caller to bless $res, etc. Notice
106       that elements from $self are not copied into $res if there is already
107       an entry for them existing in $res.
108
109
110
111perl v5.32.0                      2020-07-28  PDF::API2::Basic::PDF::Objind(3)
Impressum