擴展:電子PDF服務

本頁使用了標題或全文手工轉換
From mediawiki.org
This page is a translated version of the page Extension:ElectronPdfService and the translation is 36% complete.
Outdated translations are marked like this.
MediaWiki扩展手册
ElectronPdfService
发行状态: 穩定版
实现 用户界面
描述 透過電子PDF服務,添加基於瀏覽器的PDF渲染支持
作者 Wikimedia Germany (WMDE) – Roadmap
最新版本 continuous updates
兼容性政策 快照跟随MediaWiki发布。 master分支不向后兼容。
MediaWiki 1.25+
数据库更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
示例 Wikipedia article
  • $wgElectronPdfServiceRESTbaseURL
季度下載量 44 (Ranked 120th)
正在使用的公开wiki数 857 (Ranked 301st)
前往translatewiki.net翻譯ElectronPdfService扩展
問題 开启的任务 · 报告错误

電子PDF服務(ElectronPdfService)擴充套件提供基於瀏覽器的PDF渲染支持。([$url 電子服務]需要單獨安裝)。 (Proton needs to be installed separately.)

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

描述

該擴展透過RESTBase API端點 提供一種方便的方式存取[$url 電子服務]。

這裡有一個例子: 關於柏林的PDF檔

安裝

  • 安裝Proton
  • Install RESTBase, and set up a config similar to config.example.wikimedia.yaml. Adjust the PDF server URL to reflect your host & port.
  • 下载文件,并将其放置在您extensions/文件夹中的ElectronPdfService目录内。
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ElectronPdfService
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'ElectronPdfService' );
    $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

用法

  • 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