Extension:ElectronPdfService/zh

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

描述
該擴展透過提供一種方便的方式存取電子服務. 電子服務為Wiki頁面提供了一種新的渲染方法，作為現有渲染的替代. 使用電子服務的巨大優勢是，其所生成的PDF將包含所有表格以及渲染的信息框和其他模板，這在舊的方法上是不可能做到的. 閱讀更多推動擴展及服務的背景資訊.

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

Ubuntu 16.04.3 (Local Install)
When installing on Ubuntu Server 16.04.3 LTS, the following configuration was needed instead:

$wgElectronPdfServiceRESTbaseURL = "http://HOSTFQDN:3000/pdf?accessKey=secret&url=http://HOSTFQDN/wiki/";

The  is the Apache rewrite URL as this installation mimics the generic variation of re-writing. Change to whatever you use! Yes, hardcoding can be bad, but variables refused to work otherwise.

用法

 * Once the extension is installed, the “” link in the MediaWiki sidebar will lead you to a new selection screen.
 * On the selection screen you can then choose whether you want to render your PDF using Electron (“Single Column”) or using the old OCG/LaTeX renderer (“Two Column”).
 * After you've chosen the desired rendering method, click the “” button to get the PDF.
 * Note: if there is no alternative rendering method available on the Wiki, “” will immediately serve you the Electron rendered PDF without showing a selection screen.

链接

 * Electron service documentation
 * OCG documentation
 * Example PDF
 * Example PDF