Skip to content
Permalink
Browse files

Allow set the orientation when exporting thematic to pdf - refs BT#12665

  • Loading branch information...
AngelFQC committed Apr 26, 2017
1 parent dbfd7a8 commit 8af6ed9d4e7286386043dd32b5d799bdfea1aa06
Showing with 7 additions and 3 deletions.
  1. +4 −2 main/course_progress/thematic_controller.php
  2. +3 −1 main/install/configuration.dist.php
@@ -248,14 +248,16 @@ public function thematic($action)
$template = $view->get_template('course_progress/pdf_single_thematic.tpl');
$pdfOrientation = api_get_configuration_value('single_thematic_pdf_orientation');
Export::export_html_to_pdf(
$view->fetch($template),
[
'filename' => get_lang('Thematic').'-'.api_get_local_time(),
'pdf_title' => get_lang('Thematic'),
'add_signatures' => ['Drh', 'Teacher', 'Date'],
'format' => 'A4-L',
'orientation' => 'L'
'format' => $pdfOrientation !== 'portrait' ? 'A4-L' : 'A4-P',
'orientation' => $pdfOrientation !== 'portrait' ? 'L' : 'P'
]
);
break;
@@ -362,6 +362,8 @@
'#f0f' => 'another caption'
];*/
// Save question titles with HTML
$_configuration['question_title_html'] = false;
// $_configuration['question_title_html'] = false;
// Show the full toolbar set to all CKEditor
//$_configuration['full_ckeditor_toolbar_set'] = false;
// Allow change the orientation when export a single (course progress) thematic to pdf. Portrait or landscape
//$_configuration['single_thematic_pdf_orientation'] = 'landscape';

0 comments on commit 8af6ed9

Please sign in to comment.
You can’t perform that action at this time.