Phabricator のプロジェクト名 #Electron-PDFs


Jump to: navigation, search
This page is a translated version of the page Extension:ElectronPdfService and the translation is 33% complete.

Other languages:
Deutsch • ‎English • ‎français • ‎日本語 • ‎português do Brasil • ‎中文
MediaWiki 拡張機能マニュアルManual:Extensions
Crystal Clear action run.png

リリースの状態:Extension status ベータ

実装Template:Extension#type User interface
説明Template:Extension#description Provides access to the Electron Service for browser based PDF rendering
作者Template:Extension#username Wikimedia Germany (WMDE) – Roadmap
最新バージョンTemplate:Extension#version continuous updates
MediaWikiTemplate:Extension#mediawiki 1.25+
データベースの変更Template:Extension#needs-updatephp いいえ
ライセンスTemplate:Extension#license GNU General Public License 2.0 or later
ダウンロード で翻訳を利用できる場合は、ElectronPdfService 拡張機能の翻訳にご協力ください

使用状況とバージョン マトリクスを確認してください。


未解決のタスク · バグを報告

The ElectronPdfService extension provides access to the Electron Service for browser-based PDF rendering.


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. Some more background about the motivation that led to the implementation of the extension and the service can be found here.

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


  • 以下のコードを LocalSettings.php の末尾に追加します:
    wfLoadExtension( 'ElectronPdfService' );
    $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
  • YesY 完了 - ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。


  • 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.