Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: PDF_create_bookmark - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_create_bookmark

2025-07-01

PDF_create_bookmark

(PECL pdflib >= 2.0.0)

PDF_create_bookmarkCreate bookmark

说明

PDF_create_bookmark ( resource $pdfdoc , string $text , string $optlist ) : int

Creates a bookmark subject to various options.

add a note add a note

User Contributed Notes 1 note

up
-9
Anonymous
7 years ago
Bookmarks as URL

<?php
  $action
= $p->create_action("URI", "url=http://www.example.com");
 
$p->create_bookmark("www.example.com", "action {activate $action}");
?>

    OR

<?php
  $action
= pdf_create_action($p, "URI", "url=http://www.example.com");
 
pdf_create_bookmark($p, "www.example.com", "action {activate $action}");
?>

Bookmarks as GoTo

<?php
  $optlist
= "destination={page=1 type=fixed left=50 top=700 zoom=1}";
 
$action = $p->create_action("GoTo", $optlist);
 
$p->create_bookmark("page1", "action {activate $action}"); [snip]
?>

    OR

<?php
  $optlist
= "destination={page=1 type=fixed left=50 top=700 zoom=1}";
 
$action = pdf_create_action($p, "GoTo", $optlist);
 
pdf_create_bookmark($p, "page1", "action {activate $action}");
?>

官方地址:https://www.php.net/manual/en/function.pdf-create-bookmark.php

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3