<<

. 111
( 132 .)



>>

void Outputs text at the current
pdf_show(int pdfdoc, string
position
text)

void Outputs text at a position
pdf_show_xy(int pdfdoc,
string text, float x_koor,
float y_koor)

int Outputs text formatted in
pdf_show_boxed(int pdfdoc,
string text, float x_koor, a box
float y_koor, float width,
float height, string mode
[, string feature])

void Selects the current font face,
pdf_set_font(int pdfdoc,
size, and encoding
string font, float size, string
encoding [, int embed])

void Sets an arbitrary value
pdf_set_value(int pdfdoc,
string key, float value)

float Gets an arbitrary value
pdf_get_value(int pdfdoc,
string key, float modifier)

int Gets the current font
pdf_get_font(int pdfdoc)

string Gets the current font name
pdf_get_fontname(int pdfdoc)

float Gets the current font size
pdf_get_fontsize(int pdfdoc)

void Sets the distance between
pdf_set_leading(int pdfdoc,
text lines
float distance)

void Determines how text is
pdf_set_text_rendering(int
rendered
pdfdoc, int mode)
Appendix F: PHP Function Reference 653



Function Return Value Action

void Sets the horizontal scaling
pdf_set_horiz_scaling(int
of text
pdfdoc, float scale)

void Sets the text rise
pdf_set_text_rise(int pdfdoc,
float value)

void Sets the character spacing
pdf_set_char_spacing(int pdfdoc,
float space)

void Sets the spacing between
pdf_set_word_spacing(int pdfdoc,
words
float space)

void Sets the position of text for
pdf_set_text_pos(int pdfdoc,
the next pdf_show call
float x, float y)

void Outputs text in the next line
pdf_continue_text(int pdfdoc,
string text)

float Returns the width of the
pdf_stringwidth(int pdfdoc,
text in the current font
string text [, int font, float
size])

void Saves the current
pdf_save(int pdfdoc)
environment
void Restores the formerly saved
pdf_restore(int pdfdoc)
environment
void Sets the origin of the
pdf_translate(int pdfdoc,
coordinate system
float x, float y)

void Sets the scaling
pdf_scale(int pdfdoc, float
x_scale, float y_scale)

void Sets the rotation
pdf_rotate(int pdfdoc, float
angle)

void Skews the coordinate system
pdf_skew(int pdfdoc, float
xangle, float yangle)

void Sets the flatness
pdf_setflat(int pdfdoc, float
value)

void Sets the linejoin
pdf_setlinejoin(int pdfdoc,
parameter
int value)

void Sets the linecap
pdf_setlinecap(int pdfdoc,
parameter
int value)

Continued
654 Part V: Appendixes


TABLE F-28 PDF FUNCTIONS (Continued)

Function Return Value Action

void Sets the miter limit
pdf_setmiterlimit(int pdfdoc,
float value)

void Sets the line width
pdf_setlinewidth(int pdfdoc,
float width)

void Sets the dash pattern
pdf_setdash(int pdfdoc, float
black, float white)

void Sets the current point
pdf_moveto(int pdfdoc, float x,
float y)

void Draws a curve
pdf_curveto(int pdfdoc, float
x1, float y1, float x2, float y2,
float x3, float y3)

void Draws a line
pdf_lineto(int pdfdoc, float x,
float y)

void Draws a circle
pdf_circle(int pdfdoc, float x,
float y, float radius)

void Draws an arc
pdf_arc(int pdfdoc, float x,
float y, float radius, float
start, float end)

void Draws a rectangle
pdf_rect(int pdfdoc, float x,
float y, float width, float
height)

void Closes a path
pdf_closepath(int pdfdoc)

void Closes a path and draws a
pdf_closepath_stroke(int
line along the path
pdfdoc)

void Draws a line along a path
pdf_stroke(int pdfdoc)

void Fills the current path
pdf_fill(int pdfdoc)

void Fills and strokes the current
pdf_fill_stroke(int pdfdoc)
path
void Closes, fills, and strokes the
pdf_closepath_fill_stroke(int
current path
pdfdoc)

void Ends the current path
pdf_endpath(int pdfdoc)
Appendix F: PHP Function Reference 655



Function Return Value Action

void Clips to the current path
pdf_clip(int pdfdoc)

void Sets arbitrary parameters
pdf_set_parameter(int pdfdoc,
string key, string value)

string Gets arbitrary parameters
pdf_get_parameter(int pdfdoc,
string key, mixed modifier)

void Sets the filling color to gray
pdf_setgray_fill(int pdfdoc,
value
float value)

void Sets the drawing color to
pdf_setgray_stroke(int pdfdoc,
gray value
float value)

void Sets the drawing and filling
pdf_setgray(int pdfdoc,
color to gray value
float value)

void Sets the filling color to the
pdf_setrgbcolor_fill(int
RGB color value
pdfdoc, float red, float green,
float blue)

void Sets the drawing color to
pdf_setrgbcolor_stroke(int
the RGB color value
pdfdoc, float red, float green,
float blue)

void Sets the drawing and filling
pdf_setrgbcolor(int pdfdoc,
color to the RGB color value
float red, float green, float
blue

int Adds a bookmark for the
pdf_add_bookmark(int pdfdoc,
current page
string text [, int parent,
int open])

void Sets a transition between
pdf_set_transition(int pdfdoc,
pages
int transition)

void Sets a duration between
pdf_set_duration(int pdfdoc,
pages
float duration)

int Opens a GIF file and returns
pdf_open_gif(int pdf, string
an image for placement in a
giffile)
PDF object
int Opens a JPEG file and
pdf_open_jpeg(int pdf, string
returns an image for

<<

. 111
( 132 .)



>>