Skip to content
Snippets Groups Projects
Commit 367f28b6 authored by João Ventura's avatar João Ventura
Browse files

Issue #938838: move checkbox settings lower

parent 2ccf100d
Branches
Tags
No related merge requests found
......@@ -33,13 +33,6 @@ function print_pdf_settings() {
'#description' => t('This option selects the PDF generation tool being used by this module to create the PDF version.'),
);
$form['settings']['print_pdf_tcpdf_subsetting'] = array(
'#type' => 'checkbox',
'#title' => t('Enable TCPDF font subsetting'),
'#default_value' => variable_get('print_pdf_tcpdf_subsetting', PRINT_PDF_TCPDF_SUBSETTING_DEFAULT),
'#description' => t('Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing. This option has no effect unless TCPDF is selected above.'),
);
$form['settings']['print_pdf_link_pos'] = array(
'#type' => 'checkboxes',
'#title' => t('PDF version link'),
......@@ -202,6 +195,12 @@ function print_pdf_settings() {
'#maxlength' => 3,
'#description' => t('(TCPDF only) Set the font size to be used for normal text. This is the base value for the scaling applied to other text styles.'),
);
$form['settings']['print_pdf_font_subsetting'] = array(
'#type' => 'checkbox',
'#title' => t('Enable font subsetting'),
'#default_value' => variable_get('print_pdf_font_subsetting', PRINT_PDF_FONT_SUBSETTING_DEFAULT),
'#description' => t('(TCPDF only) Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing.'),
);
$form['settings']['print_pdf_dompdf_unicode'] = array(
'#type' => 'checkbox',
'#title' => t("Use dompdf's Unicode Mode"),
......
......@@ -31,10 +31,10 @@ define('PRINT_PDF_PAGE_ORIENTATION_DEFAULT', 'portrait');
define('PRINT_PDF_AUTOCONFIG_DEFAULT', 1);
define('PRINT_PDF_FONT_FAMILY_DEFAULT', 'dejavusans');
define('PRINT_PDF_FONT_SIZE_DEFAULT', 10);
define('PRINT_PDF_FONT_SUBSETTING_DEFAULT', 0);
define('PRINT_PDF_FILENAME_DEFAULT', '[site:name] - [node:title] - [node:changed:custom:Y-m-d]');
define('PRINT_PDF_DOMPDF_UNICODE_DEFAULT', 0);
define('PRINT_PDF_WKHTMLTOPDF_OPTIONS', "--footer-font-size 7 --footer-right '[page]'");
define('PRINT_PDF_TCPDF_SUBSETTING_DEFAULT', 0);
/**
* Implements hook_permission().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment