擴展:電子PDF服務
Appearance
发行状态: 稳定版 |
|
|---|---|
| 实现 | 用户界面 |
| 描述 | 提供对基于浏览器的 PDF 渲染的 Proton 服务的访问 |
| 作者 | Wikimedia Germany (WMDE) – Roadmap |
| 最新版本 | continuous updates |
| 兼容性政策 | 快照跟随MediaWiki发布。 master分支不向后兼容。 |
| 数据库更改 | 否 |
| 许可协议 | GNU通用公眾授權條款2.0或更新版本 |
| 下載 | |
| 示例 | Wikipedia article |
|
|
| 前往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.
- 下载文件,并解压
ElectronPdfService文件夹到extensions/目录中。
开发者和代码贡献人员应改从Git安装此扩展,输入:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ElectronPdfService
- 請新增下列代码到您的LocalSettings.php文件的底部:
wfLoadExtension( 'ElectronPdfService' ); $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
完成 – 請导航至您的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.
链接
参阅
- PDF export – 所有 PDF 导出扩展的摘要
- 閱讀更多推動擴展及服務的背景資訊。
| 此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
