Added stream options

Added stream options for document exporting in case the stream is needed
afterwards.