PDF

Aus Verwaltungspreis.gv.at
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<noinclude>__NOTOC__ <big>This widget allows you to '''embed PDF files''' on your wiki page.</big> Created by [https://wiki.karlsregion.net/z/User:Wilhelm_Bü…“)
 
Zeile 1: Zeile 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
<big>This widget allows you to '''embed PDF files''' on your wiki page.</big>
+
This widget lets you add any PDF file to your site. In case your browser does not support a PDF plugin a link to download the file will be shown instead.
  
Created by [https://wiki.karlsregion.net/z/User:Wilhelm_Bühler Wilhelm Bühler] and adapted by [https://www.wikihoster.net Karsten Hoffmeyer].
+
To insert this widget, use the following code:
  
== Using this widget ==
+
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
For information on how to use this widget, see [https://www.mediawikiwidgets.org/PDF widget description page on MediaWikiWidgets.org].
+
|url=https://ak.knowledge.wiki/img_auth.php/8/88/Betriebsratsfonds_2024_brosch%C3%BCre.pdf
 +
|width=750
 +
|height=1050
 +
}}</nowiki>
  
== Copy to your site ==
+
== Parameters ==
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
+
* '''url''' - URL of the PDF file being inserted
 +
* '''width''' - maximum width of the iframe (default is 960 for landscape format / set to 750 for portrait format )
 +
* '''height''' - minimum height of the iframe (default is 680 for landscape format / set to 1000 for portrait format )
 +
Usually it is not required to add the height and width parameter for PDF files in landscape format since the display will resize automatically. If you do so it is recommended to have a ration of 1.41 between width and height. However do use the parameters with recommended values for PDF files in the portrait format. This also will resize automatically.
 +
 
 +
== Sample result ==
 +
{{PDF
 +
|Name=Infofolder Verwaltungspreis 2023
 +
|Datei=Verwaltungspreis 2023 Info-Folder.pdf
 +
|Breite=500
 +
|Höhe=660
 +
|Position=rechts
 +
}}
 
</noinclude><includeonly><object class="pdf-widget" data="<!--{$url|validate:url}-->" type="application/pdf" wmode="transparent" style="z-index: 999; height: 100%; min-height: <!--{$height|escape:'html'|default:680}-->px; width: 100%; max-width: <!--{$width|escape:'html'|default:960}-->px;"><param name="wmode" value="transparent">
 
</noinclude><includeonly><object class="pdf-widget" data="<!--{$url|validate:url}-->" type="application/pdf" wmode="transparent" style="z-index: 999; height: 100%; min-height: <!--{$height|escape:'html'|default:680}-->px; width: 100%; max-width: <!--{$width|escape:'html'|default:960}-->px;"><param name="wmode" value="transparent">
 
<p>Ihr Browser unterstützt derzeit keine Anzeige von PDF-Dokumenten mittels Plugin. Sie können das Dokument <a href="<!--{$url|validate:url}-->">hier herunterladen</a>.</p></object></includeonly>
 
<p>Ihr Browser unterstützt derzeit keine Anzeige von PDF-Dokumenten mittels Plugin. Sie können das Dokument <a href="<!--{$url|validate:url}-->">hier herunterladen</a>.</p></object></includeonly>

Version vom 17. Mai 2024, 19:28 Uhr

This widget lets you add any PDF file to your site. In case your browser does not support a PDF plugin a link to download the file will be shown instead.

To insert this widget, use the following code:

{{#widget:PDF
 |url=https://ak.knowledge.wiki/img_auth.php/8/88/Betriebsratsfonds_2024_brosch%C3%BCre.pdf
 |width=750
 |height=1050
}}

Parameters

  • url - URL of the PDF file being inserted
  • width - maximum width of the iframe (default is 960 for landscape format / set to 750 for portrait format )
  • height - minimum height of the iframe (default is 680 for landscape format / set to 1000 for portrait format )

Usually it is not required to add the height and width parameter for PDF files in landscape format since the display will resize automatically. If you do so it is recommended to have a ration of 1.41 between width and height. However do use the parameters with recommended values for PDF files in the portrait format. This also will resize automatically.

Sample result

Ihr Browser unterstützt derzeit keine Anzeige von PDF-Dokumenten mittels Plugin. Sie können das Dokument hier herunterladen.


Wir verwenden Cookies zu Statistikzwecken und zur Qualitätssicherung. Durch Fortfahren auf unserer Website stimmen Sie dieser Verwendung zu.