The following example shows you how to export the whole document to comma separated values with a single call. The getCsv method writes every table, each preceded by its name, and quotes the fields that contain a comma, a quotation mark or a line break, as specified by RFC 4180.