Extension:ElectronPdfService

Category:GPL licensed extensions
MediaWiki extensions manual
ElectronPdfService
Release status: stableCategory:Stable extensions
Implementation User interfaceCategory:User interface extensions
Description Provides access to the Proton service for browser-based PDF rendering
Author(s) Wikimedia Germany (WMDE) – Roadmap
Latest version continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Example Wikipedia article
  • $wgElectronPdfServiceRESTbaseURL
Quarterly downloads 13 (Ranked 82nd)
Public wikis using 857 (Ranked 301st)
Translate the ElectronPdfService extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The ElectronPdfService extension provides access to the Proton service for browser-based PDF rendering. (Proton needs to be installed separately.)

Historically, this extension provided access to the now defunct Electron PDF Service instead of Proton, hence its name.

Description

The extension provides a handy way to access the Proton service via a RESTBase API endpoint.

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

Installation

  • Install Proton
  • Install RESTBase, and set up a config similar to config.example.wikimedia.yaml. Adjust the PDF server URL to reflect your host & port.
  • Download and move the extracted ElectronPdfService folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ElectronPdfService
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ElectronPdfService' );
    $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

  • Once the extension is installed, the “⧼ElectronPdfService-download-label⧽” link in the MediaWiki sidebar will lead you to a new selection screen.
  • Click the “⧼ElectronPdfService-download-button⧽” button to get the PDF.
  • Note: if there is no alternative rendering method available on the Wiki, “⧼ElectronPdfService-download-label⧽” will immediately serve you the Proton rendered PDF without showing a selection screen.

See also

Category:PDF extensions Category:Extensions used on Wikimedia#ElectronPdfService
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions included in WikiForge Category:Extensions used on Wikimedia Category:Extensions with release branches compatibility policy Category:GPL licensed extensions Category:PDF extensions Category:SidebarBeforeOutput extensions Category:Stable extensions Category:User interface extensions