dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

PDF_create_bookmark> <PDF_create_action
[edit] Last updated: Fri, 28 Jun 2013

view this page in

PDF_create_annotation

(PECL pdflib >= 2.0.0)

PDF_create_annotationCreate rectangular annotation

Description

bool PDF_create_annotation ( resource $pdfdoc , float $llx , float $lly , float $urx , float $ury , string $type , string $optlist )

Creates a rectangular annotation on the current page.



add a note add a note User Contributed Notes PDF_create_annotation - [1 notes]
up
-1
Anonymous
1 year ago
Annotation as URL

<?php
  $url
= PDF_create_action($pdf, "URI", "url=http://www.pdflib.com");
 
PDF_create_annotation ($pdf, 44, 500, 55, 600, "Link", "linewidth=1 action {activate $url}");
?>

Annotation as GoTo

<?php
  $optlist
= "destination={page=1 type=fixed left=50 top=700 zoom=1}";
 
$action = pdf_create_action($pdf, "GoTo", $optlist);
 
PDF_create_annotation ($pdf, 44, 400, 55, 450, "Link", "linewidth=1 action {activate $action}");
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites