MT2268 Printing html notices on pdf printers
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 27 Jan 2010 08:52:49 +0000 (09:52 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 28 Jan 2010 14:11:56 +0000 (15:11 +0100)
commitac7cea8dba852fa9ff191cbb877793e7e7270ddb
tree7f0a35697de77567b53b557ea3c54a18d3ede13d
parenta6e1f838aeaa5095a05d1c5d65e8122da7ed53aa
MT2268   Printing html notices on pdf printers

This adds a shell script which is able to turn html files
into pdf and print them on a printer
It takes a directory where pdf files is laid, a css filename,
a host for printer and a Printername

printoverdues : generates PDF files from html files in directorys and prints them
  usage :
  printoverdues.sh directory [css [printer_host [printername]]]
   - directory      directory to use to apply html2pdf transform
   - css            css file to apply to html
   - printer_host   Network Name or IP of the printer (port possibly included)
   - printer_name   printername
  Note that css printerhost and printername are optional parameters
  Note that this script uses xhtml2pdf command
      xhtml2pdf command comes with pisa (a python library)
               To install you need setuptools library for python
               then type easy_install pisa
misc/cronjobs/printoverdues.sh [new file with mode: 0755]