Aus Verwaltungspreis.gv.at
Admin (Diskussion | Beiträge) (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ü…“) |
Admin (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
<noinclude>__NOTOC__ | <noinclude>__NOTOC__ | ||
− | + | 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: | |
− | + | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | |
− | + | |url=https://ak.knowledge.wiki/img_auth.php/8/88/Betriebsratsfonds_2024_brosch%C3%BCre.pdf | |
+ | |width=750 | ||
+ | |height=1050 | ||
+ | }}</nowiki> | ||
− | == | + | == 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 == | ||
+ | {{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