createDocument takes options.