擴展:電子PDF服務

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
季度下載量 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