Add regression test before stream-ize PDFWriter.
Support stream writing. Now about 30 pages are written, but more than that, it becomes OutOfMemory exception.
Currently, unit test is not passed because of 4 byte binary comparison.