1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Contains the administrative functions of the print_pdf_dompdf sub-module.
|
6
|
*
|
7
|
* This file is included by the print_pdf_dompdf module, and includes the
|
8
|
* settings form.
|
9
|
*
|
10
|
* @ingroup print
|
11
|
*/
|
12
|
|
13
|
/**
|
14
|
* Form constructor for the dompdf options settings form.
|
15
|
*
|
16
|
* @ingroup forms
|
17
|
*/
|
18
|
function print_pdf_dompdf_settings() {
|
19
|
$form['settings'] = array(
|
20
|
'#type' => 'fieldset',
|
21
|
'#title' => t('dompdf options'),
|
22
|
);
|
23
|
|
24
|
$form['settings']['print_pdf_dompdf_unicode'] = array(
|
25
|
'#type' => 'checkbox',
|
26
|
'#title' => t("Use dompdf's Unicode Mode"),
|
27
|
'#default_value' => variable_get('print_pdf_dompdf_unicode', PRINT_PDF_DOMPDF_UNICODE_DEFAULT),
|
28
|
'#description' => t("If enabled, dompdf's Unicode mode is used. If not, the module will attempt to convert some non-ASCII chars to ISO-8859-1."),
|
29
|
);
|
30
|
$form['settings']['print_pdf_dompdf_font_subsetting'] = array(
|
31
|
'#type' => 'checkbox',
|
32
|
'#title' => t('Enable font subsetting'),
|
33
|
'#default_value' => variable_get('print_pdf_dompdf_font_subsetting', PRINT_PDF_DOMPDF_FONT_SUBSETTING_DEFAULT),
|
34
|
'#description' => t('Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing.'),
|
35
|
);
|
36
|
|
37
|
return system_settings_form($form);
|
38
|
}
|