Index: trunk/extensions/PdfBook/PdfBook.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | */ |
18 | 18 | if( !defined( 'MEDIAWIKI' ) ) die( "Not an entry point." ); |
19 | 19 | |
20 | | -define( 'PDFBOOK_VERSION', "1.0.8, 2010-11-03" ); |
| 20 | +define( 'PDFBOOK_VERSION', "1.0.9, 2010-12-17" ); |
21 | 21 | |
22 | 22 | $wgExtensionFunctions[] = 'wfSetupPdfBook'; |
23 | 23 | $wgHooks['LanguageGetMagic'][] = 'wfPdfBookLanguageGetMagic'; |
— | — | @@ -84,6 +84,7 @@ |
85 | 85 | $bottom = $this->setProperty( 'BottomMargin','1cm' ); |
86 | 86 | $font = $this->setProperty( 'Font', 'Arial' ); |
87 | 87 | $size = $this->setProperty( 'FontSize', '8' ); |
| 88 | + $ls = $this->setProperty( 'LineSpacing', 1 ); |
88 | 89 | $linkcol = $this->setProperty( 'LinkColour', '217A28' ); |
89 | 90 | $levels = $this->setProperty( 'TocLevels', '2' ); |
90 | 91 | $exclude = $this->setProperty( 'Exclude', array() ); |
— | — | @@ -166,7 +167,7 @@ |
167 | 168 | header( "Content-Disposition: attachment; filename=\"$book.pdf\"" ); |
168 | 169 | $cmd = "--left $left --right $right --top $top --bottom $bottom"; |
169 | 170 | $cmd .= " --header ... --footer $footer --headfootsize 8 --quiet --jpeg --color"; |
170 | | - $cmd .= " --bodyfont $font --fontsize $size --linkstyle plain --linkcolor $linkcol"; |
| 171 | + $cmd .= " --bodyfont $font --fontsize $size --fontspacing $ls --linkstyle plain --linkcolor $linkcol"; |
171 | 172 | $cmd .= "$toc --no-title --format pdf14 --numbered $layout $width"; |
172 | 173 | $cmd = "htmldoc -t pdf --charset $charset $cmd $file"; |
173 | 174 | putenv( "HTMLDOC_NOCGI=1" ); |