Instance variables differ from content variables in that they all start with a
For an object which is a reference to an object in some source, this holds
the reference to the source object, so that should the reference have to
be de-referenced, then we know where to go and get the info.
' objnum' (R)
The object number in the source (only for object references)
' objgen' (R)
The object generation in the source
There are other instance variables which are used by the
parent for file control.
This marks whether the object is in the free list and available for re-use
as another object elsewhere in the file.
Holds a direct reference to the next free object in the free list.
Releases ALL of the memory used by this indirect object, and all of its
component/child objects. This method is called automatically by
(so you don't have to call it yourself).
Note: it is important that this method get called at some
point prior to the actual destruction of the object. Internally, PDF files
have an enormous amount of cross-references and this causes circular
references within our own internal data structures. Calling
'"release()"' forces these circular
references to be cleaned up and the entire internal data structure
This merges content information into an object reference placeholder. This
occurs when an object reference is read before the object definition and the
information in the read data needs to be merged into the object placeholder.
Returns a new copy of this object. The object is assumed to be some kind of
associative array and the copy is a deep copy for elements which are not PDF
objects, according to $pdf, and shallow copy for those
that are. Notice that calling "copy" on an
object forces at least a one level copy even if it is a PDF object. The
returned object loses its PDF object status though.
If $res is defined then the copy goes into
that object rather than creating a new one. It is up to the caller to bless
$res, etc. Notice that elements from
$self are not copied into
$res if there is already an entry for them existing