From 48e23c2035c38f41795db676764555c0c9eb1ff4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 10 Dec 1999 21:25:15 +0000 Subject: [PATCH] several updates to be in line with german version git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@17015 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pdf.xml | 120 +++++++++++++++++++++++----------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/functions/pdf.xml b/functions/pdf.xml index dc7e88ef3e..d90e2ede3f 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -674,13 +674,13 @@ fclose($fp); void pdf_show_xy int pdf document string text - double x-koor - double y-koor + double x-coor + double y-coor The PDF_show_xy function outputs the string text at position - (x-koor, y-koor). + (x-coor, y-coor). See also PDF_show. @@ -705,14 +705,18 @@ fclose($fp); The PDF_set_font function sets the - current font face, font size and encoding. You will need to + current font face, font size and encoding. If you use pdflib 0.6 + you will need to provide the Adobe Font Metrics (afm-files) for the font in the - font path (default is ./fonts). The last parameter + font path (default is ./fonts). The fourth parameter encoding can take the following values: 0 = builtin, 1 = pdfdoc, 2 = macroman, 3 = macexpert, 4 = winansi. An encoding greater than 4 and less than 0 will default to winansi. winansi is often a good choice. If the last parameter is set to 1 the font is embedded into the pdf document otherwise it is not. + To embed a font is usually a good idea if the font is not widely spread + and you cannot ensure that the person watching your document has + access on fonts in the document. This function has to be called after @@ -720,11 +724,6 @@ fclose($fp); valid pdf document. - - This function does not need the afm files for winansi encoding if - pdflib 2.0 support is activated. - - @@ -801,11 +800,11 @@ fclose($fp); void pdf_set_text_rise int pdf document - double value + double rise The PDF_set_text_rise function sets the - text rising to value points. + text rising to rise points. @@ -838,8 +837,8 @@ fclose($fp); void pdf_set_text_pos int pdf document - double x-koor - double y-koor + double x-coor + double y-coor The PDF_set_text_pos function sets the @@ -936,8 +935,9 @@ fclose($fp); The PDF_stringwidth function returns the - width of the string in text. It requires - a font to be set before. + width of the string in text by using the + current font. It requires a font to be set before with + PDD_set_font. See also PDF_set_font. @@ -961,7 +961,8 @@ fclose($fp); environment. It works like the postscript command gsave. Very useful if you want to translate or rotate an object without effecting other objects. PDF_save should always be - followed by PDF_restore. + followed by PDF_restore to restore the environment + before PDF_save. See also PDF_restore. @@ -983,9 +984,7 @@ fclose($fp); The PDF_restore function restores the environment saved with PDF_save. It works - like the postscript command grestore. Very - useful if you want to translate or rotate an object without effecting - other objects. + like the postscript command grestore. Save and Restore @@ -1011,13 +1010,14 @@ PDF_restore($pdf) ?> void pdf_translate int pdf document - double x-koor - double y-koor + double x-coor + double y-coor - The PDF_translate function set the origin of - coordinate system to the point (x-koor, - y-koor). The following example draws + The PDF_translate function sets the origin of + coordinate system to the point (x-coor, + y-coor) relativ the current origin. + The following example draws a line from (0, 0) to (200, 200) relative to the initial coordinate system. You have to set the current point after PDF_translate and before you start drawing @@ -1053,7 +1053,7 @@ PDF_stroke($pdf); double y-scale - The PDF_scale function set the scaling factor + The PDF_scale function sets the scaling factor in both directions. The following example scales x and y direction by 72. The following line will therefore be drawn one inch in both directions. @@ -1083,7 +1083,7 @@ PDF_stroke($pdf); double angle - The PDF_rotate function set the rotation in + The PDF_rotate function sets the rotation in degress to angle. @@ -1102,7 +1102,7 @@ PDF_stroke($pdf); double value - The PDF_setflat function set the flatness to + The PDF_setflat function sets the flatness to a value between 0 and 100. @@ -1121,7 +1121,7 @@ PDF_stroke($pdf); long value - The PDF_setlinejoin function set the linejoin + The PDF_setlinejoin function sets the linejoin parameter between a value of 0 and 2. @@ -1140,7 +1140,7 @@ PDF_stroke($pdf); int value - The PDF_setlinecap function set the linecap + The PDF_setlinecap function sets the linecap parameter between a value of 0 and 2. @@ -1159,7 +1159,7 @@ PDF_stroke($pdf); double value - The PDF_setmiterlimit function set the miter limit + The PDF_setmiterlimit function sets the miter limit to a value greater of equal than 1. @@ -1178,7 +1178,7 @@ PDF_stroke($pdf); double width - The PDF_setlinewidth function set the line width + The PDF_setlinewidth function sets the line width to width. @@ -1198,7 +1198,7 @@ PDF_stroke($pdf); double black - The PDF_setdash function set the dash pattern + The PDF_setdash function sets the dash pattern white white points and black black points. If both are 0 a solid line is set. @@ -1215,13 +1215,13 @@ PDF_stroke($pdf); void pdf_moveto int pdf document - double x-koor - double y-koor + double x-coor + double y-coor - The PDF_moveto function set the current point - to the coordinates x-koor and - y-koor. + The PDF_moveto function sets the current point + to the coordinates x-coor and + y-coor. @@ -1269,13 +1269,13 @@ PDF_stroke($pdf); void pdf_lineto int pdf document - double x-koor - double y-koor + double x-coor + double y-coor The PDF_lineto function draws a line from the current point to the point with coordinates - (x-koor, y-koor). + (x-coor, y-coor). See also PDF_moveto, @@ -1295,14 +1295,14 @@ PDF_stroke($pdf); void pdf_circle int pdf document - double x-koor - double y-koor + double x-coor + double y-coor double radius The PDF_circle function draws a circle with center at point - (x-koor, y-koor) + (x-coor, y-coor) and radius radius. @@ -1322,8 +1322,8 @@ PDF_stroke($pdf); void pdf_arc int pdf document - double x-koor - double y-koor + double x-coor + double y-coor double radius double start double end @@ -1331,7 +1331,7 @@ PDF_stroke($pdf); The PDF_arc function draws an arc with center at point - (x-koor, y-koor) + (x-coor, y-coor) and radius radius, starting at angle start and ending at angle end. @@ -1353,15 +1353,15 @@ PDF_stroke($pdf); void pdf_rect int pdf document - double x-koor - double y-koor + double x-coor + double y-coor double width double height The PDF_rect function draws a rectangle with its lower left corner at point - (x-koor, y-koor). + (x-coor, y-coor). This width is set to widgth. This height is set to height. @@ -1428,7 +1428,7 @@ PDF_stroke($pdf); The PDF_closepath_stroke function is a combination of PDF_closepath and - PDF_stroke. Than clears the path. + PDF_stroke. It also clears the path. See also PDF_closepath, @@ -1567,7 +1567,7 @@ PDF_stroke($pdf); void pdf_setgray_fill int pdf document - double value + double gray value The PDF_setgray_fill function sets the current @@ -1614,7 +1614,7 @@ PDF_stroke($pdf); double gray value - The PDF_setgray_stroke function sets the current + The PDF_setgray function sets the current drawing and filling color to the given gray value. @@ -1839,7 +1839,7 @@ pdf_close_image($pdf, $im); int pdf_open_memory_image int pdf document - string int image + int image The PDF_open_memory_image function takes @@ -1932,14 +1932,14 @@ pdf_close_image($pdf, $pim); void pdf_place_image int pdf document int image - double x-koor - double y-koor + double x-coor + double y-coor double scale The PDF_place_image function places an image - on the page at postion (x-koor, - x-koor). The image can be scaled at the same + on the page at postion (x-coor, + x-coor). The image can be scaled at the same time. See also PDF_put_image. @@ -1959,7 +1959,7 @@ pdf_close_image($pdf, $pim); int image - The PDF_put_image function places an image + The PDF_put_image function places an image in the PDF file without showing it. The stored image can be displayed with the PDF_execute_image function as many times as needed. This is useful when using the same @@ -1994,7 +1994,7 @@ pdf_close_image($pdf, $pim); double scale - The PDF_execute_image function displays an image that has been + The PDF_execute_image function displays an image that has been put in the PDF file with the PDF_put_image function on the current page at the given coordinates.