         endobj()
         page.contents.append(getObjNumber())
     }
-
+*/
+
+    private func addPageContent(_ page: inout Page) {
 /*
-    private func addPageContent(_ page: inout Page) {
-
         //>> REMOVE FROM THE OPEN SOURCE EDITION!
         if eval && fonts.count > 0 {
             let f1 = fonts[0]



    func append(_ str: String) {
        append(Array(str.utf8))
    }


            page.setBrushColor(brushColor)
        }
        //<<
*/
        var buffer = [UInt8]()
        // let time0 = Int64(Date().timeIntervalSince1970 * 1000)
        // _ = LZWEncode(&buffer, &page.buf)
        _ = FlateEncode(&buffer, &page.buf, RLE: false)
        // let time1 = Int64(Date().timeIntervalSince1970 * 1000)
        // Swift.print(time1 - time0)
        page.buf.removeAll()   // Release the page content memory!

        newobj()
        append("<<\n")
        // append("/Filter /LZWDecode\n")
        append("/Filter /FlateDecode\n")
        append("/Length ")
        append(buffer.count)
        append("\n")
