Skip to content

bryceac/Pdexport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

PDF Export

Version: 0.1 Copyright: 2013 Bryce Campbell

Description

This Habari plugin is supposed to allow users to save posts as PDFs, so that they can print it through things like HP's ePrint.

Version History

  • 0.1
    Initial Release

Installation

blog root
path to folder where Habari is installed
user
Habari's user directory

Clone this repo or extract the downloaded archive file to the following directory and activate in Habari admin.

blog root/user/plugins/

Support

If you are encountering issues, feel free to let me know at the address below.

Email: habari@brycecampbell.me

FAQ

  1. Why does it take so long for PDF to be made?
    In my testing, the time it takes to generate a PDF depends on the amount of (X)HTML sent to the DomPDF script. The best performance I have seen came from using a print stylesheet that has only the post's content, such as title, publication date, and actual content. DomPDF, as packaged in this plugin, should recognize print style rules by default, if theme has any.
  2. Why does PDF not look exactly like it does when printed?
    There are many reasons this can be a result, some of which lies with DomPDF itself, but one issue could be due to print style rules, and this plugin contains only one to hide the PDF link from the printed page and the generated PDF.
  3. Can I have multiple posts in one PDF?
    No, with the plugin as it is right now, that is not possible and I would focus on manipulating PDF filenames before I even attempt to do this.

License

This plugin is lenses under the MIT license. See LICENSE for details.

Misc.

This plugin has been tested with Habari 0.9. It is not known if it works in earlier versions.

DomPDF

This plugin uses DomPDF, which is licensed under the LGPL, to create PDFs.

Configuration

This plugin cannot be configured in the Habari admin, but if you know how to configure DomPDF, then that should be all that is needed.

About

this Habari plugin allows users to export posts as PDF.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors