1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P58 ppsx

5 192 0
Tài liệu đã được kiểm tra trùng lặp

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 362,66 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

cpdf_closepath_stroke Syntax void cpdf_closepath_stroke int pdf document Description The cpdf_closepath_stroke function, which was added in PHP 3.0.8 and PHP 4.0.b4, combines the func

Trang 1

cpdf_closepath_stroke()

Syntax

void cpdf_closepath_stroke (int pdf document)

Description

The cpdf_closepath_stroke() function, which was added in PHP 3.0.8 and PHP 4.0.b4, combines the functionality of cpdf_close_path() and cpdf_stroke() It also clears the path

cpdf_fill()

Syntax

void cpdf_fill (int pdf document)

Description

The cpdf_fill() function, which was added in PHP 3.0.8 and PHP 4.0.b4, fills inside the current path with the current fill color

cpdf_fill_stroke()

Syntax

void cpdf_fill_stroke(int pdf document)

Description

The cpdf_fill_stroke() function, which was added in PHP 3.0.8 and PHP 4.0.b4, fills the inside of the current path with the current fill color, and then strokes the current path with the current stroke color

cpdf_closepath_fill_stroke()

Trang 2

Description

The cpdf_closepath_fill_stroke() function, which was added in PHP 3.0.8 and PHP 4.0.b4, combines the functions of cpdf_closepath(), cpdf_fill(), and cpdf_stroke() into one operation This closes the current path, fills the interior with the current fill color, and draws the current path

cpdf_clip()

Syntax

void cpdf_clip (int pdf document)

Description

The cpdf_clip() function, which was added in PHP 3.0.8 and PHP 4.0.b4, clips all further drawing to the current path

cpdf_setgray_fill()

Syntax

void cpdf_setgray_fill(int pdf document, double value)

Description

The cpdf_setgray_fill() function, which was added in PHP 3.0.8 and PHP 4.0.b4, sets the gray value with which to fill a path, where value is a number between 0 and

1, inclusive

cpdf_setgray_stroke()

Syntax

void cpdf_setgray_stroke (int pdf document, double gray value)

Description

Trang 3

The cpdf_setgray_stroke() function, which was added in PHP 3.0.8 and PHP 4.0.b4, sets the gray stroke value, where value is a number between 0 and 1, inclusive

cpdf_setgray()

Syntax

void cpdf_setgray (int pdf document, double gray value)

Description

The cpdf_setgray() function, which was added in PHP 3.0.8 and PHP 4.0.b4, sets both the stroke and fill gray colors, where value is a number between 0 and 1, inclusive

cpdf_setrgbcolor_fill()

Syntax

void cpdf_setrgbcolor_fill (int pdf document,

double red value, double green value, double blue value)

Description

The cpdf_setrgbcolor_fill() function, which was added in PHP 3.0.8 and PHP 4.0.b4, sets the RGB color to use to fill a path Each value is a number between 0

and 1, inclusive

cpdf_setrgbcolor_stroke()

Syntax

void cpdf_setrgbcolor_stroke (int pdf document,

double red value, double green value, double blue value)

Description

Trang 4

cpdf_setrgbcolor()

Syntax

void cpdf_setrgbcolor (int pdf document,

double red value, double green value, double blue value)

Description

The cpdf_setrgbcolor() function, which was added in PHP 3.0.8 and PHP 4.0.b4, sets the RGB color used to draw and fill a path Each value is a number between 0

and 1, inclusive

cpdf_add_outline()

Syntax

void cpdf_add_outline(int pdfdoc, int lastoutline,

int sublevel, int open, int pagenr, string title)

Description

The cpdf_add_outline() function, which was added in PHP 3.0.9 and PHP 4.0.b4, adds an outline entry to the document, which is also called a bookmark The pdfdoc parameter identifies the document with which you are working The lastoutline parameter is a reference to the previous outline assigned to the document You must always add to the bottom of the list—you can't do any insertions or deletions If

sublevel is nonzero, the new entry will be below the lastoutline ; if zero, the new

entry will be at the same level If open is nonzero, the entry will be visible when the

page is first opened The pagenr parameter represents the destination page for this

entry The title parameter represents a string for the outline

cpdf_set_page_animation()

Syntax

void cpdf_set_page_animation (int pdf document,

int transition, double duration)

Description

Trang 5

The cpdf_set_page_animation() function, which was added in PHP 3.0.9 and PHP 4.0.b4, specifies the type and parameters for the transition effects of the current page The transition happens when going from another page to the current page The duration parameter represents the number of seconds between pages The transition parameter can have the following values:

0—No transition

1—Two lines sweeping across the display to reveal the page

2—Multiple lines sweeping across the display to reveal the page

3—A box reveals the page

4—A single line that reveals the page sweeping across the display

5—The previous page dissolves and shows the next page

6—The dissolve effect moves from one screen edge to another

7—The old page is replaced by the new page, which is the default

cpdf_import_jpeg()

Syntax

int cpdf_open_jpeg (int pdf document, string

file name, double x-koor, double y-koor, double angle,

double width, double height, double x-scale, double y-scale, int mode)

Description

The cpdf_open_jpeg() function, which was added in PHP 3.0.9 and PHP 4.0.b4, imports a JPEG image from a file with scaling and optional rotation The image is placed at the location specified by the x-koor and y-koor coordinates The angle

parameter is the angle of rotation in degrees The height , width , x-scale , and y-scale parameters are used to size the image and may be set to stretch or skew the

image, or set to 0 not to alter the image The optional parameter mode is used to

specify a unit length other than the page default

cpdf_place_inline_image()

Syntax

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

TỪ KHÓA LIÊN QUAN