Extension:PDFEmbed/zh

Category:LGPL licensed extensions/zh
PDFEmbed
Category:Stable extensions/zh
Category:Tag extensions/zh, Category:Media handling extensions/zh
描述 允許將PDF文件嵌入頁面
作者 Alexia E. Smith, Wolfgang Fahl, Mark A. Hershberger, Chris Koerner and Spas Z.Spasov (Alexia E. Smith留言)
最新版本 3.0.1 (2023-01-24)
MediaWiki >= 1.40.0
PHP 7.3+
GNU較寬鬆公共授權條款3.0
下載 Category:Extensions in GitHub version control/zh
$wgPdfEmbed (width, height)
pdf
季度下載量 8 (Ranked 104th)
Category:All extensions/zh

PDFEmbed擴展允許PDF文件(上傳到Wiki)可以使用<pdf></pdf>標籤嵌入到Wiki頁面中。 將自動添加PDF文件擴展,並且必須配置默認權限。 將來的功能將允許此擴展充當PDF文件的媒體處理程序。

安裝

If the default configuration needs to be altered add these settings to the "LocalSettings.php" file below the require:

// Default width for the PDF object container.
$wgPdfEmbed['width'] = 800;

// Default height for the PDF object container.
$wgPdfEmbed['height'] = 1090;

//Allow user the usage of the pdf tag
$wgGroupPermissions['*']['embed_pdf'] = true;

使用示例

The PDF to be embedded must first be uploaded to the wiki through "Special:Upload".

<pdf>File:Example.pdf</pdf>

具有可選的寬度和高度。

<pdf width="500" height="300">File:Example.pdf</pdf>

呈現文檔後滾動到第10頁。

<pdf page="10">File:Example.pdf</pdf>

參見

Category:Document viewer extensions/zh Category:PDF extensions/zh
Category:All extensions/zh Category:Document viewer extensions/zh Category:Extensions in GitHub version control/zh Category:Extensions included in Fandom/zh Category:Extensions included in Miraheze/zh Category:Extensions included in MyWikis/zh Category:Extensions included in WikiForge/zh Category:Extensions included in wiki.gg/zh Category:Extensions which add rights/zh Category:LGPL licensed extensions/zh Category:Media handling extensions/zh Category:PDF extensions/zh Category:ParserFirstCallInit extensions/zh Category:Stable extensions/zh Category:Tag extensions/zh