擴展:電子PDF服務

From mediawiki.org
This page is a translated version of the page Extension:ElectronPdfService and the translation is 64% complete.
MediaWiki扩展手册
ElectronPdfService
发行状态: 稳定版
实现 用户界面
描述 提供对基于浏览器的 PDF 渲染的 Proton 服务的访问
作者 Wikimedia Germany (WMDE) – Roadmap
最新版本 continuous updates
兼容性政策 快照跟随MediaWiki发布。 master分支不向后兼容。
MediaWiki >= 1.42
数据库更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
示例 Wikipedia article
  • $wgElectronPdfServiceRESTbaseURL
季度下載量 34 (Ranked 107th)
正在使用的公开wiki数 857 (Ranked 301st)
前往translatewiki.net翻譯ElectronPdfService扩展
問題 开启的任务 · 报告错误

ElectronPdfService 扩展提供对 Proton 服务的访问,用于基于浏览器的 PDF 渲染。 (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 端點 提供一種方便的方式存取质子服务。

這裡有一個例子: 關於柏林的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目录内。
    开发者和代码贡献人员应从Git安装扩展,输入: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.

链接

参见