splitbrain/dokuwiki-plugin-dw2pdf — Issue #6: pdf sheet size
Author: jgpcx
Created: 2012-01-06 13:29:36+00:00
State: open

It would be nice and helpful to have a config parameter 'pdfsheet' for the default sheet size of the exported pdf.
And It would be more helpful if the user can select an appropriate page size/format when exporting a page
(selection easily done in a template style or action link).

conf/default.php:
+$conf['pdfsheet'] = "A4";

conf/metadata.php:
+$meta['pdfsheet'] = array('string');

lang/en/seetings.php:
+$lang['pdfsheet'] = 'Default pagesize/format e.g. A4, A3-L, ... see mpdf docs';

action.php lines 65 ff
+ $pdfsheet = $_REQUEST['pdfsheet'];
+ if(!$pdfsheet)
+ $pdfsheet = $this->getConf('pdfsheet');
+ if(!$pdfsheet)
+ $pdfsheet = 'A4';

sheet size should possibly be added to cache depends

action.php line 77
- $mpdf = new DokuPDF();
+ $mpdf = new DokuPDF($pdfsheet);

DokuPDF.class.php line 17
- function __construct(){
+ function __construct($format){

DokuPDF.class.php line 21
- parent::__construct('UTF-8-s');
+ parent::__construct('UTF-8-s',$format);

-jerry