擴展:電子PDF服務
Outdated translations are marked like this.
![]() 發佈狀態: 穩定版本 |
|
---|---|
![]() |
|
实现 | 用户界面 |
描述 | 透過電子PDF服務,添加基於瀏覽器的PDF渲染支持 |
作者 | Wikimedia Germany (WMDE) – Roadmap |
最新版本 | continuous updates |
兼容性政策 | 快照跟随MediaWiki发布。 master分支不向後兼容。 |
MediaWiki | 1.25+ |
数据库更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
示例 | Wikipedia article |
|
|
季度下載量 | 38 (Ranked 140th) |
公開的wiki使用 | 857 (Ranked 301st) |
翻譯ElectronPdfService的扩展,若在translatewiki.net可用 | |
問題 | 尚未完成的工作 · 报告錯誤 |
電子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
目录内。 - 将下列代码放置在您的
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.
链接
See also
- PDF export – summary of all PDF export extensions
- 閱讀更多推動擴展及服務的背景資訊。
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |