CVS update: php3/functions

From: Date: Thu, 12 Nov 1998 15:36:50 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2353@lists.php.net to get a copy of this message
Date: Thursday November 12, 1998 @ 10:36 Author: steinm Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv20684/functions Modified Files: pdf.c Log Message: - added prototypes - some doc fixes Index: php3/functions/pdf.c diff -c php3/functions/pdf.c:1.6 php3/functions/pdf.c:1.7 *** php3/functions/pdf.c:1.6 Tue Nov 3 12:00:26 1998 --- php3/functions/pdf.c Thu Nov 12 10:36:49 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.6 1998/11/03 17:00:26 steinm Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.7 1998/11/12 15:36:49 steinm Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ *************** *** 172,177 **** --- 172,179 ---- return SUCCESS; } + /* {{{ proto int pdf_get_info(void) + Returns a default info structure for a pdf document */ void php3_pdf_get_info(INTERNAL_FUNCTION_PARAMETERS) { PDF_info *pdf_info; int id; *************** *** 188,193 **** --- 190,197 ---- RETURN_LONG(id); } + /* {{{ proto pdf_set_info_creator(int info, string creator) + Fills the creator field of the info structure */ void php3_pdf_set_info_creator(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 213,218 **** --- 217,224 ---- RETURN_TRUE; } + /* {{{ proto pdf_set_info_title(int info, string title) + Fills the title field of the info structure */ void php3_pdf_set_info_title(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 238,243 **** --- 244,251 ---- RETURN_TRUE; } + /* {{{ proto pdf_set_info_subject(int info, string subject) + Fills the subject field of the info structure */ void php3_pdf_set_info_subject(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 263,268 **** --- 271,278 ---- RETURN_TRUE; } + /* {{{ proto pdf_set_info_author(int info, string author) + Fills the author field of the info structure */ void php3_pdf_set_info_author(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 288,293 **** --- 298,305 ---- RETURN_TRUE; } + /* {{{ proto pdf_set_info_keywords(int info, string keywords) + Fills the keywords field of the info structure */ void php3_pdf_set_info_keywords(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 313,318 **** --- 325,332 ---- RETURN_TRUE; } + /* {{{ proto int pdf_open(int filedesc, int info) + Opens a new pdf document */ void php3_pdf_open(INTERNAL_FUNCTION_PARAMETERS) { pval *file; pval *info; *************** *** 351,356 **** --- 365,372 ---- RETURN_LONG(id); } + /* {{{ proto void pdf_close(int pdfdoc) + Closes the pdf document */ void php3_pdf_close(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 374,379 **** --- 390,397 ---- RETURN_TRUE; } + /* {{{ proto void pdf_begin_page(int pdfdoc, double height, double width) + Starts page */ void php3_pdf_begin_page(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 402,407 **** --- 420,427 ---- RETURN_TRUE; } + /* {{{ proto void pdf_end_page(int pdfdoc) + Ends page */ void php3_pdf_end_page(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 425,430 **** --- 445,452 ---- RETURN_TRUE; } + /* {{{ proto void pdf_show(int pdfdoc, string text) + Output text at current position */ void php3_pdf_show(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 449,454 **** --- 471,478 ---- RETURN_TRUE; } + /* {{{ proto void pdf_show_xy(int pdfdoc, string text) + Output text at position */ void php3_pdf_show_xy(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 475,480 **** --- 499,506 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_font(int pdfdoc, string font, double size, string encoding) + Select the current font face and size */ void php3_pdf_set_font(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 501,506 **** --- 527,534 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_leading(int pdfdoc, double distance) + Sets distance between text lines */ void php3_pdf_set_leading(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 525,530 **** --- 553,560 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_text_rendering(int pdfdoc, int mode) + Determines how text is rendered */ void php3_pdf_set_text_rendering(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 549,554 **** --- 579,586 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_horiz_scaling(int pdfdoc, double scale) + Sets horizontal scaling of text */ void php3_pdf_set_horiz_scaling(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 573,578 **** --- 605,612 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_text_rise(int pdfdoc, double value) + Sets the text rise */ void php3_pdf_set_text_rise(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 597,602 **** --- 631,638 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_text_matrix(int pdfdoc, arry matrix) + Sets the text matrix */ void php3_pdf_set_text_matrix(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *data; int id, type, i; *************** *** 643,648 **** --- 679,686 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_text_pos(int pdfdoc, double x-koor, double y-koor) + */ void php3_pdf_set_text_pos(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 668,673 **** --- 706,713 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_char_spacing(int pdfdoc, double space) + Sets character spacing */ void php3_pdf_set_char_spacing(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 692,697 **** --- 732,739 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_word_spacing(int pdfdoc, double space) + Sets spacing between words */ void php3_pdf_set_word_spacing(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 716,721 **** --- 758,765 ---- RETURN_TRUE; } + /* {{{ proto void pdf_continue_text(int pdfdoc, string text) + Output text in next line */ void php3_pdf_continue_text(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 740,745 **** --- 784,791 ---- RETURN_TRUE; } + /* {{{ proto double pdf_stringwidth(int pdfdoc, string text) + Returns width of text in current font*/ void php3_pdf_stringwidth(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 765,772 **** RETURN_DOUBLE((double)width); } ! ! void php3_pdf_save(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; --- 811,818 ---- RETURN_DOUBLE((double)width); } ! /* {{{ proto void pdf_save(int pdfdoc) ! Saves current enviroment */ void php3_pdf_save(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 790,795 **** --- 836,843 ---- RETURN_TRUE; } + /* {{{ proto void pdf_restore(int pdfdoc) + Restores formerly saved enviroment */ void php3_pdf_restore(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 813,818 **** --- 861,868 ---- RETURN_TRUE; } + /* {{{ proto void pdf_translate(int pdfdoc, double x-koor, double y-koor) + Sets origin of koordinate system */ void php3_pdf_translate(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 838,843 **** --- 888,895 ---- RETURN_TRUE; } + /* {{{ proto void pdf_scale(int pdfdoc, double x-scale, double y-scale) + Sets scaling */ void php3_pdf_scale(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 863,868 **** --- 915,922 ---- RETURN_TRUE; } + /* {{{ proto void pdf_rotate(int pdfdoc, double angle) + Sets rotation */ void php3_pdf_rotate(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 887,892 **** --- 941,948 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setflat(int pdfdoc, double value) + Sets flatness */ void php3_pdf_setflat(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 916,921 **** --- 972,979 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setlinejoin(int pdfdoc, int value) + Sets linejoin parameter */ void php3_pdf_setlinejoin(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 945,950 **** --- 1003,1010 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setlinecap(int pdfdoc, int value) + Sets linecap parameter */ void php3_pdf_setlinecap(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 974,979 **** --- 1034,1041 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setmiterlimit(int pdfdoc, double value) + Sets miter limit */ void php3_pdf_setmiterlimit(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1003,1008 **** --- 1065,1072 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setlinewidth(int pdfdoc, double width) + Sets line width */ void php3_pdf_setlinewidth(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1027,1032 **** --- 1091,1098 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setdash(int pdfdoc, double white, double black) + Sets dash pattern */ void php3_pdf_setdash(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 1052,1057 **** --- 1118,1125 ---- RETURN_TRUE; } + /* {{{ proto void pdf_moveto(int pdfdoc, double x-koor, double y-koor) + Sets current point */ void php3_pdf_moveto(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 1077,1082 **** --- 1145,1152 ---- RETURN_TRUE; } + /* {{{ proto void pdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3) + Draws a curve */ void php3_pdf_curveto(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4, *arg5, *arg6, *arg7; int id, type; *************** *** 1111,1116 **** --- 1181,1188 ---- RETURN_TRUE; } + /* {{{ proto void pdf_lineto(int pdfdoc, double x-koor, double y-koor) + Draws a line */ void php3_pdf_lineto(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3; int id, type; *************** *** 1136,1141 **** --- 1208,1215 ---- RETURN_TRUE; } + /* {{{ proto void pdf_circle(int pdfdoc, double x-koor, double y-koor, double radius) + Draws a circle */ void php3_pdf_circle(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 1162,1167 **** --- 1236,1243 ---- RETURN_TRUE; } + /* {{{ proto void pdf_arc(int pdfdoc, double x-koor, double y-koor, double radius, double start, double end) + Draws an arc */ void php3_pdf_arc(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4, *arg5, *arg6; int id, type; *************** *** 1191,1196 **** --- 1267,1274 ---- RETURN_TRUE; } + /* {{{ proto void pdf_rect(int pdfdoc, double x-koor, double y-koor, double width, double height) + Draws a rectangle */ void php3_pdf_rect(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4, *arg5; int id, type; *************** *** 1221,1226 **** --- 1299,1306 ---- RETURN_TRUE; } + /* {{{ proto void pdf_closepath(int pdfdoc) + Close path */ void php3_pdf_closepath(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1244,1249 **** --- 1324,1331 ---- RETURN_TRUE; } + /* {{{ proto void pdf_closepath_stroke(int pdfdoc) + Close path and draw line along path */ void php3_pdf_closepath_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1267,1272 **** --- 1349,1356 ---- RETURN_TRUE; } + /* {{{ proto void pdf_closepath_stroke(int pdfdoc) + Draw line along path path */ void php3_pdf_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1290,1295 **** --- 1374,1381 ---- RETURN_TRUE; } + /* {{{ proto void pdf_fill(int pdfdoc) + Fill current path */ void php3_pdf_fill(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1313,1318 **** --- 1399,1406 ---- RETURN_TRUE; } + /* {{{ proto void pdf_fill_stroke(int pdfdoc) + Fill and stroke current path */ void php3_pdf_fill_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1336,1341 **** --- 1424,1431 ---- RETURN_TRUE; } + /* {{{ proto void pdf_closepath_fill_stroke(int pdfdoc) + Close, fill and stroke current path */ void php3_pdf_closepath_fill_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1359,1364 **** --- 1449,1456 ---- RETURN_TRUE; } + /* {{{ proto void pdf_endpath(int pdfdoc) + Ends current path */ void php3_pdf_endpath(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1382,1387 **** --- 1474,1481 ---- RETURN_TRUE; } + /* {{{ proto void pdf_clip(int pdfdoc) + Clips to current path */ void php3_pdf_clip(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1; int id, type; *************** *** 1405,1410 **** --- 1499,1506 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setgray_fill(int pdfdoc, double value) + Sets filling color to gray value */ void php3_pdf_setgray_fill(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1429,1434 **** --- 1525,1532 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setgray_stroke(int pdfdoc, double value) + Sets drawing color to gray value */ void php3_pdf_setgray_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1453,1458 **** --- 1551,1558 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setgray(int pdfdoc, double value) + Sets drawing and filling color to gray value */ void php3_pdf_setgray(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1477,1482 **** --- 1577,1584 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue) + Sets filling color to rgb color value */ void php3_pdf_setrgbcolor_fill(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 1501,1506 **** --- 1603,1610 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue) + Sets drawing color to rgb color value */ void php3_pdf_setrgbcolor_stroke(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 1525,1530 **** --- 1629,1636 ---- RETURN_TRUE; } + /* {{{ proto void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue) + Sets drawing and filling color to rgb color value */ void php3_pdf_setrgbcolor(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2, *arg3, *arg4; int id, type; *************** *** 1549,1554 **** --- 1655,1662 ---- RETURN_TRUE; } + /* {{{ proto void pdf_add_outline(int pdfdoc, string text); + Add bookmark for current page */ void php3_pdf_add_outline(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1573,1578 **** --- 1681,1688 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_transition(int pdfdoc, int transition) + Sets transition between pages */ void php3_pdf_set_transition(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; *************** *** 1597,1602 **** --- 1707,1714 ---- RETURN_TRUE; } + /* {{{ proto void pdf_set_duration(int pdfdoc, double duration) + Sets duration between pages */ void php3_pdf_set_duration(INTERNAL_FUNCTION_PARAMETERS) { pval *arg1, *arg2; int id, type; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2353) next »