Printing Basic Installation

From PartKeepr Wiki
Revision as of 21:20, 10 June 2013 by Boldie (talk | contribs) (Created page with "Category:Printing == First steps to activate printing / renderer == Due to some despondencies to external libraries the renderer are deactivated by default, so no distur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


First steps to activate printing / renderer

Due to some despondencies to external libraries the renderer are deactivated by default, so no disturbance with the main application will happen. To activate a desired renderer you have to set a symlink to the renderer or you have to copy the directory over.

The available renderer are located in "backend/Plugins/PrintingRenderer/" directory of your PartKeepr installation. The active renderer are located in the "backend/PartKeppr/Printing/Renderer" directory. To activate a renderer you have to set a symlink to the directory which contains your desired renderer. Every renderer has its own directory. For e.g. to activate the PDFDefaultRenderer after you have installed tcpdf do the following:

cd src/backend/PartKeepr/Printing/Renderer
ln -s ../../../Plugins/PrintingRenderer/PDFDefaultRenderer PDFDefaultRenderer

Installing tcpdf

The PDFDefaultRenderer uses the tcpdf library to create a pdf file. First of all get tcpdf from the Homepage http://www.tcpdf.org/ or install it from your distribution. If you are installing it on your own, you have to ensure the include_path of your php installation is pointing to the directory where your tcpdf is installed to.