Requirements:

    * zopyx.convert V 1.0.0 or higher, see http://cheeseshop.python.org/pypi/zopyx.convert
    * BeautifulSoup
    * Plone 3.0, 3.1 (no support for Plone 2.5)
    * Javascript-enabled browser
    * PIL (Python Imaging Library)

Installation

See the Installing an Add-on Product tutorial for more detailed product installation instructions, more information in the bellow link http://plone.org/documentation/tutorial/third-party-products/installing

Installing with buildout, more information in the bellow link http://www.buildout.org/

If you are using buildout to manage your instance installing SmartPrintNG is very simple. You can install it by adding it to the eggs line for your instance:

[instance]
eggs = 
    elementtree
    Products.SmartPrintNG
    zopyx.convert
    BeautifulSoup

Note Installation:

    * ensure that zopyx.convert is installed including all its dependencies
    * unpack the SmartPrintNG archive inside the Products folder of your instance home
    * add SmartPrintNG through the Add/Remove programms functionalty inside the Plone UI
    * if you create a new Plone site, ensure to pick up the proper extension profile matching your Plone version

zopyx.convert Dependencies

    - Java 1.5.0 or higher (FOP 0.94 requires Java 1.6 or higher)
    - 'csstoxslfo'__ (included), more information in the bellow link http://www.re.be/css2xslfo
    - 'XFC-4.0'__ (XMLMind) for ODT, RTF, DOCX and WML support (if needed), more information in the bellow link http://www.xmlmind.com/foconverter
    - 'XINC 2.0'__ (Lunasil) for PDF support (commercial), more information in the bellow link http://www.lunasil.com/products.html
    - or 'FOP 0.94'__ (Apache project) for PDF support (free), more information in the bellow link http://xmlgraphics.apache.org/fop/download.html#dist-type
    - 'BeautifulSoup'__  (will be installed automatically through easy_install. See Installation.), more information in the bellow link http://www.crummy.com/software/BeautifulSoup/
    - 'ElementTree'__ (will be installed automatically through easy_install. See Installation.), more information in the bellow link http://effbot.org/zone/element-index.html

Download and install every one zopyx.convert dependencies and then if is necessary you need to define the environment variables for dependencies (XINC, FOP and XFC libraries) because zopyx.convert needed it by convert on other formats, execute the bellow commands: 

export XINC_HOME=/path/to/dir/setup/xinc/
export FOP_HOME=/path/to/dir/setup/fop-0.95/
export XFC_DIR=/path/to/dir/setup/xfc-42p1/

Optionally you can test if the the environment variables are defined and check out that these values are targets to the real directories the you previous libraries setup, execute the bellow commands: 

echo $XINC_HOME
echo $FOP_HOME 
echo $XFC_DIR 

After updating the configuration you must to run the ''bin/buildout'', which will take care of updating your system.

When finished the buildout you must to run the ''bin/instance start'', which will start your instance with the new SmartPrintNG installation, later you go to add SmartPrintNG from the Add/Remove Products control panel or portal_quickinstaller in the ZMI.
