[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
mk Fri Feb 22 05:50:49 2002 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Fixed bug 15671 Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.77 phpdoc/en/functions/pdf.xml:1.78 --- phpdoc/en/functions/pdf.xml:1.77Sat Feb 2 10:36:07 2002 +++ phpdoc/en/functions/pdf.xml Fri Feb 22 05:50:47 2002 @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -2031,7 +2031,7 @@
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwThu Dec 20 16:07:53 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: pdf_setcolor: add examples, clarify range for color values Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.74 phpdoc/en/functions/pdf.xml:1.75 --- phpdoc/en/functions/pdf.xml:1.74Tue Dec 18 18:37:31 2001 +++ phpdoc/en/functions/pdf.xml Thu Dec 20 16:07:53 2001 @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -2099,7 +2099,7 @@ pdf_setcolor -Sets fill and stroke color to CMYK values +Sets fill and stroke color Description @@ -2116,31 +2116,57 @@ - Set the current color space and color. The parameter - type can be "fill", "stroke", or "both" - to specify that the color is set for filling, stroking or both - filling and stroking. The parameter - colorspace can be - gray, rgb, - cmyk, spot or - pattern. The parameters - c1, c2, - c3 and c4 - represent the color components for the color space specified by - colorspace. For gray only - c1 is used. For rgb parameters - c1, c2, and - c3 specify the Red, Green amd Blue values - respectively. - For cmyk parameters c1, - c2, c3, and - c4 specify the Cyan, Magenta, Yellow and - Black values respectively. - For spot c1 specifies - a spot color handles returned by pdf_makespotcolor - and c2 specifies a tint value between 0 and 1. - For pattern c1 specifies - a pattern handle returned by pdf_begin_pattern. + Set the current color space and color. The parameter + type can be "fill", "stroke", or "both" to + specify that the color is set for filling, stroking or both filling and + stroking. The parameter colorspace can be + gray, rgb, + cmyk, spot or + pattern. The parameters c1, + c2, c3 and + c4 represent the color components for the color + space specified by colorspace. Except as + otherwise noted, the color components are floating-point values that + range from 0 to 1. + + + For gray only c1 is used. + + + For rgb parameters c1, + c2, and c3 specify the + red, green and blue values respectively. + + + + + + + + For cmyk, parameters c1, + c2, c3, and + c4 are the cyan, magenta, yellow and black + values, respectively. + + + + + + + + For spot, c1 should be + a spot color handles returned by pdf_makespotcolor + and c2 is a tint value between 0 and 1. + + + For pattern, c1 should be + a pattern handle returned by pdf_begin_pattern.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwTue Dec 18 18:37:31 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: pdf_begin_page: incorporate user notes Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.73 phpdoc/en/functions/pdf.xml:1.74 --- phpdoc/en/functions/pdf.xml:1.73Tue Dec 18 18:08:37 2001 +++ phpdoc/en/functions/pdf.xml Tue Dec 18 18:37:31 2001 @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -726,7 +726,72 @@ - Add a new page to the document. + Add a new page to the document. The width + and height are specified in points, which are + 1/72 of an inch. + + + + Common Page Sizes in Points + + + + name + size + + + + + A0 + 2380✗3368 + + + A1 + 1684✗2380 + + + A2 + 1190✗1684 + + + A3 + 842✗1190 + + + A4 + 595✗842 + + + A5 + 421✗595 + + + A6 + 297✗421 + + + B5 + 501✗709 + + + letter (8.5"✗11") + 612✗792 + + + legal (8.5"✗14") + 612✗1008 + + + ledger (17"✗11") + 1224✗792 + + + 11"✗17" + 792✗1224 + + + +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwTue Dec 18 18:08:37 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: pdf_moveto: incorporate user note Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.72 phpdoc/en/functions/pdf.xml:1.73 --- phpdoc/en/functions/pdf.xml:1.72Mon Dec 17 05:31:47 2001 +++ phpdoc/en/functions/pdf.xml Tue Dec 18 18:08:37 2001 @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -1526,8 +1526,15 @@ - Set the current point. + Set the current point. + + + The current point for graphics and the current text output position are + maintained separately. See pdf_set_text_pos to set + the text output position. + +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
hholzgraMon Dec 17 05:31:47 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: added some missing functions Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.71 phpdoc/en/functions/pdf.xml:1.72 --- phpdoc/en/functions/pdf.xml:1.71Wed Dec 12 15:47:16 2001 +++ phpdoc/en/functions/pdf.xml Mon Dec 17 05:31:47 2001 @@ -1,5 +1,5 @@ - + PDF functions PDF @@ -1386,6 +1386,48 @@ + + +pdf_get_majorversion + + Returns the major version number of the PDFlib + + + +Description + + + int pdf_get_majorversion + + + + + Returns the major version number of the PDFlib. + + + + + + +pdf_get_minorversion + + Returns the minor version number of the PDFlib + + + +Description + + + int pdf_get_majorversion + + + + + Returns the minor version number of the PDFlib. + + + + pdf_get_value @@ -2538,6 +2580,116 @@ Fill document information field key with value. key is one of "Subject", "Title", "Creator", "Author", "Keywords", or a user-defined key. + + + + + + +pdf_set_info_author + + Fills the author field of the document + + + +Description + + + bool pdf_set_info_author + int pdfdoc + string author + + + + This function is deprecate, use pdf_set_info instead. + + + + + + +pdf_set_info_creator + + Fills the creator field of the document + + + +Description + + + bool pdf_set_info_creator + int pdfdoc + string creator + + + + This function is deprecate, use pdf_set_info instead. + + + + + + +pdf_set_info_keywords + + Fills the keywords field of the document + + + +Description + + + bool pdf_set_info_keywords + int pdfdoc + string keywords + + + + This function is deprecate, use pdf_set_info instead. + + + + + + +pdf_set_info_subject + + Fills the subject field of the document + + + +Description + + + bool pdf_set_info_subject + int pdfdoc + string subject + + + + This function is deprecate, use pdf_set_info instead. + + + + + + +pdf_set_info_title + + Fills the title field of the document + + + +Description + + + bool pdf_set_info_title + int pdfdoc + string title + + + + This function is deprecate, use pdf_set_info instead.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jeroen Sat Aug 4 13:00:22 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Re-added that section. Only the id was duplicate, not the section. Was introduced by that naming-bugfix. - Cleaned the names of types, and more clear difference between the two, and see-also to eachother Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.64 phpdoc/en/functions/pdf.xml:1.65 --- phpdoc/en/functions/pdf.xml:1.64Sat Aug 4 09:07:38 2001 +++ phpdoc/en/functions/pdf.xml Sat Aug 4 13:00:22 2001 @@ -1,4 +1,4 @@ - + PDF functions PDF @@ -623,24 +623,54 @@ pdf_arc -Draws an arc +Draws an arc (counterclockwise) Description void pdf_arc - int pdf object - double x - double y - double r - double alpha - double beta + resource pdf object + float x + float y + float r + float alpha + float beta Draw a counterclockwise circular arc from alpha to beta degrees + +See also: pdf_arcn + + + + + + +pdf_arcn +Draws an arc (clockwise) + + +Description + + + void pdf_arc + resource pdf object + float x + float y + float r + float alpha + float beta + + + + Draw a clockwise circular arc from alpha to beta degrees + + +See also: pdf_arc + @@ -2834,4 +2864,5 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim: ts=1 sw=1 et syntax=sgml -->
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jeroen Sat Aug 4 09:07:38 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Removed duplicate section Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.63 phpdoc/en/functions/pdf.xml:1.64 --- phpdoc/en/functions/pdf.xml:1.63Thu Aug 2 13:37:19 2001 +++ phpdoc/en/functions/pdf.xml Sat Aug 4 09:07:38 2001 @@ -1,4 +1,4 @@ - + PDF functions PDF @@ -640,30 +640,6 @@ Draw a counterclockwise circular arc from alpha to beta degrees - - - - - - -pdf_arcn -Draws an arc - - -Description - - - void pdf_arc - int pdf object - double x - double y - double r - double alpha - double beta - - - - Draw a clockwise circular arc from alpha to beta degrees
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
gobaWed Aug 1 04:49:33 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Bug corrections Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.61 phpdoc/en/functions/pdf.xml:1.62 --- phpdoc/en/functions/pdf.xml:1.61Sat Jul 7 17:57:29 2001 +++ phpdoc/en/functions/pdf.xml Wed Aug 1 04:49:33 2001 @@ -643,7 +643,7 @@ - + pdf_arcn Draws an arc @@ -1521,7 +1521,7 @@ Description - int pdf_open + int pdf_open_CCITT int pdf object string filename int width
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rasmus Wed May 23 23:01:59 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Add a bit of detail and fix a return type Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.55 phpdoc/en/functions/pdf.xml:1.56 --- phpdoc/en/functions/pdf.xml:1.55Wed May 23 12:11:02 2001 +++ phpdoc/en/functions/pdf.xml Wed May 23 23:01:59 2001 @@ -726,7 +726,7 @@ Description - void pdf_begin_pattern + int pdf_begin_pattern int pdf object double width double height @@ -736,7 +736,13 @@ - Start a new pattern definition. + Starts a new pattern definition and returns a pattern handle. + width, and height + define the bounding box for the pattern. xstep + and ystep give the repeated pattern offsets. + painttype=1 means that the pattern has its + own colour settings whereas a value of 2 indicates tha the current + colour is used when the pattern is applied. @@ -1970,9 +1976,9 @@ string type string colorspace double c1 - double c2 - double c3 - double c4 + double c2 + double c3 + double c4 @@ -1987,7 +1993,20 @@ c1, c2, c3 and c4 represent the color components for the color space specified by - colorspace. + colorspace. For gray only + c1 is used. For rgb parameters + c1, c2, and + c3 specify the Red, Green amd Blue values + respectively. + For cmyk parameters c1, + c2, c3, and + c4 specify the Cyan, Magenta, Yellow and + Black values respectively. + For spot c1 specifies + a spot color handles returned by pdf_makespotcolor + and c2 specifies a tint value between 0 and 1. + For pattern c1 specifies + a pattern handle returned by pdf_begin_pattern. @@ -2008,7 +2027,8 @@ - Set the current dash pattern to b black and w white units. + Set the current dash pattern to b black + and w white units.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rasmus Wed May 23 12:11:02 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: pdf object parameter is needed here Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.54 phpdoc/en/functions/pdf.xml:1.55 --- phpdoc/en/functions/pdf.xml:1.54Wed May 23 09:07:45 2001 +++ phpdoc/en/functions/pdf.xml Wed May 23 12:11:02 2001 @@ -889,12 +889,13 @@ void pdf_close_image + int pdf object int image Close an image retrieved with one of the - pdf_open_image*() functions. + pdf_open_image* functions.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Wed May 23 09:07:45 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: removed a mysterious empty row in the compatibility table Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.53 phpdoc/en/functions/pdf.xml:1.54 --- phpdoc/en/functions/pdf.xml:1.53Mon May 21 13:17:16 2001 +++ phpdoc/en/functions/pdf.xml Wed May 23 09:07:45 2001 @@ -218,10 +218,6 @@ "imageheight" as the second parameter and the image as the third parameter. - - - -
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Mon May 21 13:17:16 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: corrected more functions due to manual errata notes Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.52 phpdoc/en/functions/pdf.xml:1.53 --- phpdoc/en/functions/pdf.xml:1.52Mon May 21 12:28:58 2001 +++ phpdoc/en/functions/pdf.xml Mon May 21 13:17:16 2001 @@ -18,10 +18,13 @@ section for more information about compiling PDF support into PHP. - Please consult the documentation for PDFlib included with - the source distribution of PDFlib. It provides a very good - overview of what PDFlib is capable of doing and contains the full - and most up-to-date documentation of all functions. +The documentation in this section is only meant to be an overview +of the available functions in the PDFlib library and should not be +considered an exhaustive reference. Please consult the +documentation included in the source distribution of PDFlib for +the full and detailed explanation of each function here. It +provides a very good overview of what PDFlib is capable of doing +and contains the most up-to-date documentation of all functions. All of the functions in PDFlib and the PHP module have identical @@ -1976,8 +1979,18 @@ - Set the current color space and color. type is "fill", - "stroke", or "both". + Set the current color space and color. The parameter + type can be "fill", "stroke", or "both" + to specify that the color is set for filling, stroking or both + filling and stroking. The parameter + colorspace can be + gray, rgb, + cmyk, spot or + pattern. The parameters + c1, c2, + c3 and c4 + represent the color components for the color space specified by + colorspace. @@ -2679,6 +2692,12 @@ If width and height are 0, only a single line is placed at the point (left, top) in the requested mode. + +Returns the number of characters that did not fit in the specified +box. Returns 0 if all characters fit or the +width and height +parameters were set to 0 for single-line formattting. +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Mon May 21 12:28:59 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: corrected doc bug #10586 (pdf_stringwidth proto and definition were incorrect Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.51 phpdoc/en/functions/pdf.xml:1.52 --- phpdoc/en/functions/pdf.xml:1.51Sun May 20 20:36:19 2001 +++ phpdoc/en/functions/pdf.xml Mon May 21 12:28:58 2001 @@ -2738,13 +2738,29 @@ double pdf_stringwidth int pdf object string text - string text - string text + int font + double size - Return the width of text in an arbitrary font. + Returns the width of text using the last + font set by pdf_setfont. If the optional + parameters font and + size are specified, the width will be + calculated using that font and size instead. Please note that + font is a font handle returned by + pdf_findfont. + + + Both the font and size + parameters must used together. + + + +See Also: pdf_setfont and +pdf_findfont. +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Sun May 20 20:36:19 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: corrected doc bug #10335 Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.50 phpdoc/en/functions/pdf.xml:1.51 --- phpdoc/en/functions/pdf.xml:1.50Sun May 20 20:28:10 2001 +++ phpdoc/en/functions/pdf.xml Sun May 20 20:36:19 2001 @@ -1990,12 +1990,12 @@ Description - - void pdf_setdash - int pdf object - double w - double b - + + void pdf_setdash + int pdf object + double b + double w + Set the current dash pattern to b black and w white units.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Sun May 20 20:28:10 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: corrected doc bug #10286 Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.49 phpdoc/en/functions/pdf.xml:1.50 --- phpdoc/en/functions/pdf.xml:1.49Sun May 20 19:21:09 2001 +++ phpdoc/en/functions/pdf.xml Sun May 20 20:28:10 2001 @@ -8,8 +8,9 @@ The PDF functions in PHP can create PDF files using the PDFlib library created by Thomas -Merz. PDFlib is available at &url.pdf;. The . PDFlib is available for download at &url.pdf;, but requires that you purchase +a license for commercial use. The JPEG and TIFF libraries are required to compile this extension. Please see the
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Sun May 20 19:21:09 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: changed all mixed case function names to lower case Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.48 phpdoc/en/functions/pdf.xml:1.49 --- phpdoc/en/functions/pdf.xml:1.48Thu May 17 15:40:32 2001 +++ phpdoc/en/functions/pdf.xml Sun May 20 19:21:09 2001 @@ -76,141 +76,141 @@ - PDF_put_image + pdf_put_image Not needed anymore. - PDF_execute_image + pdf_execute_image Not needed anymore. - PDF_get_annotation - PDF_get_bookmark using the same + pdf_get_annotation + pdf_get_bookmark using the same parameters. - PDF_get_font - PDF_get_value passing + pdf_get_font + pdf_get_value passing "font" as the second parameter. - PDF_get_fontsize - PDF_get_value passing + pdf_get_fontsize + pdf_get_value passing "fontsize" as the second parameter. - PDF_get_fontname - PDF_get_parameter passing + pdf_get_fontname + pdf_get_parameter passing "fontname" as the second parameter. - PDF_set_info_creator - PDF_set_info passing + pdf_set_info_creator + pdf_set_info passing "Creator" as the second parameter. - PDF_set_info_title - PDF_set_info passing + pdf_set_info_title + pdf_set_info passing "Title" as the second parameter. - PDF_set_info_subject - PDF_set_info passing + pdf_set_info_subject + pdf_set_info passing "Subject" as the second parameter. - PDF_set_info_author - PDF_set_info passing + pdf_set_info_author + pdf_set_info passing "Author" as the second parameter. - PDF_set_info_keywords - PDF_set_info passing + pdf_set_info_keywords + pdf_set_info passing "Keywords" as the second parameter. - PDF_set_leading - PDF_set_value passing + pdf_set_leading + pdf_set_value passing "leading" as the second parameter. - PDF_set_text_rendering - PDF_set_value passing + pdf_set_text_rendering + pdf_set_value passing "textrendering" as the second parameter. - PDF_set_text_rise - PDF_set_value passing + pdf_set_text_rise + pdf_set_value passing "textrise" as the second parameter. - PDF_set_horiz_scaling - PDF_set_value passing + pdf_set_horiz_scaling + pdf_set_value passing "horizscaling" as the second parameter. - PDF_set_text_matrix + pdf_set_text_matrix Not available anymore - PDF_set_char_spacing - PDF_set_value passing + pdf_set_char_spacing + pdf_set_value passing "charspacing" as the second parameter. - PDF_set_word_spacing - PDF_set_value passing + pdf_set_word_spacing + pdf_set_value passing "wordspacing" as the second parameter. - PDF_set_transition - PDF_set_parameter passing + pdf_set_transition + pdf_set_parameter passing "transition" as the second parameter. - PDF_open - PDF_new plus an subsequent call -of PDF_open_file + pdf_open + pdf_new plus an subsequent call +of pdf_open_file - PDF_set_font - PDF_findfont plus an subsequent call -of PDF_setfont + pdf_set_font + pdf_findfont plus an subsequent call +of pdf_setfont - PDF_set_duration - PDF_set_value passing + pdf_set_duration + pdf_set_value passing "duration" as the second parameter. - PDF_open_gif - PDF_open_image_file passing + pdf_open_gif + pdf_open_image_file passing "gif" as the second parameter. - PDF_open_jpeg - PDF_open_image_file passing + pdf_open_jpeg + pdf_open_image_file passing "jpeg" as the second parameter. - PDF_open_tiff - PDF_open_image_file passing + pdf_open_tiff + pdf_open_image_file passing "tiff" as the second parameter. - PDF_open_p
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Thu May 17 15:40:32 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: clarified analog clock description and reference to CLibPDF, fixed return type of PDF_findfont, put PDF_open_memory_image in aphanumeric order and converted some of the function names from pdf_ to PDF_ Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.47 phpdoc/en/functions/pdf.xml:1.48 --- phpdoc/en/functions/pdf.xml:1.47Thu May 17 14:49:51 2001 +++ phpdoc/en/functions/pdf.xml Thu May 17 15:40:32 2001 @@ -293,12 +293,11 @@ The PDFlib distribution contains a more complex example which - creates a page with an analog clock. Here we use - the in memory creation feature of PDFlib, so we don't need - any tmp-files. This example - converted into PHP using PDFlib looks as the following (you - can see the same example in the documentation for the - clibpdf module): + creates a page with an analog clock. Here we use the in memory + creation feature of PDFlib to alleviate the need to use temporary + files. The example, converted to PHP from the PDFlib example, is + as follows: (The same example is available in the CLibPDF documentation.) @@ -536,7 +535,7 @@ -pdf_add_outline +PDF_add_outline Deprecated: Adds bookmark for current page @@ -1151,7 +1150,7 @@ Description - void PDF_findfont + int PDF_findfont int pdf object string fontname string encoding^ @@ -1165,6 +1164,25 @@ "macroman", "winansi", "host", or a user-defined encoding name, or the name of a CMap. + +PDF_findfont returns a font handle or false +on error. + + + + PDF_findfont example + ++ + + @@ -1470,7 +1488,7 @@ -pdf_open +PDF_open Deprecated: Open a new pdf object @@ -1656,6 +1674,47 @@ + + + PDF_open_memory_image + Opens an image created with PHP's image functions + + + Description + + + int PDF_open_memory_image + int pdf object + int image + + + +The PDF_open_memory_image function takes +an image created with the PHP's image functions and makes it available +for the pdf object. The function returns a pdf +image identifier. + + + Including a memory image + + + + + +See also PDF_close_image, +PDF_place_image. + + + + PDF_open_pdi @@ -1963,28 +2022,31 @@ - - -PDF_setfont -Set the current font - - -Description - - - void PDF_setfont - int pdf object - int font - double size - - - - Set the current font in the given size, using a - font handle returned by - PDF_findfont - - - + + + PDF_setfont + Set the current font + + + Description + + + void PDF_setfont + int pdf object + int font + double size + + + +Set the current font in the given size, using a +font handle returned by +PDF_findfont + + +See Also: PDF_findfont. + + + @@ -2351,7 +2413,7 @@ -pdf_set_duration +PDF_set_duration Deprecated: Sets duration between pages @@ -2505,7 +2567,7 @@ -pdf_set_text_rise +PDF_set_text_rise Deprecated: Sets the text rise @@ -2521,7 +2583,7 @@ -pdf_set_text_matrix +PDF_set_text_matrix Deprecated: Sets the text matrix @@ -2555,7 +2617,7 @@ -pdf_set_word_spacing +PDF_set_word_spacing Depriciated: Sets spacing between words @@ -2722,47 +2784,6 @@ Translate the origin of the coordinate system. - - - - - -PDF_open_memory_image -Opens an image created with PHP's image functions - - -Description - - - int PDF_open_memory_image - int pdf object - int image - - - - The PDF_open_memory_image function takes - an image created with the PHP's image functions and makes it available - for the pdf object. The function returns a pdf - image identifier. - - - Including a memory image - - -
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
danbeck Thu May 17 14:49:51 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: clarification of introductory text Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.46 phpdoc/en/functions/pdf.xml:1.47 --- phpdoc/en/functions/pdf.xml:1.46Mon May 7 23:53:41 2001 +++ phpdoc/en/functions/pdf.xml Thu May 17 14:49:51 2001 @@ -6,59 +6,64 @@ Introduction - You can use the PDF functions in PHP to create PDF files if you - have the PDF library by Thomas Merz (available at - &url.pdf;; - you will also need the JPEG library - and the TIFF library to - compile this. These two librariess can often cause problems when - configuring PHP, so be sure to pay attention to the output of - the configure script and fix any problems it reports. +The PDF functions in PHP can create PDF files using the PDFlib +library created by Thomas +Merz. PDFlib is available at &url.pdf;. The JPEG and TIFF libraries are required to compile +this extension. Please see the PDFlib installation +section for more information about compiling PDF support into PHP. - Please consult the documentation for PDFlib shipped with + Please consult the documentation for PDFlib included with the source distribution of PDFlib. It provides a very good overview of what PDFlib is capable of doing and contains the full - and most up-to-date description of all functions. + and most up-to-date documentation of all functions. - All of the functions in PDFlib and the PHP module have the same name. - The parameters are also identical. - You should also understand some of the concepts of PDF - or PostScript to efficiently use this module. - All lengths and coordinates are measured in PostScript points. - There are generally 72 PostScript points to an inch, but this - depends on the output resolution. - - - There is another PHP module for PDF document creation based on - FastIO's. - ClibPDF. It has a slightly different API. Check the - ClibPDF functions section for - details. - - - The PDF module introduces one new type of variable. - It is called a pdf object and - almost all functions need a pdf object - as its first parameter. - + All of the functions in PDFlib and the PHP module have identical + function names and parameters. You will need to understand some + of the basic concepts of PDF and PostScript to efficiently use + this extension. All lengths and coordinates are measured in + PostScript points. There are generally 72 PostScript points to an + inch, but this depends on the output resolution. Please see the + PDFlib documentation included with the source distribution of + PDFlib for a more thorough explanation of the coordinate system + used. + + +Please note that most of the PDF functions require a +pdf object as it's first parameter. Please +see the examples below for more information. + + + + An alternative PHP module for PDF document creation based on + FastIO's ClibPDF is + available. Please see the ClibPDF + section for details. Note that ClibPDF has a slightly different API + compared to PDFlib. + + -Confusion with old PDFlib versions - - Starting with PHP 4.0.5, the PHP extension for PDFlib is officially - supported by PDFlib GmbH. This means that all the functions - described in the PDFlib-manual (V3.00 or greater) are supported by - PHP 4 with exactly the same meaning and the same parameters. - Only the return values may differ from the PDFlib manual, because - the PHP convention of returning false was adopted. - For compatibility reasons this binding for - PDFlib still supports the old functions, but as stated above - they should be replaced by their new versions. PDFlib GmbH will not - support any problems arising from the use of these deprecated - functions. - +Confusion with old PDFlib versions + +Starting with PHP 4.0.5, the PHP extension for PDFlib is +officially supported by PDFlib GmbH. This means that all the +functions described in the PDFlib manual (V3.00 or greater) are +supported by PHP 4 with exactly the same meaning and the same +parameters. Only the return values may differ from the PDFlib +manual, because the PHP convention of returning +false was adopted. For compatibility reasons +this binding for PDFlib still supports the old functions, but they +should be replaced by their new versions. PDFlib GmbH will not +support any problems arising from the use of these deprecated +functions. + Deprecated functions and its replacements @@ -219,10 +224,10 @@ -Hints for installation of PDFlib 3.x +P
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
derick Mon May 7 23:53:42 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: - Fix for bug 10722 (typo) Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.45 phpdoc/en/functions/pdf.xml:1.46 --- phpdoc/en/functions/pdf.xml:1.45Sat Apr 14 11:33:32 2001 +++ phpdoc/en/functions/pdf.xml Mon May 7 23:53:41 2001 @@ -1900,7 +1900,7 @@ Description - void PDF_secolor + void PDF_setcolor int pdf object string type string colorspace
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwSat Apr 14 11:33:32 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: more minor fixups to language and some deprecated function definitions Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.44 phpdoc/en/functions/pdf.xml:1.45 --- phpdoc/en/functions/pdf.xml:1.44Sat Apr 14 11:29:59 2001 +++ phpdoc/en/functions/pdf.xml Sat Apr 14 11:33:32 2001 @@ -418,7 +418,7 @@ Description - The PDF_add_outline is replaced by + PDF_add_outline is replaced by PDF_add_note @@ -1186,7 +1186,7 @@ PDF_get_font -Deprecated font handling +Deprecated: font handling Description @@ -1202,7 +1202,7 @@ PDF_get_fontname -Deprecated font handling +Deprecated: font handling Description @@ -1218,7 +1218,7 @@ PDF_get_fontsize -Deprecated font handling +Deprecated: font handling Description @@ -1246,7 +1246,7 @@ - The PDF_get_image_height is deprecated, + PDF_get_image_height is deprecated, use PDF_get_value instead. @@ -1466,12 +1466,12 @@ pdf_open -Deprecated: Opens a new pdf object +Deprecated: Open a new pdf object Description - The PDF_open is deprecated, use + PDF_open is deprecated, use PDF_new plus PDF_open_file instead.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwSat Apr 14 11:30:00 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: fix some more creative spelling Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.43 phpdoc/en/functions/pdf.xml:1.44 --- phpdoc/en/functions/pdf.xml:1.43Sat Apr 14 11:28:08 2001 +++ phpdoc/en/functions/pdf.xml Sat Apr 14 11:29:59 2001 @@ -532,7 +532,7 @@ pdf_add_outline -Depriciated: Adds bookmark for current page +Deprecated: Adds bookmark for current page Description @@ -1466,7 +1466,7 @@ pdf_open -Depriciated: Opens a new pdf object +Deprecated: Opens a new pdf object Description @@ -2347,7 +2347,7 @@ pdf_set_duration -Depriciated: Sets duration between pages +Deprecated: Sets duration between pages Description @@ -2501,7 +2501,7 @@ pdf_set_text_rise -Depriciated: Sets the text rise +Deprecated: Sets the text rise Description @@ -2517,7 +2517,7 @@ pdf_set_text_matrix -Depriciated: Sets the text matrix +Deprecated: Sets the text matrix Description
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
jimwSat Apr 14 11:28:10 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: deprecated, not depreciated, and a number of other linguistic fixups. Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.42 phpdoc/en/functions/pdf.xml:1.43 --- phpdoc/en/functions/pdf.xml:1.42Wed Mar 28 03:59:55 2001 +++ phpdoc/en/functions/pdf.xml Sat Apr 14 11:28:08 2001 @@ -7,56 +7,56 @@ Introduction You can use the PDF functions in PHP to create PDF files if you - have the PDF library by Thomas Merz (available at + have the PDF library by Thomas Merz (available at &url.pdf;; you will also need the JPEG library and the TIFF library to - compile this. These two libs also quite often make problems when - configuring php. Follow the messages of configure to fix possible - problems. + compile this. These two librariess can often cause problems when + configuring PHP, so be sure to pay attention to the output of + the configure script and fix any problems it reports. - Please consult the excellent documentation for - PDFlib shipped with the source distribution of PDFlib. - It provides a very good overview of what PDFlib capable of doing - and contains the full and uptodate description of all functions. + Please consult the documentation for PDFlib shipped with + the source distribution of PDFlib. It provides a very good + overview of what PDFlib is capable of doing and contains the full + and most up-to-date description of all functions. All of the functions in PDFlib and the PHP module have the same name. The parameters are also identical. You should also understand some of the concepts of PDF - or Postscript to efficiently use this module. - All lengths and coordinates are measured in Postscript points. + or PostScript to efficiently use this module. + All lengths and coordinates are measured in PostScript points. There are generally 72 PostScript points to an inch, but this depends on the output resolution. - There is another PHP module for pdf document creation based on + There is another PHP module for PDF document creation based on FastIO's. ClibPDF. It has a slightly different API. Check the ClibPDF functions section for details. - The pdf module introduces one new type of variable. - It is called pdf object and - almost all functions need pdf object + The PDF module introduces one new type of variable. + It is called a pdf object and + almost all functions need a pdf object as its first parameter. Confusion with old PDFlib versions - Starting with php V4.0.5 the PHP extension for PDFlib is officially - supported by PDFlib GmbH. This means, that all the functions + Starting with PHP 4.0.5, the PHP extension for PDFlib is officially + supported by PDFlib GmbH. This means that all the functions described in the PDFlib-manual (V3.00 or greater) are supported by - php4 with exactly the same meaning and the same parameters. - Only the returnvalues may differ from the PDFlib manual, as we - adoptet the PHP way to return FALSE in case of errors. + PHP 4 with exactly the same meaning and the same parameters. + Only the return values may differ from the PDFlib manual, because + the PHP convention of returning false was adopted. For compatibility reasons this binding for - PDFlib still will support the old functions, but as stated above + PDFlib still supports the old functions, but as stated above they should be replaced by their new versions. PDFlib GmbH will not - support any problems arraising from the use of these depreciated + support any problems arising from the use of these deprecated functions. @@ -228,22 +228,20 @@ Issues with older versions of PDFlib - Any version of PHP 4 after March, 9th 2000 do not support versions + Any version of PHP 4 after March 9, 2000 does not support versions of PDFlib older than 3.0. - PHP 3 on the other hand should not be used with version newer - than 2.01. Since revision 1.61 of php3/functions/pdf.c (php 3.19) - it is save to use PDFlib 3.0 or greater. + PDFlib 3.0 or greater is also supported by PHP 3.0.19 and later. Examples Most of the functions are fairly easy to use. The most difficult part - is probably to create a very simple pdf document at all. The following + is probably creating a very simple PDF document at all. The following example should help to get started. - It creates the file test.pdf + It creates test.pdf with one page. The page contains the text "Times Roman outlined" in an outlined,
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Wed Mar 28 03:59:55 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: The example using getpdf.php was not working with IE5.5. Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.41 phpdoc/en/functions/pdf.xml:1.42 --- phpdoc/en/functions/pdf.xml:1.41Wed Mar 21 13:01:28 2001 +++ phpdoc/en/functions/pdf.xml Wed Mar 28 03:59:55 2001 @@ -1,1535 +1,1536 @@ - - PDF functions - PDF - - - -Introduction - - You can use the PDF functions in PHP to create PDF files if you - have the PDF library by Thomas Merz (available at - &url.pdf;; - you will also need the JPEG library - and the TIFF library to - compile this. These two libs also quite often make problems when - configuring php. Follow the messages of configure to fix possible - problems. - - - Please consult the excellent documentation for - PDFlib shipped with the source distribution of PDFlib. - It provides a very good overview of what PDFlib capable of doing - and contains the full and uptodate description of all functions. - - - All of the functions in PDFlib and the PHP module have the same name. - The parameters are also identical. - You should also understand some of the concepts of PDF - or Postscript to efficiently use this module. - All lengths and coordinates are measured in Postscript points. - There are generally 72 PostScript points to an inch, but this - depends on the output resolution. - - - There is another PHP module for pdf document creation based on - FastIO's. - ClibPDF. It has a slightly different API. Check the - ClibPDF functions section for - details. - - - The pdf module introduces one new type of variable. - It is called pdf object and - almost all functions need pdf object - as its first parameter. - - - -Confusion with old PDFlib versions - - Starting with php V4.0.5 the PHP extension for PDFlib is officially - supported by PDFlib GmbH. This means, that all the functions - described in the PDFlib-manual (V3.00 or greater) are supported by - php4 with exactly the same meaning and the same parameters. - Only the returnvalues may differ from the PDFlib manual, as we - adoptet the PHP way to return FALSE in case of errors. - For compatibility reasons this binding for - PDFlib still will support the old functions, but as stated above - they should be replaced by their new versions. PDFlib GmbH will not - support any problems arraising from the use of these depreciated - functions. - - - - Deprecated functions and its replacements - - - - Old function - Replacement - - - - - PDF_put_image - Not needed anymore. - - - PDF_execute_image - Not needed anymore. - - - PDF_get_annotation - PDF_get_bookmark using the same - parameters. - - - PDF_get_font - PDF_get_value passing - "font" as the second parameter. - - - PDF_get_fontsize - PDF_get_value passing - "fontsize" as the second parameter. - - - PDF_get_fontname - PDF_get_parameter passing - "fontname" as the second parameter. - - - PDF_set_info_creator - PDF_set_info passing - "Creator" as the second parameter. - - - PDF_set_info_title - PDF_set_info passing - "Title" as the second parameter. - - - PDF_set_info_subject - PDF_set_info passing - "Subject" as the second parameter. - - - PDF_set_info_author - PDF_set_info passing - "Author" as the second parameter. - - - PDF_set_info_keywords - PDF_set_info passing - "Keywords" as the second parameter. - - - PDF_set_leading - PDF_set_value passing - "leading" as the second parameter. - - - PDF_set_text_rendering - PDF_set_value passing - "textrendering" as the second parameter. - - - PDF_set_text_rise - PDF_set_value passing - "textrise" as the second parameter. - - - PDF_set_horiz_scaling - PDF_set_value passing - "horizscaling" as the second parameter. - - - PDF_set_text_matrix - Not available anymore - - - PDF_set_char_spacing - PDF_set_value passing - "charspacing" as the second parameter. - - - PDF_set_word_spacing - PDF_set_value passing - "wordspacing
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Wed Mar 21 13:01:28 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: reflects changes for PDFlib V4.0 Beta2 Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.40 phpdoc/en/functions/pdf.xml:1.41 --- phpdoc/en/functions/pdf.xml:1.40Mon Mar 19 13:04:26 2001 +++ phpdoc/en/functions/pdf.xml Wed Mar 21 13:01:28 2001 @@ -931,7 +931,6 @@ void PDF_close_pdi_page int pdf object - int dochandle int pagehandle @@ -1761,6 +1760,31 @@ Place an image with the lower left corner at (x, + y), and scale it. + + + + + + +PDF_place_pdi_page +Places an image on the page + + +Description + + + void PDF_place_pdi_page + int pdf object + int page + double x + double y + double sx + double sy + + + + Place a PDF page with the lower left corner at (x, y), and scale it.
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
sniper Mon Mar 19 13:04:26 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Added an example of creating PDF documents in memory. Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.39 phpdoc/en/functions/pdf.xml:1.40 --- phpdoc/en/functions/pdf.xml:1.39Mon Mar 5 08:25:05 2001 +++ phpdoc/en/functions/pdf.xml Mon Mar 19 13:04:26 2001 @@ -1530,6 +1530,36 @@ must be fetched by the client with the PDF_get_buffer function. + + The following example shows how to create a pdf document in memory + and how to output it correctly. + + Creating a PDF document in memory + + + + +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Mon Mar 5 08:25:05 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: fixed typo in pdf_end_template Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.38 phpdoc/en/functions/pdf.xml:1.39 --- phpdoc/en/functions/pdf.xml:1.38Sat Mar 3 16:53:35 2001 +++ phpdoc/en/functions/pdf.xml Mon Mar 5 08:25:05 2001 @@ -1063,16 +1063,16 @@ - + -PDF_endpattern +PDF_end_pattern Finish pattern Description - void PDF_endpattern + void PDF_end_pattern int pdf object
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml /ja/chapters config.xml /ja/features cookies.xml /ja/functions imap.xml mcal.xml pcre.xml pdf.xml
hirokawaSat Mar 3 16:53:37 2001 EDT Modified files: /phpdoc/en/functionspdf.xml /phpdoc/ja/chapters config.xml /phpdoc/ja/features cookies.xml /phpdoc/ja/functionsimap.xml mcal.xml pcre.xml pdf.xml Log: update translation, fixed typos. Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.37 phpdoc/en/functions/pdf.xml:1.38 --- phpdoc/en/functions/pdf.xml:1.37Thu Mar 1 12:26:19 2001 +++ phpdoc/en/functions/pdf.xml Sat Mar 3 16:53:35 2001 @@ -683,7 +683,7 @@ string description string author string mimetype - string iocn + string icon Index: phpdoc/ja/chapters/config.xml diff -u phpdoc/ja/chapters/config.xml:1.8 phpdoc/ja/chapters/config.xml:1.9 --- phpdoc/ja/chapters/config.xml:1.8 Sat Dec 16 07:00:51 2000 +++ phpdoc/ja/chapters/config.xml Sat Mar 3 16:53:36 2001 @@ -10,7 +10,8 @@ ã¯ãPHP ã®èµ·åæã«èªã¿è¾¼ã¾ãã¾ãã PHP ã®ãµã¼ãã¼çã§ã¯ããã®ãã¡ã¤ã«ã¯ãWeb ãµã¼ãã¼ã® èµ·åæã«ã®ã¿ä¸åº¦ã ãèªã¿è¾¼ã¾ãã¾ãã -CGI çã§ã¯ãèµ·åãã度ã«ãã®ãã¡ã¤ã«ãèªã¿è¾¼ã¾ãã¾ãã +CGI +çã§ã¯ãèµ·åãã度ã«ãã®ãã¡ã¤ã«ãèªã¿è¾¼ã¾ +ãã¾ãã @@ -60,9 +61,10 @@ - æå®ããå¤æ°ã®å¤ãè¨å®ãã¾ãã - "Admin" ã¯ãã¡ã¤ã³ã® Apache ç¨è¨å®ãã¡ã¤ã«ã«ããã¦ã®ã¿ - è¨å®å¯è½ã§ã.htaccess ãã¡ã¤ã«ããã¯è¨å®ã§ãã¾ããã + æå®ããå¤æ°ã®å¤ãè¨å®ãã¾ãã"Admin" ã¯ãã¡ã¤ã³ã® Apache +ç¨è¨ + å®ãã¡ã¤ã«ã«ããã¦ã®ã¿è¨å®å¯è½ã§ã.htaccess +ãã¡ã¤ã«ããã¯è¨å® + ã§ãã¾ããã + @@ -650,8 +652,9 @@ - Windows çã® PHP ã mail é¢æ°ã«ãã - ã¡ã¼ã«ã®éä¿¡ã«ä½¿ç¨ãã SMTP ãµã¼ãã¼ã® DNS åã¾ã㯠IP ã¢ãã¬ã¹ã + Windows çã® PHP ã mail é¢æ°ã«ããã¡ã¼ã« + ã®éä¿¡ã«ä½¿ç¨ãã SMTP ãµã¼ãã¼ã® DNS åã¾ã㯠IP +ã¢ãã¬ã¹ã + @@ -662,8 +665,9 @@ - Windows çã® PHP ããéä¿¡ããã¡ã¼ã«ã«ãã㦠- "From:" ã«ä½¿ç¨ããã¡ã¼ã«ã¢ãã¬ã¹ã + Windows çã® PHP ããéä¿¡ããã¡ã¼ã«ã«ãã㦠+ "From:" ã«ä½¿ç¨ããã¡ã¼ã«ã¢ãã¬ã¹ã + @@ -678,25 +682,23 @@ é常ã¯ã /usr/sbin/sendmail ã¾ãã¯ã /usr/lib/sendmail ã§ãã -configure ã sendmail ã®å ´æã - æ¢ãã¦ããã¾ããã失æããå ´åã¯ãããã§ãã®ãã¹ãã»ãããã¨ã -å¯è½ã§ãã - - sendmail ã使ç¨ãã¦ããªãã·ã¹ãã ã¯ãæ¿ããã«åä½ããããã·ã³ã® -ã¡ã¼ã«ã·ã¹ãã ã - æä¾ãã sendmail ã®ã©ããã¼ã¾ãã¯ä»£æ¿åããã®å½ä»¤ã«æå®ãã - å¿ è¦ãããã¾ãã - ä¾ãã°ã - Qmail ã¦ã¼ã¶ã¼ã¯ã - é常ããã®å½ä»¤ã« + configure ã sendmail ã®å ´æãæ¢ãã¦ããã¾ + +ããã失æããå ´åã¯ãããã§ãã®ãã¹ãã»ãããã¨ãå¯è½ã§ãã + + + sendmail +ã使ç¨ãã¦ããªãã·ã¹ãã ã¯ãæ¿ããã«åä½ããããã·ã³ + ã®ã¡ã¼ã«ã·ã¹ãã ãæä¾ãã sendmail +ã®ã©ããã¼ã¾ãã¯ä»£æ¿åãã + ã®å½ä»¤ã«æå®ããå¿ è¦ãããã¾ããä¾ãã°ã + Qmail +ã¦ã¼ã¶ã¼ã¯ãé常ããã®å½ä»¤ã« /var/qmail/bin/sendmail - ãã»ãããããã¨ãã§ãã¾ãã + ãã»ãããããã¨ãã§ãã¾ãã + - + ã»ã¼ãã¢ã¼ãè¨å®ç¨å½ä»¤ @@ -708,10 +710,11 @@ - PHP ã®ã»ã¼ãã¢ã¼ããæå¹ã«ãããã©ãããæå®ãã¾ãã - æ´ã«è©³ç´°æ å ±ã«ã¤ãã¦ã¯ã - ã»ãã¥ãªãã£ã®ç« - ãåç §ä¸ããã + PHP ã®ã»ã¼ãã¢ã¼ããæå¹ã«ãããã©ãããæå®ãã¾ãã + æ´ã«è©³ç´°æ å ±ã«ã¤ãã¦ã¯ã + ã»ãã¥ãªãã£ã®ç« + ãåç §ä¸ããã + @@ -724,7 +727,8 @@ PHP ãã»ã¼ãã¢ã¼ãã§åä½ãã¦ããå ´åãã·ã¹ãã ããã°ã©ã ã å®è¡ãã system ããã³ä»ã®é¢æ° - ã¯ããã®ãã£ã¬ã¯ããªã«ãªãããã°ã©ã ã®å®è¡ãæå¦ãã¾ãã + +ã¯ããã®ãã£ã¬ã¯ããªã«ãªãããã°ã©ã ã®å®è¡ãæå¦ãã¾ãã + @@ -742,7 +746,8 @@ - ãããã¬ã¼ã«ãã使ç¨ããããã¹ãã® DNS åã¾ã㯠IP ã¢ãã¬ã¹ã + ãããã¬ã¼ã«ãã使ç¨ããããã¹ãã® DNS åã¾ã
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
eschmid Thu Mar 1 12:26:19 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: There was something wrong. Please don't use DOS line endings. Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.36 phpdoc/en/functions/pdf.xml:1.37 --- phpdoc/en/functions/pdf.xml:1.36Thu Mar 1 11:52:54 2001 +++ phpdoc/en/functions/pdf.xml Thu Mar 1 12:26:19 2001 @@ -727,7 +727,7 @@ int pdf object double width double height - double xstep/parameter> + double xstep double ystep int painttype @@ -897,13 +897,13 @@ - - PDF_close_pdi -Close the input PDF document. - - - - + +PDF_close_pdi + + Close the input PDF document + + + Description @@ -921,8 +921,8 @@ PDF_close_pdi_page -Close the page handle. +Close the page handle
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Thu Mar 1 11:52:54 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: - integrated new functions vor PDFlib V4.0 (beta1) Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.35 phpdoc/en/functions/pdf.xml:1.36 --- phpdoc/en/functions/pdf.xml:1.35Mon Feb 12 09:47:00 2001 +++ phpdoc/en/functions/pdf.xml Thu Mar 1 11:52:54 2001 @@ -572,6 +572,26 @@ + + +PDF_add_thumbnail +Adds thumbnail for current page + + +Description + + + int PDF_add_thumbnail + int pdf object + int image + + + + Add an existing image as thumbnail for the current page. + + + + PDF_add_weblink @@ -620,6 +640,30 @@ + + +PDF_arcn +Draws an arc + + +Description + + + void PDF_arc + int pdf object + double x + double y + double r + double alpha + double beta + + + + Draw a clockwise circular arc from alpha to beta degrees + + + + PDF_attach_file @@ -670,6 +714,51 @@ + + +PDF_begin_pattern +Starts new pattern + + +Description + + + void PDF_begin_pattern + int pdf object + double width + double height + double xstep/parameter> + double ystep + int painttype + + + + Start a new pattern definition. + + + + + + +PDF_begin_template +Starts new template + + +Description + + + void PDF_begin_template + int pdf object + double width + double height + + + + Start a new template definition. + + + + PDF_circle @@ -807,6 +896,51 @@ + + + PDF_close_pdi +Close the input PDF document. + + + + + Description + + + void PDF_close_pdi + int pdf object + int dochandle + + + +Close all open page handles, and close the input PDF document. + + + + + + + PDF_close_pdi_page +Close the page handle. + + + + + Description + + + void PDF_close_pdi_page + int pdf object + int dochandle + int pagehandle + + + +Close the page handle, and free all page-related resources. + + + + PDF_concat @@ -923,17 +1057,49 @@ Description + + Deprecated, use one of the stroke, fill, or clip functions instead. + + + + + + +PDF_endpattern +Finish pattern + + +Description - void PDF_endpath + void PDF_endpattern int pdf object - Deprecated, use one of the stroke, fill, or clip functions instead. + Finish the pattern definition. + + + +PDF_end_template +Finish template + + +Description + + + void PDF_end_template + int pdf object + + + + Finish the template definition. + + + @@ -1130,6 +1296,52 @@ + + +PDF_get_pdi_parameter +Get some PDI string parameters + + +Description + + + string PDF_get_pdi_parameter + int pdf object + string key + int doc + int page + int index + + + + Get the contents of some PDI document parameter with string type. + + + + + + +PDF_get_pdi_value +Gets some PDI numerical parameters + + +Description + + + string PDF_get_pdi_value + int pdf object + string key + int doc + int page + int index + + + + Get the contents of some PDI document parameter with numerical type. + + + + PDF_get_value @@ -1151,6 +1363,25 @@ + + +PDF_initgraphics +Resets graphic state + + +Description + + + void PDF_initgraphics + int pdf object + + + + Reset all implicit color and graphics state parameters to their defaults. + + + + PDF_lineto @@ -1173,6 +1404,26 @@ + + +PDF_makespotcolor +Makes a spotcolor + + +Description + + + void PDF_makespotcolor + int pdf object + string spotname + + + + Make a named spot color from the current color. + + + + PDF_moveto @@ -1372,6 +1623,54 @@ + + + PDF_open_pdi + +Opens a PDF file + + + + Description + + + void PDF_open_pdi + int pdf object + string filename + string stringparam + int intparam + + + +Open an existing PDF document for later use. + +
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Mon Feb 12 09:47:00 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: type in description of setpolydash Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.34 phpdoc/en/functions/pdf.xml:1.35 --- phpdoc/en/functions/pdf.xml:1.34Thu Feb 8 03:41:27 2001 +++ phpdoc/en/functions/pdf.xml Mon Feb 12 09:47:00 2001 @@ -1743,16 +1743,16 @@ - + -PDF_setoplydash +PDF_setpolydash Sets complicated dash pattern Description - void PDF_setoplydash + void PDF_setpolydash int pdf object double *dasharray
[PHP-DOC] cvs: phpdoc /en/functions pdf.xml
rjs Thu Feb 8 03:41:27 2001 EDT Modified files: /phpdoc/en/functionspdf.xml Log: Bringing the recent changes to the pdfbinding to the documentation - documented the new functions - marked unsupported functions as Depreciated - all descriptions are from the offical shortdescription of PDFlib. For full documentation the PDFlib manual is recomended, as all changes will be keept up to date there, it also include lots of additional information not available here. But the short descriptions will help as simple reference, and changes to the short descriptions are rarely neccesary Index: phpdoc/en/functions/pdf.xml diff -u phpdoc/en/functions/pdf.xml:1.33 phpdoc/en/functions/pdf.xml:1.34 --- phpdoc/en/functions/pdf.xml:1.33Wed Dec 13 11:29:55 2000 +++ phpdoc/en/functions/pdf.xml Thu Feb 8 03:41:27 2001 @@ -1,2573 +1,2348 @@ - - PDF functions - PDF - - - -Introduction - - You can use the PDF functions in PHP to create PDF files if you - have the PDF library by Thomas Merz (available at - &url.pdf;; - you will also need the JPEG library - and the TIFF library to - compile this. These two libs also quite often make problems when - configuring php. Follow the messages of configure to fix possible - problems. - - - Please consult the excellent documentation for - pdflib shipped with the source distribution of pdflib. - It provides a very good overview of what pdflib capable of doing. - Most of the functions in pdflib - and the PHP module have the same name. The parameters are also - identical. You should also understand some of the concepts of PDF - or Postscript to efficiently use this module. - All lengths and coordinates are measured in Postscript points. - There are generally 72 PostScript points to an inch, but this - depends on the output resolution. - - - There is another PHP module for pdf document creation based on - FastIO's. - ClibPDF. It has a slightly different API. Check the - ClibPDF functions section for - details. - - - The pdf module introduces two new type of variable. - It is called pdfdoc - pdfdoc is a pointer to a pdf document and - almost all functions need it as its first parameter. - - - -Confusion with old pdflib versions - - Since the very begining of PDF support in PHP — starting with - pdflib 0.6 — - there has been tons of changes especially to the pdflib API. Most of - these changes has been somehow covered by PHP, some has even required - changes to the PHP API. Since pdflib - 3.x the API seems to be stabilzed and PHP 4 has adopted the version as a - minimum requirement for PDF support. The consequence will be that many - functions will disappear or be replaced by alternatives sooner or later. - Support for pdflib 0.6 is already completely given up. - The following table list all the functions which are deprecated - in PHP 4.02 and should be replaced by their new versions. - - - - Deprecated functions and its replacements - - - - Old function - Replacement - - - - - pdf_put_image - Not needed anymore. - - - pdf_get_font - pdf_get_value passing - "font" as the second parameter. - - - pdf_get_fontsize - pdf_get_value passing - "fontsize" as the second parameter. - - - pdf_get_fontname - pdf_get_parameter passing - "fontname" as the second parameter. - - - pdf_set_info_creator - pdf_set_info passing - "Creator" as the second parameter. - - - pdf_set_info_title - pdf_set_info passing - "Title" as the second parameter. - - - pdf_set_info_subject - pdf_set_info passing - "Subject" as the second parameter. - - - pdf_set_info_author - pdf_set_info passing - "Author" as the second parameter. - - - pdf_set_info_keywords - pdf_set_info passing - "Keywords" as the second parameter. - - - pdf_set_leading - pdf_set_value passing - "leading" as the second parameter. - - - pdf_set_text_rendering - pdf_set_value passing - "textrendering" as the second parameter. - - - pdf_set_text_rise - pdf_set_value passing - "textrise" as the second parameter. - - - pdf_set_horiz_scaling - pdf_set_value passing - "horizscaling" as the second parameter. - - - pdf