Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
My module is generating a report (HTML) and I use this:
$meta = array(
'url' => $_GET['q'],
'name' => format_username($user),
'title' => t('MyModule Reports - @date', array('@date' => date('F j, Y'))),
);
print_pdf_generate_html($output, $meta, 'pdf_' . date('Y_m_d'));
The PDF comes out, but is empty.
Comments