Skip to content

GSTbyMM/Mpdf

Repository files navigation

Note: This is fork of the original extension Mpdf working with mpdf 8.2.5 and MediaWiki 1.43.1.

== Installation ==

  1. Download the zip and upload to the extensions dir.

  2. Unzip it in the extensions dir.

  3. Include the following configurations in the LocalSettings.php file

    wfLoadExtension( 'Mpdf' );

    $wgMpdfToolboxLink = true;
    $wgMpdfTab = true;
    $wgMpdfSimpleOutput = true;

== Configuration ==

The following optional parameters can be added to LocalSettings.php:

=== Font Configuration ===

Use these settings to enable support for different languages, including RTL languages like Farsi, Arabic, and Hebrew.

; $wgMpdfDefaultFont : Sets the default font for PDF generation. Supports fonts with Unicode characters. : Default: 'DejaVuSans' (supports Farsi, Arabic, Chinese, etc.) : Example: $wgMpdfDefaultFont = 'DejaVuSans'; : Other options: 'DejaVuSerif', 'Liberation Sans', 'FreeSerif', 'Noto Sans'

; $wgMpdfAutoScriptToLang : Automatically detects text script and applies appropriate font features for proper character shaping (essential for Arabic/Farsi rendering). : Default: true : Example: $wgMpdfAutoScriptToLang = true;

; $wgMpdfUseAdobeCJK : Enables Adobe CJK font support for better Chinese, Japanese, Korean character rendering. : Default: false : Example: $wgMpdfUseAdobeCJK = false;

About

MediaWiki Extension

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors