Extension:ElectronPdfService

This page is a translated version of the page Extension:ElectronPdfService and the translation is 27% complete.
Outdated translations are marked like this.
Manuel des extensions MediaWiki
ElectronPdfService
État de la version : stable
Implémentation Interface utilisateur
Description Fournit un accès au service Electron pour un rendu PDF sur navigateur
Auteur(s) Wikimedia Germany (WMDE) – Roadmap
Dernière version continuous updates
Politique de compatibilité Versions ponctuelles alignées avec MediaWiki. Le master n'est pas compatible arrière.
MediaWiki >= 1.42
Modifie la base
de données
Non
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement
Exemple Wikipedia article
  • $wgElectronPdfServiceRESTbaseURL
Téléchargements trimestriels 33 (Ranked 114th)
Utilisé par les wikis publics 857 (Ranked 301st)
Traduire l’extension ElectronPdfService sur translatewiki.net si elle y est disponible
Problèmes Tâches ouvertes · Signaler un bogue

L'extension ElectronPdfService fournit un accès au service Electron pour le rendu PDF sur navigateur. (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 RESTBase, and set up a config similar to config.example.wikimedia.yaml. Adjust the PDF server URL to reflect your host & port.
  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé ElectronPdfService dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ElectronPdfService
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'ElectronPdfService' );
    $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
    
  •   Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

Utilisation

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

Liens

Voir aussi