$r->content_type('application/pdf'); $r->headers_out->{'Content-Disposition'} = 'attachment; filename=adobe.pdf'; $r->send_http_header;