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:       @info.each { |k, v| res << "\n/#{k} #{v}" }
    60:       res << "\n/Length #{tmp.size} >>\nstream\n#{tmp}\nendstream"
    61:     end
    62:     res << "\nendobj\n"
    63:     res
    64:   end