PrintPDF

From MegaZine3
(Redirected from Print PDF)
Jump to: navigation, search
Plugin: PrintPDF
Print.jpg
Name PrintPDF
Files
  • printpdf.swf
  • printpdf.asul
  • printpdf.php
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

[edit] Settings

This plugin uses or defines the following additional settings.

printpdf

Path to a PDF file which represents the whole book, and which is offered to the user as a download when set.

printpdfname

The name of the PDF file to generate (i.e. the default name given when the download starts).

printpdfsaveonly

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.

[edit] Attributes

This plugin only uses its inherited attributes.

[edit] 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
Personal tools
Namespaces
Variants
Actions
Navigation
documentation
miscellaneous
Toolbox