pdf_get_parameter

(PHP 4 >= 4.0.1, PECL)

pdf_get_parameter -- Gets certain parameters

Description

string pdf_get_parameter ( resource pdfdoc, string key, float modifier )

Get the contents of some PDFlib parameter with string type. Parameter modifier is optional before PHP 4.3.5 or with PDFlib less than 5.


add a note add a note User Contributed Notes
Christopher Jastram cej102937
12-Dec-2005 04:46
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);