== Installazione di collective.sendaspdf == {{{ - aggiungere in parts = wkhtmltopdf wkhtmltopdf_executable - aggiungere tra gli eggs = collective.sendaspdf - in environment-vars = WKHTMLTOPDF_PATH ${wkhtmltopdf:location}/wkhtmltopdf - [wkhtmltopdf] recipe = hexagonit.recipe.download url = https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2 hash-name=false download-only=True filename = wkhtmltopdf.tar.bz2 - [wkhtmltopdf_executable] recipe = collective.recipe.cmd on_install = true on_update = true cmds = tar jxvf ${wkhtmltopdf:destination}/${wkhtmltopdf:filename} -C ${wkhtmltopdf:destination} cd ${buildout:directory}/parts/wkhtmltopdf mv wkhtmltopdf-i386 wkhtmltopdf chmod +x wkhtmltopdf }}} ---- == fix della visualizzazione del print css - collective.sendaspdf == Nella creazione del pdf, generato dalle pagine plone, c'é un problema di visualizzazione dei tag html "h*", in quanto risultano "accorpati :)". '''Come fixare il problema:''' - creare un file .css nella custom - registrarlo nel portal_css, - important!: specificare media:print - inserire il seguente codice nel file .css {{{ body { font-family:"Times New Roman", Times, serif; font-size: 60%; } .documentFirstHeading { font-size: 2em; font-weight: bold; } h1 { font-size: 2em; font-weight: bold; } h2 { font-size: 1,75em; font-weight: bold; } h3 { font-size: 1,25em; font-weight: bold; } h4 { font-size: 1,25em; font-weight: bold; } h5 { font-size: 1em; font-weight: bold; } h6 { font-size: 0,8em; font-weight: bold; } }}}