From: Andrey Hristov <andrey@php.net> Date: Thu, 12 Jun 2003 14:04:31 +0000 (+0000) Subject: proto fixes X-Git-Tag: RELEASE_1_0_2~304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=792d15ae93039a42ad08f3b56f6f982093501695;p=php proto fixes #hope not to be scared again by andrei ;) --- diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c index 92eac1939f..fdacd29cab 100644 --- a/ext/cpdf/cpdf.c +++ b/ext/cpdf/cpdf.c @@ -235,7 +235,7 @@ PHP_MSHUTDOWN_FUNCTION(cpdf) return SUCCESS; } -/* {{{ proto void cpdf_global_set_document_limits(int maxPages, int maxFonts, int maxImages, int maxAnnots, int maxObjects) +/* {{{ proto bool cpdf_global_set_document_limits(int maxPages, int maxFonts, int maxImages, int maxAnnots, int maxObjects) Sets document settings for all documents */ PHP_FUNCTION(cpdf_global_set_document_limits) { @@ -342,7 +342,7 @@ PHP_FUNCTION(cpdf_set_keywords) } /* }}} */ -/* {{{ proto void cpdf_set_viewer_preferences(int pdfdoc, array preferences) +/* {{{ proto bool cpdf_set_viewer_preferences(int pdfdoc, array preferences) How to show the document in the viewer */ PHP_FUNCTION(cpdf_set_viewer_preferences) { @@ -461,7 +461,7 @@ PHP_FUNCTION(cpdf_close) /* }}} */ #define BUFFERLEN 40 -/* {{{ proto void cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, float unit]) +/* {{{ proto bool cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, float unit]) Starts page */ PHP_FUNCTION(cpdf_page_init) { @@ -499,7 +499,7 @@ PHP_FUNCTION(cpdf_page_init) /* }}} */ #undef BUFFERLEN -/* {{{ proto void cpdf_finalize_page(int pdfdoc, int pagenr) +/* {{{ proto bool cpdf_finalize_page(int pdfdoc, int pagenr) Ends the page to save memory */ PHP_FUNCTION(cpdf_finalize_page) { @@ -521,7 +521,7 @@ PHP_FUNCTION(cpdf_finalize_page) } /* }}} */ -/* {{{ proto void cpdf_set_current_page(int pdfdoc, int pagenr) +/* {{{ proto bool cpdf_set_current_page(int pdfdoc, int pagenr) Sets page for output */ PHP_FUNCTION(cpdf_set_current_page) { @@ -543,7 +543,7 @@ PHP_FUNCTION(cpdf_set_current_page) } /* }}} */ -/* {{{ proto void cpdf_begin_text(int pdfdoc) +/* {{{ proto bool cpdf_begin_text(int pdfdoc) Starts text section */ PHP_FUNCTION(cpdf_begin_text) { @@ -563,7 +563,7 @@ PHP_FUNCTION(cpdf_begin_text) } /* }}} */ -/* {{{ proto void cpdf_end_text(int pdfdoc) +/* {{{ proto bool cpdf_end_text(int pdfdoc) Ends text section */ PHP_FUNCTION(cpdf_end_text) { @@ -583,7 +583,7 @@ PHP_FUNCTION(cpdf_end_text) } /* }}} */ -/* {{{ proto void cpdf_show(int pdfdoc, string text) +/* {{{ proto bool cpdf_show(int pdfdoc, string text) Output text at current position */ PHP_FUNCTION(cpdf_show) { @@ -604,7 +604,7 @@ PHP_FUNCTION(cpdf_show) } /* }}} */ -/* {{{ proto void cpdf_show_xy(int pdfdoc, string text, float x-koor, float y-koor [, int mode]) +/* {{{ proto bool cpdf_show_xy(int pdfdoc, string text, float x-koor, float y-koor [, int mode]) Output text at position */ PHP_FUNCTION(cpdf_show_xy) { @@ -635,7 +635,7 @@ PHP_FUNCTION(cpdf_show_xy) } /* }}} */ -/* {{{ proto void cpdf_continue_text(int pdfdoc, string text) +/* {{{ proto bool cpdf_continue_text(int pdfdoc, string text) Outputs text in next line */ PHP_FUNCTION(cpdf_continue_text) { @@ -656,7 +656,7 @@ PHP_FUNCTION(cpdf_continue_text) } /* }}} */ -/* {{{ proto void cpdf_text(int pdfdoc, string text [, float x-koor, float y-koor [, int mode [, float orientation [, int alignmode]]]]) +/* {{{ proto bool cpdf_text(int pdfdoc, string text [, float x-koor, float y-koor [, int mode [, float orientation [, int alignmode]]]]) Outputs text */ PHP_FUNCTION(cpdf_text) { @@ -717,7 +717,7 @@ PHP_FUNCTION(cpdf_text) } /* }}} */ -/* {{{ proto void cpdf_set_font(int pdfdoc, string font, float size, string encoding) +/* {{{ proto bool cpdf_set_font(int pdfdoc, string font, float size, string encoding) Selects the current font face, size and encoding */ PHP_FUNCTION(cpdf_set_font) { @@ -745,7 +745,7 @@ PHP_FUNCTION(cpdf_set_font) } /* }}} */ -/* {{{ proto void cpdf_set_font_directories(int pdfdoc, string pfmdir, string pfbdir) +/* {{{ proto bool cpdf_set_font_directories(int pdfdoc, string pfmdir, string pfbdir) Sets directories to search when using external fonts */ PHP_FUNCTION(cpdf_set_font_directories) { @@ -767,7 +767,7 @@ PHP_FUNCTION(cpdf_set_font_directories) } /* }}} */ -/* {{{ proto void cpdf_set_font_map_file(int pdfdoc, string filename) +/* {{{ proto bool cpdf_set_font_map_file(int pdfdoc, string filename) Sets fontname to filename translation map when using external fonts */ PHP_FUNCTION(cpdf_set_font_map_file) { @@ -792,7 +792,7 @@ PHP_FUNCTION(cpdf_set_font_map_file) } /* }}} */ -/* {{{ proto void cpdf_set_leading(int pdfdoc, float distance) +/* {{{ proto bool cpdf_set_leading(int pdfdoc, float distance) Sets distance between text lines */ PHP_FUNCTION(cpdf_set_leading) { @@ -813,7 +813,7 @@ PHP_FUNCTION(cpdf_set_leading) } /* }}} */ -/* {{{ proto void cpdf_set_text_rendering(int pdfdoc, int rendermode) +/* {{{ proto bool cpdf_set_text_rendering(int pdfdoc, int rendermode) Determines how text is rendered */ PHP_FUNCTION(cpdf_set_text_rendering) { @@ -834,7 +834,7 @@ PHP_FUNCTION(cpdf_set_text_rendering) } /* }}} */ -/* {{{ proto void cpdf_set_horiz_scaling(int pdfdoc, float scale) +/* {{{ proto bool cpdf_set_horiz_scaling(int pdfdoc, float scale) Sets horizontal scaling of text */ PHP_FUNCTION(cpdf_set_horiz_scaling) { @@ -855,7 +855,7 @@ PHP_FUNCTION(cpdf_set_horiz_scaling) } /* }}} */ -/* {{{ proto void cpdf_set_text_rise(int pdfdoc, float value) +/* {{{ proto bool cpdf_set_text_rise(int pdfdoc, float value) Sets the text rise */ PHP_FUNCTION(cpdf_set_text_rise) { @@ -876,7 +876,7 @@ PHP_FUNCTION(cpdf_set_text_rise) } /* }}} */ -/* {{{ proto void cpdf_set_text_matrix(int pdfdoc, array matrix) +/* {{{ proto bool cpdf_set_text_matrix(int pdfdoc, arry matrix) Sets the text matrix */ PHP_FUNCTION(cpdf_set_text_matrix) { @@ -923,7 +923,7 @@ PHP_FUNCTION(cpdf_set_text_matrix) } /* }}} */ -/* {{{ proto void cpdf_set_text_pos(int pdfdoc, float x, float y [, int mode]) +/* {{{ proto bool cpdf_set_text_pos(int pdfdoc, float x, float y [, int mode]) Sets the position of text for the next cpdf_show call */ PHP_FUNCTION(cpdf_set_text_pos) { @@ -952,7 +952,7 @@ PHP_FUNCTION(cpdf_set_text_pos) } /* }}} */ -/* {{{ proto void cpdf_rotate_text(int pdfdoc, float angle) +/* {{{ proto bool cpdf_rotate_text(int pdfdoc, float angle) Sets text rotation angle */ PHP_FUNCTION(cpdf_rotate_text) { @@ -973,7 +973,7 @@ PHP_FUNCTION(cpdf_rotate_text) } /* }}} */ -/* {{{ proto void cpdf_set_char_spacing(int pdfdoc, float space) +/* {{{ proto bool cpdf_set_char_spacing(int pdfdoc, float space) Sets character spacing */ PHP_FUNCTION(cpdf_set_char_spacing) { @@ -994,7 +994,7 @@ PHP_FUNCTION(cpdf_set_char_spacing) } /* }}} */ -/* {{{ proto void cpdf_set_word_spacing(int pdfdoc, float space) +/* {{{ proto bool cpdf_set_word_spacing(int pdfdoc, float space) Sets spacing between words */ PHP_FUNCTION(cpdf_set_word_spacing) { @@ -1037,7 +1037,7 @@ PHP_FUNCTION(cpdf_stringwidth) } /* }}} */ -/* {{{ proto void cpdf_save(int pdfdoc) +/* {{{ proto bool cpdf_save(int pdfdoc) Saves current enviroment */ PHP_FUNCTION(cpdf_save) { @@ -1057,7 +1057,7 @@ PHP_FUNCTION(cpdf_save) } /* }}} */ -/* {{{ proto void cpdf_restore(int pdfdoc) +/* {{{ proto bool cpdf_restore(int pdfdoc) Restores formerly saved enviroment */ PHP_FUNCTION(cpdf_restore) { @@ -1077,7 +1077,7 @@ PHP_FUNCTION(cpdf_restore) } /* }}} */ -/* {{{ proto void cpdf_translate(int pdfdoc, float x, float y) +/* {{{ proto bool cpdf_translate(int pdfdoc, float x, float y) Sets origin of coordinate system */ PHP_FUNCTION(cpdf_translate) { @@ -1099,7 +1099,7 @@ PHP_FUNCTION(cpdf_translate) } /* }}} */ -/* {{{ proto void cpdf_scale(int pdfdoc, float x_scale, float y_scale) +/* {{{ proto bool cpdf_scale(int pdfdoc, float x_scale, float y_scale) Sets scaling */ PHP_FUNCTION(cpdf_scale) { @@ -1121,7 +1121,7 @@ PHP_FUNCTION(cpdf_scale) } /* }}} */ -/* {{{ proto void cpdf_rotate(int pdfdoc, float angle) +/* {{{ proto bool cpdf_rotate(int pdfdoc, float angle) Sets rotation */ PHP_FUNCTION(cpdf_rotate) { @@ -1142,7 +1142,7 @@ PHP_FUNCTION(cpdf_rotate) } /* }}} */ -/* {{{ proto void cpdf_setflat(int pdfdoc, float value) +/* {{{ proto bool cpdf_setflat(int pdfdoc, float value) Sets flatness */ PHP_FUNCTION(cpdf_setflat) { @@ -1168,7 +1168,7 @@ PHP_FUNCTION(cpdf_setflat) } /* }}} */ -/* {{{ proto void cpdf_setlinejoin(int pdfdoc, int value) +/* {{{ proto bool cpdf_setlinejoin(int pdfdoc, int value) Sets linejoin parameter */ PHP_FUNCTION(cpdf_setlinejoin) { @@ -1194,7 +1194,7 @@ PHP_FUNCTION(cpdf_setlinejoin) } /* }}} */ -/* {{{ proto void cpdf_setlinecap(int pdfdoc, int value) +/* {{{ proto bool cpdf_setlinecap(int pdfdoc, int value) Sets linecap parameter */ PHP_FUNCTION(cpdf_setlinecap) { @@ -1220,7 +1220,7 @@ PHP_FUNCTION(cpdf_setlinecap) } /* }}} */ -/* {{{ proto void cpdf_setmiterlimit(int pdfdoc, float value) +/* {{{ proto bool cpdf_setmiterlimit(int pdfdoc, float value) Sets miter limit */ PHP_FUNCTION(cpdf_setmiterlimit) { @@ -1246,7 +1246,7 @@ PHP_FUNCTION(cpdf_setmiterlimit) } /* }}} */ -/* {{{ proto void cpdf_setlinewidth(int pdfdoc, float width) +/* {{{ proto bool cpdf_setlinewidth(int pdfdoc, float width) Sets line width */ PHP_FUNCTION(cpdf_setlinewidth) { @@ -1268,7 +1268,7 @@ PHP_FUNCTION(cpdf_setlinewidth) /* }}} */ #define BUFFERLEN 20 -/* {{{ proto void cpdf_setdash(int pdfdoc, long white, long black) +/* {{{ proto bool cpdf_setdash(int pdfdoc, long white, long black) Sets dash pattern */ PHP_FUNCTION(cpdf_setdash) { @@ -1293,7 +1293,7 @@ PHP_FUNCTION(cpdf_setdash) /* }}} */ #undef BUFFERLEN -/* {{{ proto void cpdf_moveto(int pdfdoc, float x, float y [, int mode]) +/* {{{ proto bool cpdf_moveto(int pdfdoc, float x, float y [, int mode]) Sets current point */ PHP_FUNCTION(cpdf_moveto) { @@ -1322,7 +1322,7 @@ PHP_FUNCTION(cpdf_moveto) } /* }}} */ -/* {{{ proto void cpdf_rmoveto(int pdfdoc, float x, float y [, int mode]) +/* {{{ proto bool cpdf_rmoveto(int pdfdoc, float x, float y [, int mode]) Sets current point */ PHP_FUNCTION(cpdf_rmoveto) { @@ -1351,7 +1351,7 @@ PHP_FUNCTION(cpdf_rmoveto) } /* }}} */ -/* {{{ proto void cpdf_curveto(int pdfdoc, float x1, float y1, float x2, float y2, float x3, float y3 [, int mode]) +/* {{{ proto bool cpdf_curveto(int pdfdoc, float x1, float y1, float x2, float y2, float x3, float y3 [, int mode]) Draws a curve */ PHP_FUNCTION(cpdf_curveto) { @@ -1394,7 +1394,7 @@ PHP_FUNCTION(cpdf_curveto) } /* }}} */ -/* {{{ proto void cpdf_lineto(int pdfdoc, float x, float y [, int mode]) +/* {{{ proto bool cpdf_lineto(int pdfdoc, float x, float y [, int mode]) Draws a line */ PHP_FUNCTION(cpdf_lineto) { @@ -1423,7 +1423,7 @@ PHP_FUNCTION(cpdf_lineto) } /* }}} */ -/* {{{ proto void cpdf_rlineto(int pdfdoc, float x, float y [, int mode]) +/* {{{ proto bool cpdf_rlineto(int pdfdoc, float x, float y [, int mode]) Draws a line relative to current point */ PHP_FUNCTION(cpdf_rlineto) { @@ -1452,7 +1452,7 @@ PHP_FUNCTION(cpdf_rlineto) } /* }}} */ -/* {{{ proto void cpdf_circle(int pdfdoc, float x, float y, float radius [, int mode]) +/* {{{ proto bool cpdf_circle(int pdfdoc, float x, float y, float radius [, int mode]) Draws a circle */ PHP_FUNCTION(cpdf_circle) { @@ -1482,7 +1482,7 @@ PHP_FUNCTION(cpdf_circle) } /* }}} */ -/* {{{ proto void cpdf_arc(int pdfdoc, float x, float y, float radius, float start, float end [, int mode]) +/* {{{ proto bool cpdf_arc(int pdfdoc, float x, float y, float radius, float start, float end [, int mode]) Draws an arc */ PHP_FUNCTION(cpdf_arc) { @@ -1514,7 +1514,7 @@ PHP_FUNCTION(cpdf_arc) } /* }}} */ -/* {{{ proto void cpdf_rect(int pdfdoc, float x, float y, float width, float height [, int mode]) +/* {{{ proto bool cpdf_rect(int pdfdoc, float x, float y, float width, float height [, int mode]) Draws a rectangle */ PHP_FUNCTION(cpdf_rect) { @@ -1551,7 +1551,7 @@ PHP_FUNCTION(cpdf_rect) } /* }}} */ -/* {{{ proto void cpdf_newpath(int pdfdoc) +/* {{{ proto bool cpdf_newpath(int pdfdoc) Starts new path */ PHP_FUNCTION(cpdf_newpath) { @@ -1571,7 +1571,7 @@ PHP_FUNCTION(cpdf_newpath) } /* }}} */ -/* {{{ proto void cpdf_closepath(int pdfdoc) +/* {{{ proto bool cpdf_closepath(int pdfdoc) Close path */ PHP_FUNCTION(cpdf_closepath) { @@ -1591,7 +1591,7 @@ PHP_FUNCTION(cpdf_closepath) } /* }}} */ -/* {{{ proto void cpdf_closepath_stroke(int pdfdoc) +/* {{{ proto bool cpdf_closepath_stroke(int pdfdoc) Close path and draw line along path */ PHP_FUNCTION(cpdf_closepath_stroke) { @@ -1612,7 +1612,7 @@ PHP_FUNCTION(cpdf_closepath_stroke) } /* }}} */ -/* {{{ proto void cpdf_stroke(int pdfdoc) +/* {{{ proto bool cpdf_stroke(int pdfdoc) Draws line along path path */ PHP_FUNCTION(cpdf_stroke) { @@ -1632,7 +1632,7 @@ PHP_FUNCTION(cpdf_stroke) } /* }}} */ -/* {{{ proto void cpdf_fill(int pdfdoc) +/* {{{ proto bool cpdf_fill(int pdfdoc) Fills current path */ PHP_FUNCTION(cpdf_fill) { @@ -1652,7 +1652,7 @@ PHP_FUNCTION(cpdf_fill) } /* }}} */ -/* {{{ proto void cpdf_fill_stroke(int pdfdoc) +/* {{{ proto bool cpdf_fill_stroke(int pdfdoc) Fills and stroke current path */ PHP_FUNCTION(cpdf_fill_stroke) { @@ -1673,7 +1673,7 @@ PHP_FUNCTION(cpdf_fill_stroke) } /* }}} */ -/* {{{ proto void cpdf_closepath_fill_stroke(int pdfdoc) +/* {{{ proto bool cpdf_closepath_fill_stroke(int pdfdoc) Close, fill and stroke current path */ PHP_FUNCTION(cpdf_closepath_fill_stroke) { @@ -1695,7 +1695,7 @@ PHP_FUNCTION(cpdf_closepath_fill_stroke) } /* }}} */ -/* {{{ proto void cpdf_clip(int pdfdoc) +/* {{{ proto bool cpdf_clip(int pdfdoc) Clips to current path */ PHP_FUNCTION(cpdf_clip) { @@ -1715,7 +1715,7 @@ PHP_FUNCTION(cpdf_clip) } /* }}} */ -/* {{{ proto void cpdf_setgray_fill(int pdfdoc, float value) +/* {{{ proto bool cpdf_setgray_fill(int pdfdoc, float value) Sets filling color to gray value */ PHP_FUNCTION(cpdf_setgray_fill) { @@ -1736,7 +1736,7 @@ PHP_FUNCTION(cpdf_setgray_fill) } /* }}} */ -/* {{{ proto void cpdf_setgray_stroke(int pdfdoc, float value) +/* {{{ proto bool cpdf_setgray_stroke(int pdfdoc, float value) Sets drawing color to gray value */ PHP_FUNCTION(cpdf_setgray_stroke) { @@ -1757,7 +1757,7 @@ PHP_FUNCTION(cpdf_setgray_stroke) } /* }}} */ -/* {{{ proto void cpdf_setgray(int pdfdoc, float value) +/* {{{ proto bool cpdf_setgray(int pdfdoc, float value) Sets drawing and filling color to gray value */ PHP_FUNCTION(cpdf_setgray) { @@ -1778,7 +1778,7 @@ PHP_FUNCTION(cpdf_setgray) } /* }}} */ -/* {{{ proto void cpdf_setrgbcolor_fill(int pdfdoc, float red, float green, float blue) +/* {{{ proto bool cpdf_setrgbcolor_fill(int pdfdoc, float red, float green, float blue) Sets filling color to rgb color value */ PHP_FUNCTION(cpdf_setrgbcolor_fill) { @@ -1801,7 +1801,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_fill) } /* }}} */ -/* {{{ proto void cpdf_setrgbcolor_stroke(int pdfdoc, float red, float green, float blue) +/* {{{ proto bool cpdf_setrgbcolor_stroke(int pdfdoc, float red, float green, float blue) Sets drawing color to RGB color value */ PHP_FUNCTION(cpdf_setrgbcolor_stroke) { @@ -1824,7 +1824,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_stroke) } /* }}} */ -/* {{{ proto void cpdf_setrgbcolor(int pdfdoc, float red, float green, float blue) +/* {{{ proto bool cpdf_setrgbcolor(int pdfdoc, float red, float green, float blue) Sets drawing and filling color to RGB color value */ PHP_FUNCTION(cpdf_setrgbcolor) { @@ -1847,7 +1847,7 @@ PHP_FUNCTION(cpdf_setrgbcolor) } /* }}} */ -/* {{{ proto void cpdf_set_page_animation(int pdfdoc, int transition, float duration, float direction, int orientation, int inout) +/* {{{ proto bool cpdf_set_page_animation(int pdfdoc, int transition, float duration, float direction, int orientation, int inout) Sets transition between pages */ PHP_FUNCTION(cpdf_set_page_animation) { @@ -1873,7 +1873,7 @@ PHP_FUNCTION(cpdf_set_page_animation) } /* }}} */ -/* {{{ proto array cpdf_finalize(int pdfdoc) +/* {{{ proto bool cpdf_finalize(int pdfdoc) Creates PDF doc in memory */ PHP_FUNCTION(cpdf_finalize) { @@ -1893,7 +1893,7 @@ PHP_FUNCTION(cpdf_finalize) } /* }}} */ -/* {{{ proto array cpdf_output_buffer(int pdfdoc) +/* {{{ proto bool cpdf_output_buffer(int pdfdoc) Returns the internal memory stream as string */ PHP_FUNCTION(cpdf_output_buffer) { @@ -1916,7 +1916,7 @@ PHP_FUNCTION(cpdf_output_buffer) } /* }}} */ -/* {{{ proto array cpdf_save_to_file(int pdfdoc, string filename) +/* {{{ proto bool cpdf_save_to_file(int pdfdoc, string filename) Saves the internal memory stream to a file */ PHP_FUNCTION(cpdf_save_to_file) { @@ -1946,7 +1946,7 @@ PHP_FUNCTION(cpdf_save_to_file) } /* }}} */ -/* {{{ proto void cpdf_import_jpeg(int pdfdoc, string filename, float x, float y, float angle, float width, float height, float x_scale, float y_scale, int gsave [, int mode]) +/* {{{ proto bool cpdf_import_jpeg(int pdfdoc, string filename, float x, float y, float angle, float width, float height, float x_scale, float y_scale, int gsave [, int mode]) Includes JPEG image */ PHP_FUNCTION(cpdf_import_jpeg) { @@ -2011,7 +2011,7 @@ PHP_FUNCTION(cpdf_import_jpeg) /* }}} */ #if HAVE_LIBGD13 -/* {{{ proto void cpdf_place_inline_image(int pdfdoc, int gdimage, float x, float y, float angle, fload width, float height, int gsave [, int mode]) +/* {{{ proto bool cpdf_place_inline_image(int pdfdoc, int gdimage, float x, float y, float angle, fload width, float height, int gsave [, int mode]) Includes image */ PHP_FUNCTION(cpdf_place_inline_image) { @@ -2095,7 +2095,7 @@ PHP_FUNCTION(cpdf_place_inline_image) /* }}} */ #endif -/* {{{ proto void cpdf_add_annotation(int pdfdoc, float xll, float yll, float xur, float xur, string title, string text [, int mode]) +/* {{{ proto bool cpdf_add_annotation(int pdfdoc, float xll, float yll, float xur, float xur, string title, string text [, int mode]) Sets annotation */ PHP_FUNCTION(cpdf_add_annotation) {