r78526 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78525‎ | r78526 | r78527 >
Date:00:55, 17 December 2010
Author:nad
Status:deferred
Tags:
Comment:
add linespacing option
Modified paths:
  • /trunk/extensions/PdfBook/PdfBook.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PdfBook/PdfBook.php
@@ -16,7 +16,7 @@
1717 */
1818 if( !defined( 'MEDIAWIKI' ) ) die( "Not an entry point." );
1919
20 -define( 'PDFBOOK_VERSION', "1.0.8, 2010-11-03" );
 20+define( 'PDFBOOK_VERSION', "1.0.9, 2010-12-17" );
2121
2222 $wgExtensionFunctions[] = 'wfSetupPdfBook';
2323 $wgHooks['LanguageGetMagic'][] = 'wfPdfBookLanguageGetMagic';
@@ -84,6 +84,7 @@
8585 $bottom = $this->setProperty( 'BottomMargin','1cm' );
8686 $font = $this->setProperty( 'Font', 'Arial' );
8787 $size = $this->setProperty( 'FontSize', '8' );
 88+ $ls = $this->setProperty( 'LineSpacing', 1 );
8889 $linkcol = $this->setProperty( 'LinkColour', '217A28' );
8990 $levels = $this->setProperty( 'TocLevels', '2' );
9091 $exclude = $this->setProperty( 'Exclude', array() );
@@ -166,7 +167,7 @@
167168 header( "Content-Disposition: attachment; filename=\"$book.pdf\"" );
168169 $cmd = "--left $left --right $right --top $top --bottom $bottom";
169170 $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";
171172 $cmd .= "$toc --no-title --format pdf14 --numbered $layout $width";
172173 $cmd = "htmldoc -t pdf --charset $charset $cmd $file";
173174 putenv( "HTMLDOC_NOCGI=1" );

Status & tagging log