function _print_pdf_paper_sizes in Printer, email and PDF versions 7.2
Lists all possible paper sizes.
Parameters
bool $include_default: Flag indicating whether to include the tool's default value.
Return value
array array of strings with the available paper sizes
2 calls to _print_pdf_paper_sizes()
- print_pdf_form_alter in print_pdf/
print_pdf.module - Implements hook_form_alter().
- print_pdf_settings in print_pdf/
print_pdf.admin.inc - Form constructor for the PDF version module settings form.
File
- print_pdf/
print_pdf.module, line 511 - Displays Printer-friendly versions of Drupal pages.
Code
function _print_pdf_paper_sizes($include_default = FALSE) {
$ret = $include_default ? array(
'' => 'Unchanged',
) : array();
$ret += array(
'4A0' => '4A0',
'2A0' => '2A0',
'A0' => 'A0',
'A1' => 'A1',
'A2' => 'A2',
'A3' => 'A3',
'A4' => 'A4',
'A5' => 'A5',
'A6' => 'A6',
'A7' => 'A7',
'A8' => 'A8',
'A9' => 'A9',
'A10' => 'A10',
'B0' => 'B0',
'B1' => 'B1',
'B2' => 'B2',
'B3' => 'B3',
'B4' => 'B4',
'B5' => 'B5',
'B6' => 'B6',
'B7' => 'B7',
'B8' => 'B8',
'B9' => 'B9',
'B10' => 'B10',
'C0' => 'C0',
'C1' => 'C1',
'C2' => 'C2',
'C3' => 'C3',
'C4' => 'C4',
'C5' => 'C5',
'C6' => 'C6',
'C7' => 'C7',
'C8' => 'C8',
'C9' => 'C9',
'C10' => 'C10',
'RA0' => 'RA0',
'RA1' => 'RA1',
'RA2' => 'RA2',
'RA3' => 'RA3',
'RA4' => 'RA4',
'SRA0' => 'SRA0',
'SRA1' => 'SRA1',
'SRA2' => 'SRA2',
'SRA3' => 'SRA3',
'SRA4' => 'SRA4',
'LETTER' => 'Letter',
'LEGAL' => 'Legal',
'EXECUTIVE' => 'Executive',
'FOLIO' => 'Folio',
);
return $ret;
}