PDF 函数
在线手册:中文  英文

PDF_create_annotation

(PECL pdflib >= 2.0.0)

PDF_create_annotationCreate rectangular annotation

说明

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.


PDF 函数
在线手册:中文  英文

用户评论:

Anonymous (2011-09-15 17:25:45)

Annotation as URL

<?php
  $url 
PDF_create_action($pdf"URI""url=http://www.pdflib.com"); 
  
PDF_create_annotation ($pdf4450055600"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 ($pdf4440055450"Link""linewidth=1 action {activate $action}");
?>

易百教程