This plugin is built on the Print plugin, and basically offers the same functionality, except that it does not use a printer available to the client, but instead uses the AlivePDF library to generate a PDF file from the selection the user made. This file can then be saved by the user by "downloading" it, using the PHP script. Note that any other server side scripting language works for this. See the AlivePDF site for more information regarding that.
- Known issue: all objects printed are rasterized first, resulting in a lower resolution (i.e. no vector graphics are output). This is a limitation of the AlivePDF library, and cannot be avoided at this time.
|See: Print plugin for inherited settings.|
This plugin uses or defines the following additional settings.
- Type: String
Path to a PDF file which represents the whole book, and which is offered to the user as a download when set.
- Type: String
The name of the PDF file to generate (i.e. the default name given when the download starts).
- Type: Boolean
- Version: 2.0.11
When set to true, the page selection will never be used. Instead, the button in the navigation bar will directly trigger the download of the PDF set in printpdf. If book@printpdf is not set, this attribute is ignored.
|See: Print plugin for inherited attributes.|
This plugin only uses its inherited attributes.
<book plugins="printpdf" printmaxpages="25" printthumbsperpage="10" printpdfname="MyBrochure.pdf"> <chapter> <page print="hires/a.jpg"> <img src="a.jpg"/> </page> <page print="hires/b.jpg"> <!-- ... --> </page> </chapter> </book>
|MegaZine3 Plugin-related articles|
|Plugin Articles||Writing a plugin · Writing a plugin II · Plugin development|