©
本文檔使用 php中文網手册 發布
(PHP 4 >= 4.0.1, PECL pdflib >= 1.0.0)
PDF_set_value — Set numerical parameter
$p
, string $key
, float $value
)
Sets the value of some PDFlib parameter with numerical type. 成功时返回 TRUE
, 或者在失败时返回 FALSE
。
[#1] bigpub at ifrance dot com [2002-01-25 16:22:16]
Sets various minor options in the PDF file. There are a number of available options which are able to be set for various properties including document and font properties.
textrendering 0 - Fill text
1 - Stroke text (outline)
2 - Fill and stroke test
3 - Invisible text
4 - Fill text and add to clipping path
5 - Stroke text and add to clipping path
6 - Fill and stroke text and add to clipping path
7 - Add text to the clipping path
compress Document compression. Has a range from 0-9 0 - No compression
1 - Best speed
6 - Default value
9 - Best compression
pagewidth Page width
pageheight Page height
leading Text leading or space between lines
textrise Distance between the text position and the baseline. Positive values move the text up while negative values move the text down. Ideal for superscripts and subscripts
horizscaling Sets the horizontal text scaling. Must be a value greater than 0. Reset to 100 and the start of a new page
charspacing Distance between individual characters in a string. Use positive values to spread text apart and negative values to bring text closer together. Reset to 0 at the start of a new page
wordspacing Distance between words in a string. Use positive values to spread text apart and negative values to bring text closer together. Reset to 0 at the start of a new page. Does not affect multi-byte encodings
duration When using transition effects sets the display duration for the current page. Defailt is 1 second