====== pdftools Plugin ====== ---- plugin ---- description: Additional features for dw2pdf author : Gero Gothe. email : gero.gothe@medizindoku.de type : syntax lastupdate : 2021-11-11 compatible : Greebo, Hogfather depends : dw2pdf, wrap conflicts : similar : tags : pdf downloadurl: https://github.com/practical-solutions/dokuwiki-pdftools/zipball/master bugtracker : https://github.com/practical-solutions/dokuwiki-pdftools/issues sourcerepo : https://github.com/practical-solutions/dokuwiki-pdftools/ ---- ===== Installation ===== Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. ===== Features ===== * 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 ===== 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://raw.githubusercontent.com/practical-solutions/dokuwiki-pdftools/master/img/screenshot2.png}} ---- {{https://raw.githubusercontent.com/practical-solutions/dokuwiki-pdftools/master/img/screenshot1.png}} ---- ===== Inline PDF button ===== Use the ''''-Tag in a document to create an inline button. Pressing this button will generate a PDF with the defined template. Syntax: The option ''quer'' creates the PDF in landscape orientation (German word "quer" = horizontal) Standard parameters for the created PDF are * toc = 0 (no table of content) * tpl = ''template-name'' * orientation=landscape (if the keyword ''quer'' is used) ===== etikett-Tag ===== Inserts an image which is meant for printed documents, where a sticker is to be pasted on. {{https://raw.githubusercontent.com/practical-solutions/dokuwiki-pdftools/master/img/etikett.png}} ===== Additional wrap containers ===== If you have the wrap-plugin installed, you can use these addition classes: Table ist set to 100% width = same as tablewidth-option | Content | Another content | Table without borders | Example | Okay | Table with border only on the bottom of the lines | Another example | Test | Increases the padding of cells in a table | Test | | Test | Text scaled to 115% Text scaled to 90% ===== Create spaces in empty table cells ===== Vertical space | | Test | | | Test | | | Test | Horizontal space | 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: @AUTHOR@ - Name of the author @COMPANY@ - Name of the company which can be configured @APPROVER@ - Name of the approve (requires Approve- und ApprovePlus-Plugin) ===== Upload pdf-templates ===== Upload form for uploading your own pdf-templates. The template files must be placed in a directory, which must bei included in the zip-file. The files are extracted directly into the ''dw2pdf/tpl'' directory. This feature depends on the Linux ''unzip'' programme to work. ===== Erase pdf-templates ===== Button to delete templates from dw2pdf. ===== Ideas for coming versions ===== * online template editor * configurable GET-Parameters for the ''''-Tag and the slider ===== Compatibility ===== Tested with * PHP **7.3** * Dokuwiki / **Hogfather** * [[https://www.dokuwiki.org/plugin:approve|Approve-Plugin]] / **2021-02-17** * [[https://github.com/practical-solutions/dokuwiki-plugin-dw2pdf|dw2pdf / Modified Version]] / **2020-09-16** * [[https://github.com/practical-solutions/dokuwiki-plugin-approveplus|ApprovePlus-Plugin]] / **2020-11-23** ===== Development ===== {{rss>https://github.com/practical-solutions/dokuwiki-pdftools/commits/master.atom date}} ===== Discussion ===== I will be thankful for any approvement suggestions or translations in form of pull-requests.