PrintPDF
![]() |
|
|---|---|
| Name | PrintPDF |
| Files |
|
| Related plugins | |
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.
Contents |
Settings
|
|
See: Print plugin for inherited settings. |
This plugin uses or defines the following additional settings.
printpdf
- Type: String
Path to a PDF file which represents the whole book, and which is offered to the user as a download when set.
printpdfname
- Type: String
- Default:
book.pdf
The name of the PDF file to generate (i.e. the default name given when the download starts).
printpdfsaveonly
- Type: Boolean
- Default:
false - 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.
Attributes
|
|
See: Print plugin for inherited attributes. |
This plugin only uses its inherited attributes.
Examples
<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 | |
|---|---|
| Plugins | Anchors · Background Sounds · Batchpages · Bookmarks · Console · ElementIDs · Gallery · Google Analytics · Help · JavaScript · Keyboard Navigation · Links · NavigationBar · Options · Overlays · Password · PDFLinks · Print · PrintPDF · SWFAddress· Search · Sidebar · Slideshow · Titles |
| Plugin Articles | Writing a plugin · Writing a plugin II · Plugin development |
