to_s (PDF::Writer::Object::Contents)

        # File lib/pdf/writer/object/contents.rb, line 48
    48:   def to_s
    49:     tmp = @data.dup
    50:     res = "\n#{@oid} 0 obj\n"
    51:     if @raw
    52:       res << tmp
    53:     else
    54:       res << "<<"
    55:       if PDF::Writer::Compression and @parent.compressed?
    56:         res << " /Filter /FlateDecode"
    57:         tmp = Zlib::Deflate.deflate(tmp)
    58:       end
    59:       if (@parent.encrypted?)
    60:         @parent.arc4.prepare(self)
    61:         tmp = @parent.arc4.encrypt(tmp)
    62:       end
    63:       @info.each { |k, v| res << "\n/#{k} #{v}" }
    64:       res << "\n/Length #{tmp.size} >>\nstream\n#{tmp}\nendstream"
    65:     end
    66:     res << "\nendobj\n"
    67:     res
    68:   end