When using the API to generate reports, how can I specify the output as pdf or csv (instead of the default xml)?
When launching a report with APIv2, you have to include the (required) parameter "output_format_value". You can choose between pdf, html (a zip file), mht, xml, or csv.
You might want to take a look at the APIv2 manual. The information you are looking for is located on pages 53 and 54 of the documentation for QualysGuard v6.15 and you also have examples further in the manual.
Retrieving data ...