plugin:pdftools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:pdftools [2020-11-16 20:55] – gero-gothe | plugin:pdftools [2022-10-25 02:59] – [pdftools Plugin] 2406:5a00:9c03:5100:4216:7eff:feb4:fe2 | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
- | email : practical@medizin-lernen.de | + | email : gero.gothe@medizindoku.de |
type : syntax | type : syntax | ||
- | lastupdate : 2020-11-16 | + | lastupdate : 2021-11-11 |
compatible : Hogfather, | compatible : Hogfather, | ||
depends | depends | ||
Line 22: | Line 22: | ||
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
- | ===== Examples/ | ||
- | Presently, this plugin is only offered in **German language.** This will be improved in coming versions. | + | ===== Features ===== |
- | Momentan hat dieses Plugin zwei Funktionen, welches die Tätigkeit von einfachen Anwendern erleichtern soll: | + | * Optional and configurable slider button to chose a template for pdf-generation |
+ | * Configurable pdf-generate button which can be placed in a page | ||
+ | * A set of templates for different purposes which can be installed directly from the admin section | ||
+ | * Upload your own templates in the admin section and option to remove templates | ||
+ | * Additional wrap-containers and some additional syntax for formatting | ||
+ | * Additional replacements which can be used in the templates | ||
- | ==== <etikett> ==== | + | |
+ | ===== Print Button ===== | ||
+ | |||
+ | Activate a print button (slider) which is shown at the bottom right of the screen. You can configure the templates which are the display and can be chosen in order to generate a PDF. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | ---- | ||
+ | ===== Inline PDF button ===== | ||
+ | |||
+ | Use the '' | ||
+ | |||
+ | <pdf template-name> | ||
+ | <pdf template-name quer> | ||
+ | |||
+ | The option '' | ||
+ | |||
+ | Standard parameters for the created PDF are | ||
+ | * toc = 0 (no table of content) | ||
+ | * tpl = '' | ||
+ | * orientation=landscape (if the keyword '' | ||
+ | |||
+ | |||
+ | ===== etikett-Tag ===== | ||
< | < | ||
- | Fügt ein Bild ein, welches die Größe eines durchschnittlichen Etiketts hat. Dies ist für Formulare gedacht, bei denen ein Adressaufkleber platziert werden soll | + | Inserts an image which is meant for printed documents, where a sticker is to be pasted on. |
+ | {{https:// | ||
- | ==== <pdf> ==== | ||
- | <pdf VORLAGENBEZEICHNUNG [quer]> | + | ===== Additional wrap containers ===== |
- | Erzeugt einen Link, bei der eine Wiki-Seite mit der ausgewählten dw2pdf-Vorlage generiert wird. Wird " | + | If you have the wrap-plugin installed, you can use these addition classes: |
+ | <WRAP maxtabelle> | ||
+ | Table ist set to 100% width = same as tablewidth-option | ||
+ | | Content | Another content | | ||
+ | </ | ||
+ | | ||
+ | <WRAP formular> | ||
+ | Table without borders | ||
+ | | Example | Okay | | ||
+ | </ | ||
+ | | ||
+ | <WRAP formular2> | ||
+ | Table with border only on the bottom of the lines | ||
+ | | Another example | Test | | ||
+ | </ | ||
- | ==== Zusätzliche | + | <WRAP platz> |
+ | Increases the padding of cells in a table | ||
+ | | Test | | ||
+ | | Test | | ||
+ | </ | ||
- | Ist das wrap-Plugin installiert, | + | <wrap bigtext> |
+ | |||
+ | <wrap smalltext> | ||
- | | ''< | + | ===== Create spaces in empty table cells ===== |
- | | ''< | + | |
- | | ''< | + | |
- | | ''< | + | |
- | | ''< | + | |
- | | ''< | + | |
+ | Vertical space | ||
- | ==== Abstandshalter ==== | + | | < |
+ | | < | ||
+ | | < | ||
- | Insbesondere für Tabellen gedacht, die leere Zellen enthalten. Styling mittels CSS, welches kompatibel zu mPDF ist, gestaltet sich immer wieder schwierig, sodass dies eine einfache Lösung bietet | + | Horizontal space |
| Test | < | | Test | < | ||
+ | |||
+ | ===== Set of templates ===== | ||
+ | |||
+ | The pdftools-plugin contains a set of templates which can be installed in the admin section. These templates contain additional replacements: | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
- | | < | + | |
- | ==== Vorlagenpaket | + | ===== Upload pdf-templates ===== |
- | Es ist nun ein dw2pdf-Vorlagenpaket integriert. Die Vorlagen lassen sich im admin-Bereich installieren. Zudem sind folgende Replacements für die Vorlagen hinzugefügt worden: | + | Upload form for uploading your own pdf-templates. |
- | @AUTHOR@ | + | The template files must be placed in a directory, which must bei included in the zip-file. The files are extracted directly into the '' |
- | @COMPANY@ - Firmenname | + | |
- | @APPROVER@ - Verwendung nut mit Approve- und ApprovePlus-Plugin | + | |
- | Das ApprovePlus-Plugin findet sich aktuell [[https:// | + | ===== Erase pdf-templates ===== |
- | ==== Druck-Button | + | Button |
- | Es wird ein Druckbutton unten rechts am Bildschirm angezeigt. Dieser kann in der Konfiguration angepasst oder auch ausgeblendet werden. Auf der (Haupt-)Startseite wird er nicht angezeigt. | + | ===== Ideas for coming versions ===== |
+ | |||
+ | * online template editor | ||
+ | * configurable GET-Parameters for the ''< | ||
+ | |||
+ | ===== Compatibility ===== | ||
+ | |||
+ | Tested with | ||
+ | * PHP **7.3** | ||
+ | * Dokuwiki / **Hogfather** | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Development ===== | ||
+ | |||
+ | {{rss> | ||
Line 83: | Line 151: | ||
I will be thankful for any approvement suggestions or translations in form of pull-requests. | I will be thankful for any approvement suggestions or translations in form of pull-requests. | ||
- | |||
plugin/pdftools.txt · Last modified: 2023-10-31 00:17 by Klap-in