PHP Developer''''s Dictionary- P64 pot

5 170 0
PHP Developer''''s Dictionary- P64 pot

Đang tải... (xem toàn văn)

Thông tin tài liệu

PHP Developer’s Dictionary IT-SC book 315 Syntax void pdf_end_page (int pdf document) Description The pdf_end_page() function, which was added in PHP 3.0.6 and PHP 4.0, ends a PDF page, which frees resources and prevents any further modification of the page. pdf_show() Syntax void pdf_show (int pdf document, string text) Description The pdf_show() function, which was added in PHP 3.0.6 and PHP 4.0, prints out the string text at the current position using the current font and then advances the current pointer to the end of the text. pdf_show_boxed() Syntax int pdf_show_boxed (int pdf document, string text, double x-coor, double y-coor, double width, double height, string mode) Description The pdf_show_boxed() function, which was added in PHP 4.0RC1, prints out the text parameter inside a box whose lower-left corner is located at the x and y coordinates. The dimensions of the box are specified by the height and width parameters. If both coordinates are zero, mode can be 'left' , 'right' , or 'center' ; and if both are unequal, mode can be 'justify' or 'filljustify' . The return value indicates the number of characters in text that did not fit inside the box. pdf_show_xy() PHP Developer’s Dictionary IT-SC book 316 Syntax void pdf_show_xy (ind pdf document, string text, double x-coor, double y-coor) Description The pdf_show_xy() function, which was added in PHP 3.0.6 and PHP 4.0, outputs the text parameter at the location specified by the x and y coordinates. pdf_set_font() Syntax void pdf_set_font (int pdf document, string font name, double size, string encoding [,int embed ]) Description The pdf_set_font() function sets the current font type, face, and encoding. If you are using a version of pdflib prior to 2.20, encoding should be set to a number between 0 and 4 , inclusive, where 0 is builtin , 1 is pdfdoc , 2 is macroman , 3 is macexpert , and u is winansi . For versions of pdflib higher than 2.20, encoding should be one of the following string values: builtin , host , pdfdoc , macroman , macexpert , or winansi . The embed parameter specifies whether the font should be included with the document's contents. This is a good idea if you are using a nonstandard font to ensure that the reader can properly view the document. This function should be called after the pdf_begin_page() function is called. pdf_set_leading() Syntax void pdf_set_leading (int pdf document, double distance) Description The pdf_set_leading() function, which was added in PHP 3.0.6 and PHP 4.0, specifies the distance that should be between text lines when using the pdf_continue_text() function. PHP Developer’s Dictionary IT-SC book 317 pdf_set_parameter() Syntax void pdf_set_parameter (int pdf document , string name , string value ) Description The pdf_set_parameter() function, which was added in PHP 4.0RC1, is used to set parameters for the pdflib library where name is the key and value is the value of the parameter. pdf_set_text_rendering() Syntax void pdf_set_text_rendering (int pdf document, int mode) Description The pdf_set_text_rendering() function, which was added in PHP 3.0.6 and PHP 4, sets how text should be rendered according to the mode parameter. The mode parameter can take these values: 0 for fill text, 1 for stroke text, 2 for fill and stroke text, 3 for invisible, 4 for fill text and add it to clipping path, 5 for stroke text and add it to clipping path, 6 for fill and stroke text and add it to clipping path, 7 for add it to clipping path. pdf_set_horiz_scaling() Syntax void pdf_set_horiz_scaling (int pdf document, double scale) Description The pdf_set_horiz_scaling() function, which was added in PHP 3.0.6 and PHP 4.0, sets the horizontal scaling factor to scale , which is a percentage. This can be used to stretch or skew the horizontal length of a string. The default value is 100 percent. pdf_set_text_rise() PHP Developer’s Dictionary IT-SC book 318 Syntax void pdf_set_text_rise (int pdf document, double rises) Description The pdf_set_text_rise() function, which was added in PHP 3.0.6 and PHP 4.0 sets the offset value of text from the base line measured in points (72 = 1 inch). Use a positive value for a superscript and a negative value for a subscript. pdf_set_text_matrix() Syntax void pdf_set_text_matrix (int pdf document, array matrix) Description The pdf_set_text_matrix() function, which was added in PHP 3.0.8 and PHP 4.0.b4, enables you to associate a transformation matrix with the current text font. A matrix can be used to set the current point, rotation, and skewing. Consult the PostScript documentation for further matrix details. pdf_set_text_pos() Syntax void pdf_set_text_pos (int pdf document, double x-coor, double y-coor) Description The pdf_set_text_pos() function, which was added in PHP 3.0.6 and PHP 4.0, sets the location where the next call to cpdf_show() will output text. pdf_set_char_spacing() Syntax void pdf_set_char_spacing (int pdf document, double space ) PHP Developer’s Dictionary IT-SC book 319 Description The pdf_set_char_spacing() function, which was added in PHP 3.0.6 and PHP 4.0, is used to add further spacing between characters. The space parameter should be specified in points (72 points = 1 inch). pdf_set_word_spacing() Syntax void pdf_set_word_spacing (int pdf_document, double space) Description The pdf_set_word_spacing() function, which was added in PHP 3.0.6 and PHP 4.0, is used to add further spacing between words. The space parameter should be specified in points (72 points = 1 inch). pdf_skew() Syntax void pdf_skew (int pdf document, double alpha, double beta) Description The pdf_skew() function, which was added in PHP 4.0RC1, skews the coordinate system by alpha and beta degrees. Angles are measured counterclockwise from the positive x-axis of the current coordinate system. Note that neither alpha nor beta can be 90 or 270 degrees. pdf_continue_text() Syntax void pdf_continue_text (int pdf document, string text) Description . PHP Developer’s Dictionary IT-SC book 315 Syntax void pdf_end_page (int pdf document) Description The pdf_end_page() function, which was added in PHP 3.0.6 and PHP 4.0,. pdf_set_leading() function, which was added in PHP 3.0.6 and PHP 4.0, specifies the distance that should be between text lines when using the pdf_continue_text() function. PHP Developer’s Dictionary IT-SC. pdf document, double space ) PHP Developer’s Dictionary IT-SC book 319 Description The pdf_set_char_spacing() function, which was added in PHP 3.0.6 and PHP 4.0, is used to add further

Ngày đăng: 07/07/2014, 05:20

Mục lục

  • PHP Developer's Dictionary

  • Acknowledgments

    • Tell Us What You Think!

    • Introduction

      • Who Should Buy This Book?

      • Organization of the Chapters

      • Chapter 1. Basic PHP Background and History

        • Advantages of PHP 4

        • Installation

          • PHP Installation General Overview

          • Types, Variables, and Constants

          • Operators and Mathematical Functions

            • Expressions and Operators

            • Functions, Classes, and Objects

              • Functions

              • Chapter 2. Generating HTML

                • Generating Dynamic Content

                  • Defining Dynamic Content

                  • Using Request Variables to Generate Content

                  • Using the Environment to Generate Content

                  • Working with the Filesystem

                    • Directory Functions

                    • Working with Email

                      • Email Overview

                      • Calendar and Date Functions

                        • Overview of Time and Date Functions

                        • Chapter 3. Database Access

                          • Working with Connections and Data Sources

                            • Setting Up the Database

                            • Using PostgreSQL and PHP

                              • PostgreSQL Overview

                              • Connecting Postgres and PHP

                              • Select, Insert, Update, and Delete Queries

                                • Insert Queries

                                • Select Queries with PHP

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan