略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_set_value

2024-11-15

PDF_set_value

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

PDF_set_valueSet numerical parameter

说明

PDF_set_value ( resource $p , string $key , float $value ) : bool

Sets the value of some PDFlib parameter with numerical type. 成功时返回 TRUE, 或者在失败时返回 FALSE

add a note add a note

User Contributed Notes 1 note

up
0
bigpub at ifrance dot com
17 years ago
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

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

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