CreateDocumentAndInit by byteArray