summaryrefslogtreecommitdiff
path: root/ext/cpdf/cpdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/cpdf/cpdf.c')
-rw-r--r--ext/cpdf/cpdf.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c
index 0ebc6d4659..105f4e9956 100644
--- a/ext/cpdf/cpdf.c
+++ b/ext/cpdf/cpdf.c
@@ -499,7 +499,7 @@ PHP_FUNCTION(cpdf_close)
/* }}} */
#define BUFFERLEN 40
-/* {{{ proto void cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, double unit])
+/* {{{ proto void cpdf_page_init(int pdfdoc, int pagenr, int orientation, int height, int width [, float unit])
Starts page */
PHP_FUNCTION(cpdf_page_init)
{
@@ -679,7 +679,7 @@ PHP_FUNCTION(cpdf_show)
}
/* }}} */
-/* {{{ proto void cpdf_show_xy(int pdfdoc, string text, double x-koor, double y-koor [, int mode])
+/* {{{ proto void cpdf_show_xy(int pdfdoc, string text, float x-koor, float y-koor [, int mode])
Output text at position */
PHP_FUNCTION(cpdf_show_xy)
{
@@ -744,7 +744,7 @@ PHP_FUNCTION(cpdf_continue_text)
}
/* }}} */
-/* {{{ proto void cpdf_text(int pdfdoc, string text [, double x-koor, double y-koor [, int mode [, double orientation [, int alignmode]]]])
+/* {{{ proto void cpdf_text(int pdfdoc, string text [, float x-koor, float y-koor [, int mode [, float orientation [, int alignmode]]]])
Output text */
PHP_FUNCTION(cpdf_text)
{
@@ -834,7 +834,7 @@ PHP_FUNCTION(cpdf_text)
}
/* }}} */
-/* {{{ proto void cpdf_set_font(int pdfdoc, string font, double size, string encoding)
+/* {{{ proto void cpdf_set_font(int pdfdoc, string font, float size, string encoding)
Select the current font face, size and encoding */
PHP_FUNCTION(cpdf_set_font)
{
@@ -923,7 +923,7 @@ PHP_FUNCTION(cpdf_set_font_map_file)
}
/* }}} */
-/* {{{ proto void cpdf_set_leading(int pdfdoc, double distance)
+/* {{{ proto void cpdf_set_leading(int pdfdoc, float distance)
Sets distance between text lines */
PHP_FUNCTION(cpdf_set_leading)
{
@@ -977,7 +977,7 @@ PHP_FUNCTION(cpdf_set_text_rendering)
}
/* }}} */
-/* {{{ proto void cpdf_set_horiz_scaling(int pdfdoc, double scale)
+/* {{{ proto void cpdf_set_horiz_scaling(int pdfdoc, float scale)
Sets horizontal scaling of text */
PHP_FUNCTION(cpdf_set_horiz_scaling)
{
@@ -1004,7 +1004,7 @@ PHP_FUNCTION(cpdf_set_horiz_scaling)
}
/* }}} */
-/* {{{ proto void cpdf_set_text_rise(int pdfdoc, double value)
+/* {{{ proto void cpdf_set_text_rise(int pdfdoc, float value)
Sets the text rise */
PHP_FUNCTION(cpdf_set_text_rise)
{
@@ -1084,7 +1084,7 @@ PHP_FUNCTION(cpdf_set_text_matrix)
}
/* }}} */
-/* {{{ proto void cpdf_set_text_pos(int pdfdoc, double x, double y [, int mode])
+/* {{{ proto void cpdf_set_text_pos(int pdfdoc, float x, float y [, int mode])
Set the position of text for the next cpdf_show call */
PHP_FUNCTION(cpdf_set_text_pos)
{
@@ -1121,7 +1121,7 @@ PHP_FUNCTION(cpdf_set_text_pos)
}
/* }}} */
-/* {{{ proto void cpdf_rotate_text(int pdfdoc, double angle)
+/* {{{ proto void cpdf_rotate_text(int pdfdoc, float angle)
Sets character spacing */
PHP_FUNCTION(cpdf_rotate_text)
{
@@ -1148,7 +1148,7 @@ PHP_FUNCTION(cpdf_rotate_text)
}
/* }}} */
-/* {{{ proto void cpdf_set_char_spacing(int pdfdoc, double space)
+/* {{{ proto void cpdf_set_char_spacing(int pdfdoc, float space)
Sets character spacing */
PHP_FUNCTION(cpdf_set_char_spacing)
{
@@ -1175,7 +1175,7 @@ PHP_FUNCTION(cpdf_set_char_spacing)
}
/* }}} */
-/* {{{ proto void cpdf_set_word_spacing(int pdfdoc, double space)
+/* {{{ proto void cpdf_set_word_spacing(int pdfdoc, float space)
Sets spacing between words */
PHP_FUNCTION(cpdf_set_word_spacing)
{
@@ -1202,7 +1202,7 @@ PHP_FUNCTION(cpdf_set_word_spacing)
}
/* }}} */
-/* {{{ proto double cpdf_stringwidth(int pdfdoc, string text)
+/* {{{ proto float cpdf_stringwidth(int pdfdoc, string text)
Returns width of text in current font */
PHP_FUNCTION(cpdf_stringwidth)
{
@@ -1282,7 +1282,7 @@ PHP_FUNCTION(cpdf_restore)
}
/* }}} */
-/* {{{ proto void cpdf_translate(int pdfdoc, double x, double y)
+/* {{{ proto void cpdf_translate(int pdfdoc, float x, float y)
Sets origin of coordinate system */
PHP_FUNCTION(cpdf_translate)
{
@@ -1310,7 +1310,7 @@ PHP_FUNCTION(cpdf_translate)
}
/* }}} */
-/* {{{ proto void cpdf_scale(int pdfdoc, double x-scale, double y-scale)
+/* {{{ proto void cpdf_scale(int pdfdoc, float x_scale, float y_scale)
Sets scaling */
PHP_FUNCTION(cpdf_scale)
{
@@ -1338,7 +1338,7 @@ PHP_FUNCTION(cpdf_scale)
}
/* }}} */
-/* {{{ proto void cpdf_rotate(int pdfdoc, double angle)
+/* {{{ proto void cpdf_rotate(int pdfdoc, float angle)
Sets rotation */
PHP_FUNCTION(cpdf_rotate)
{
@@ -1365,7 +1365,7 @@ PHP_FUNCTION(cpdf_rotate)
}
/* }}} */
-/* {{{ proto void cpdf_setflat(int pdfdoc, double value)
+/* {{{ proto void cpdf_setflat(int pdfdoc, float value)
Sets flatness */
PHP_FUNCTION(cpdf_setflat)
{
@@ -1461,7 +1461,7 @@ PHP_FUNCTION(cpdf_setlinecap)
}
/* }}} */
-/* {{{ proto void cpdf_setmiterlimit(int pdfdoc, double value)
+/* {{{ proto void cpdf_setmiterlimit(int pdfdoc, float value)
Sets miter limit */
PHP_FUNCTION(cpdf_setmiterlimit)
{
@@ -1493,7 +1493,7 @@ PHP_FUNCTION(cpdf_setmiterlimit)
}
/* }}} */
-/* {{{ proto void cpdf_setlinewidth(int pdfdoc, double width)
+/* {{{ proto void cpdf_setlinewidth(int pdfdoc, float width)
Sets line width */
PHP_FUNCTION(cpdf_setlinewidth)
{
@@ -1552,7 +1552,7 @@ PHP_FUNCTION(cpdf_setdash)
/* }}} */
#undef BUFFERLEN
-/* {{{ proto void cpdf_moveto(int pdfdoc, double x, double y [, int mode])
+/* {{{ proto void cpdf_moveto(int pdfdoc, float x, float y [, int mode])
Sets current point */
PHP_FUNCTION(cpdf_moveto)
{
@@ -1589,7 +1589,7 @@ PHP_FUNCTION(cpdf_moveto)
}
/* }}} */
-/* {{{ proto void cpdf_rmoveto(int pdfdoc, double x, double y [, int mode])
+/* {{{ proto void cpdf_rmoveto(int pdfdoc, float x, float y [, int mode])
Sets current point */
PHP_FUNCTION(cpdf_rmoveto)
{
@@ -1626,7 +1626,7 @@ PHP_FUNCTION(cpdf_rmoveto)
}
/* }}} */
-/* {{{ proto void cpdf_curveto(int pdfdoc, double x1, double y1, double x2, double y2, double x3, double y3 [, int mode])
+/* {{{ proto void 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)
{
@@ -1677,7 +1677,7 @@ PHP_FUNCTION(cpdf_curveto)
}
/* }}} */
-/* {{{ proto void cpdf_lineto(int pdfdoc, double x, double y [, int mode])
+/* {{{ proto void cpdf_lineto(int pdfdoc, float x, float y [, int mode])
Draws a line */
PHP_FUNCTION(cpdf_lineto)
{
@@ -1714,7 +1714,7 @@ PHP_FUNCTION(cpdf_lineto)
}
/* }}} */
-/* {{{ proto void cpdf_rlineto(int pdfdoc, double x, double y [, int mode])
+/* {{{ proto void cpdf_rlineto(int pdfdoc, float x, float y [, int mode])
Draws a line relative to current point */
PHP_FUNCTION(cpdf_rlineto)
{
@@ -1751,7 +1751,7 @@ PHP_FUNCTION(cpdf_rlineto)
}
/* }}} */
-/* {{{ proto void cpdf_circle(int pdfdoc, double x, double y, double radius [, int mode])
+/* {{{ proto void cpdf_circle(int pdfdoc, float x, float y, float radius [, int mode])
Draws a circle */
PHP_FUNCTION(cpdf_circle)
{
@@ -1789,7 +1789,7 @@ PHP_FUNCTION(cpdf_circle)
}
/* }}} */
-/* {{{ proto void cpdf_arc(int pdfdoc, double x, double y, double radius, double start, double end [, int mode])
+/* {{{ proto void cpdf_arc(int pdfdoc, float x, float y, float radius, float start, float end [, int mode])
Draws an arc */
PHP_FUNCTION(cpdf_arc)
{
@@ -1829,7 +1829,7 @@ PHP_FUNCTION(cpdf_arc)
}
/* }}} */
-/* {{{ proto void cpdf_rect(int pdfdoc, double x, double y, double width, double height [, int mode])
+/* {{{ proto void cpdf_rect(int pdfdoc, float x, float y, float width, float height [, int mode])
Draws a rectangle */
PHP_FUNCTION(cpdf_rect)
{
@@ -2086,7 +2086,7 @@ PHP_FUNCTION(cpdf_clip)
}
/* }}} */
-/* {{{ proto void cpdf_setgray_fill(int pdfdoc, double value)
+/* {{{ proto void cpdf_setgray_fill(int pdfdoc, float value)
Sets filling color to gray value */
PHP_FUNCTION(cpdf_setgray_fill)
{
@@ -2113,7 +2113,7 @@ PHP_FUNCTION(cpdf_setgray_fill)
}
/* }}} */
-/* {{{ proto void cpdf_setgray_stroke(int pdfdoc, double value)
+/* {{{ proto void cpdf_setgray_stroke(int pdfdoc, float value)
Sets drawing color to gray value */
PHP_FUNCTION(cpdf_setgray_stroke)
{
@@ -2140,7 +2140,7 @@ PHP_FUNCTION(cpdf_setgray_stroke)
}
/* }}} */
-/* {{{ proto void cpdf_setgray(int pdfdoc, double value)
+/* {{{ proto void cpdf_setgray(int pdfdoc, float value)
Sets drawing and filling color to gray value */
PHP_FUNCTION(cpdf_setgray)
{
@@ -2167,7 +2167,7 @@ PHP_FUNCTION(cpdf_setgray)
}
/* }}} */
-/* {{{ proto void cpdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue)
+/* {{{ proto void cpdf_setrgbcolor_fill(int pdfdoc, float red, float green, float blue)
Sets filling color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor_fill)
{
@@ -2196,7 +2196,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_fill)
}
/* }}} */
-/* {{{ proto void cpdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue)
+/* {{{ proto void cpdf_setrgbcolor_stroke(int pdfdoc, float red, float green, float blue)
Sets drawing color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor_stroke)
{
@@ -2225,7 +2225,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_stroke)
}
/* }}} */
-/* {{{ proto void cpdf_setrgbcolor(int pdfdoc, double red, double green, double blue)
+/* {{{ proto void cpdf_setrgbcolor(int pdfdoc, float red, float green, float blue)
Sets drawing and filling color to rgb color value */
PHP_FUNCTION(cpdf_setrgbcolor)
{
@@ -2254,7 +2254,7 @@ PHP_FUNCTION(cpdf_setrgbcolor)
}
/* }}} */
-/* {{{ proto void cpdf_set_page_animation(int pdfdoc, int transition, double duration, double direction, int orientation, int inout)
+/* {{{ proto void 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)
{
@@ -2373,7 +2373,7 @@ PHP_FUNCTION(cpdf_save_to_file)
}
/* }}} */
-/* {{{ proto void cpdf_import_jpeg(int pdfdoc, string filename, double x, double y, double angle, double width, double height, double x-scale, double y-scale, int gsave [, int mode])
+/* {{{ 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])
Includes jpeg image */
PHP_FUNCTION(cpdf_import_jpeg)
{
@@ -2441,7 +2441,7 @@ PHP_FUNCTION(cpdf_import_jpeg)
/* }}} */
#if HAVE_LIBGD13
-/* {{{ proto void cpdf_place_inline_image(int pdfdoc, int gdimage, double x, double y, double angle, fload width, float height, int gsave [, int mode])
+/* {{{ proto void 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)
{
@@ -2533,7 +2533,7 @@ PHP_FUNCTION(cpdf_place_inline_image)
/* }}} */
#endif
-/* {{{ proto void cpdf_add_annotation(int pdfdoc, double xll, double yll, double xur, double xur, string title, string text [, int mode])
+/* {{{ proto void 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)
{
@@ -2593,7 +2593,7 @@ PHP_FUNCTION(cpdf_add_annotation)
}
/* }}} */
-/* {{{ proto void cpdf_set_action_url(int pdfdoc, double xll, double yll, double xur, double xur, string url [, int mode])
+/* {{{ proto void cpdf_set_action_url(int pdfdoc, float xll, float yll, float xur, float xur, string url [, int mode])
Sets Hyperlink */
PHP_FUNCTION(cpdf_set_action_url)
{