略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_get_parameter

2024-04-20

PDF_get_parameter

(PHP 4 >= 4.0.1, PECL pdflib >= 1.0.0)

PDF_get_parameterGet string parameter

说明

PDF_get_parameter ( resource $p , string $key , float $modifier ) : string

Gets the contents of some PDFlib parameter with string type.

add a note add a note

User Contributed Notes 1 note

up
0
Christopher Jastram cej102937
13 years ago
The proper keys for pdf_get_parameter and pdf_get_value are under "Parameters and Values" under "A PDFlib Quick Reference" in the PDFlib reference manual (google is your friend).

To get the font name:

$fontname = pdf_get_parameter($pdf, "fontname", 0);

To get the font size:

$size = pdf_get_value($pdf, "fontsize", 0);

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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3