Add support for non-pdf output formats.