             .replace(/&lt;/g, '<')
             .replace(/&gt;/g, '>')
             .replace(/&amp;/g, '&')
-    
+        
         isString: yes
         toString: -> string
         

    @convert: (object) ->
        if Array.isArray object
            items = (PDFObject.convert e for e in object).join(' ')
            return "[" + items + "]"
            
        else if typeof object is 'string'
            return '/' + object

        else if object?.isString
            return '(' + object + ')'
            
        else if object instanceof PDFReference
            return object.toString()

                out.push '/' + key + ' ' + PDFObject.convert(val)
                
            out.push '>>'
            out.join '\n'
            
        else 
            '' + object
            
    @s: (string) ->
        string = string.replace(/\\/g, '\\\\\\\\')
