//Setting Up A Clickable URL Area, is like drawing a rectangle..
//hope this will help you a lot
<?php
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 595, 842, 1.0);
cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 12, "WinAnsiEncoding");
cpdf_set_text_rendering($cpdf, 0);
//this how to set a http link in your cdpf document
cpdf_text($cpdf, "www.php.net", 200, 200);
cpdf_set_action_url($cpdf,195,210,260,195,"http://www.php.net");
cpdf_end_text($cpdf);
cpdf_finalize_page($cpdf, 1);
cpdf_finalize($cpdf);
Header("Content-type: application/pdf");
cpdf_output_buffer($cpdf);
cpdf_close($cpdf);
?>
cpdf_set_action_url
(PHP 4, PHP 5 <= 5.0.5)
cpdf_set_action_url — Sets hyperlink
Descrição
bool cpdf_set_action_url
( int $pdfdoc
, float $xll
, float $yll
, float $xur
, float $xur
, string $url
[, int $mode
] )
Aviso
Esta função não está documentada, somente a lista de argumentos está disponível.
User Contributed Notes
cpdf_set_action_url
cpdf_set_action_url
Rad Mission(radmission05 at yahoo dot com)
07-May-2007 10:48
07-May-2007 10:48

cpdf_scale