$print_form->{media} = 'file';
# no language override, should always be the object's language
$invoice->flatten_to_form($print_form, format_amounts => 1);
$print_form->{media} = 'file';
# no language override, should always be the object's language
$invoice->flatten_to_form($print_form, format_amounts => 1);