Re: [fw-general] Zend Date

2010-01-16 Thread Maxence Delannoy
You can write a custom view helper which take a date in -MM-DD
format but display it with another format like MM/DD/ :

class Wiip_Date extends Zend_Date
{
const MYSQL_DATE = '-MM-dd';
const MYSQL_DATETIME = '-MM-dd HH:mm:ss';
}

class Wiip_View_Helper_FormDate extends Zend_View_Helper_FormText
{
public function formDate($name, $value = '', $attribs = null)
{
if (!isset($attribs)) $attribs = array();

(isset($attribs['class'])) ? $attribs['class'] .= ' date' :
$attribs['class'] = 'date';
if (!isset($attribs['maxlength'])) $attribs['maxlength'] =
strlen(Zend_Date::DATE_SHORT);
if (!isset($attribs['size'])) $attribs['size'] =
strlen(Zend_Date::DATE_SHORT);

if (Zend_Date::isDate($value, Wiip_Date::MYSQL_DATE)) {
$date = new Zend_Date($value, Wiip_Date::MYSQL_DATE);
$value = $date-get(Zend_Date::DATE_SHORT);
} elseif ($value == '-00-00') {
$value = '';
}
return parent::formText($name, $value, $attribs);
}
}


Re: [fw-general] Digital sign PDF

2010-01-12 Thread Maxence Delannoy
2010/1/12 Andreas Kraftl andreas.kra...@kraftl.at

 Hello,

 has anybody an idea, how to add a digital signature to an PDF file?

 It must be an X.509 certificate.

 Thanks
 Andreas
 --
 Kraftl EDV - Dienstleistungen
 Linux, Linuxschulungen, Webprogrammierung
 Autofabrikstraße 16/6
 1230 Wien


I want to do the same thing. I've found this :
http://portablesigner.sourceforge.net/ but I've not tried it yet. It's a
java program which can be called from the command line.