[reportlab-users] ReportLab + JavaScript
Hector Miuler Malpica Gallegos
miuler at gmail.com
Fri Sep 12 14:36:41 EDT 2008
Is it possible to embed javascript in a pdf?
<?php
/*******************************************************************************
* Software: *
*******************************************************************************/
require_once 'fpdf.php';
require_once 'fpdf_js.php';
class PDF_AutoPrint extends PDF_Javascript
{
function AutoPrint($dialog=false)
{
$param=($dialog ? 'true' : 'false');
$script="print($param);";
$this->IncludeJS($script);
}
}//fin clase
$pdf=new PDF_AutoPrint();
$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetTitle('Reporte');
$pdf->AddPage();
$pdf->AutoPrint(true);
$pdf->Output();
?>
_\|/_
(O-O)
--oOO-(_)-OOo---------------------------
Hector Miuler Malpica Gallegos
Universidad Nacional del Callao - Peru
Escuela de Ingenieria Electronica
usuario registrado #308608
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080912/40bea5bc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080912/40bea5bc/attachment.pgp>
More information about the reportlab-users
mailing list