     @compress = @document.compress and not @data.Filter
     @uncompressedLength = 0
     @chunks = []
+    @chunksToCompress = [];
     
   initDeflate: ->
     @data.Filter = 'FlateDecode'

      @write chunk
    
    if @deflate
      @deflate.end()
    else
      @finalize()

    
    if @compress
      @initDeflate() if not @deflate
      @chunksToCompress.push(chunk);
    else
      @chunks.push chunk
      @data.Length += chunk.length
