Plugin Archive Builder | |
note
|
Requirements | |
The print as PDF mechanism uses the standard wiki print feature. However, the PDF generation is done through external HTML to PDF tools. These must be enabled and configured. Here are the alternatives. Chose one:
Note In version tiki<5.0, these preferences must be set directly in the database (do not forget to clear the cache to see them in tiki) Note You may find these settings under Admin Home (tiki-admin.php), and then in the Configuration search box, enter "pdf" (no quotes). After submitting, you will see "Not Found" next to each setting; ignore that (it is saying that the Admin Panel for that setting cannot be found). Why is configuration required?
wkhtmltopdf is written in C++ and there are different packages for Windows/Linux/MacOSX and thus it's better to install separately. Moreover, some servers may not allow shell execution, which is required. This can be worked around by installing it on a different server and accessing it remotely. |
Access rights | |
Because the content of the page is accessed through a URL, access rights must be managed correctly. If permissions protect the page from being visible to anonymous or plugins render it differently for them, an additional feature must be enabled. The Token Access feature allows the archive builder to generate tokens bound to a specific URL. The PDF generator will then include the token as part of the URL. Doing so will grant the same groups to the PDF generator as the groups used by the archive requester. By default, the token will be available for 30 seconds. |
Parameters | |||||||||||||||
Define an archive that can be downloaded Introduced in Tiki 5. Required parameters are in bold .Go to the source code Preferences required: wikiplugin_archivebuilder
|
Body | |
The body of the plugin simply contains a list of rules to determine which file to create and where to take the content from. Each line is independent. Arguments are separated by colons. The first argument indicates how to treat the rest of the line. The following tokens may be used:
|
Example | |
Copy to clipboard
|
Sample webservice | |
Copy to clipboard
Aliases
ArchiveBuilder | Archive Builder | Plugin Archive Builder | Plugin ArchiveBuilder |