I need to include a javascript snippet into a existing PDF.
There is a setJavascript function in the Zend/Pdf.php (version 1.5.1) but
the correspondant getJavascript is never called in the whole FW. So if I
write
$pdf =
file_get_contents("http://10.64.98.106/birt/invoice.php?id=".$this->_getParam('id'));
require_once("Zend/Pdf.php");
$pdf = Zend_Pdf::parse($pdf);
$pdf->setJavascript("alert('foo')");
header('Content-Type: application/pdf');
header('Content-Length: ' . strlen($pdf->render()));
echo $pdf->render();
nothing happen:confused:.
Some suggestions? :-D
--
View this message in context:
http://www.nabble.com/Zend_Pdf-and-setJavascript-tp16807995p16807995.html
Sent from the Zend Framework mailing list archive at Nabble.com.