note 74999 added to function.cpdf-set-action-url
| From: | (radmission05@yahoo.com) | Date: | Tue, 08 May 2007 01:48:43 +0000 |
| Subject: | note 74999 added to function.cpdf-set-action-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126311@lists.php.net to get a copy of this message | ||
//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);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 203.177.228.113
----
Manual Page -- http://www.php.net/manual/en/function.cpdf-set-action-url.php
Edit -- https://master.php.net/note/edit/74999
Del: integrated -- https://master.php.net/note/delete/74999/integrated
Del: useless -- https://master.php.net/note/delete/74999/useless
Del: bad code -- https://master.php.net/note/delete/74999/bad+code
Del: spam -- https://master.php.net/note/delete/74999/spam
Del: non-english -- https://master.php.net/note/delete/74999/non-english
Del: in docs -- https://master.php.net/note/delete/74999/in+docs
Del: other reasons-- https://master.php.net/note/delete/74999
Reject -- https://master.php.net/note/reject/74999
Search -- https://master.php.net/manage/user-notes.php