def set_indirect(bool)
            unless bool == true or bool == false
                raise TypeError, "The argument must be boolean"
            end

            if bool == false
                @no = @generation = 0
                @document = nil
                @file_offset = nil
            end

            @indirect = bool
            self
        end
def set_indirect(bool)
            unless bool == true or bool == false
                raise TypeError, "The argument must be boolean"
            end

            if bool == false
                @no = @generation = 0
                @document = nil
                @file_offset = nil
            end

            @indirect = bool
            self
        end
Creates a new PDF Object.


 Sets whether the object is indirect or not.
 Indirect objects are allocated numbers at build time.