From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:ElectronPdfService and the translation is 13% complete.

Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎français • ‎português do Brasil • ‎中文 • ‎日本語
Manuel des extensions MediaWikiManual:Extensions
Crystal Clear action run.svg

État de la version :Extension status beta

ImplémentationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Fournit un accès au service Electron pour un rendu PDF sur navigateur
Auteur(s)Template:Extension#username Wikimedia Germany (WMDE) – Roadmap
Dernière versionTemplate:Extension#version continuous updates
Compatibility policyCompatibility#mediawiki_extensions release branches
MediaWikiTemplate:Extension#mediawiki 1.25+
base de données
LicenceTemplate:Extension#license GNU General Public License 2.0 or later

Traduisez l’extension ElectronPdfService sur translatewiki.net

Vérifiez la matrice des utilisations et des versions.


Tâches ouvertes · Signalez un bug

L'extension ElectronPdfService fournit un accès au service Electron pour le rendu PDF sur navigateur.


The extension provides a handy way to access the Electron Service via a RESTBase API endpoint. The Electron Service provides a new rendering method for Wiki-pages as alternative to the existing OCG/LaTeX rendering. The huge advantage of using the Electron Service is, that the generated PDF will contain all tables as well as rendered infoboxes and other templates which was not possible with the old method. Read more on the background of the motivation for the extension and the service.

And here's an example: PDF for the article about Berlin.


  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
    wfLoadExtension( 'ElectronPdfService' );
    $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
  • YesY Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.


  • Once the extension is installed, the "Download as PDF" link in the MediaWiki sidebar will lead you to a new selection screen.
  • On the selection screen you can then choose whether you want to render your PDF using Electron ("Single Column") or using the old OCG/LaTeX renderer ("Two Column").
  • After you've chosen the desired rendering method, click the "Download" button to get the PDF.
  • Note: if there is no alternative rendering method available on the Wiki, "Download as PDF" will immediately serve you the Electron rendered PDF without showing a selection screen.