From be61323df44fbfb63f76f145ce4ba05a2152e0f6 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 13 Aug 2004 12:05:17 +0000 Subject: [PATCH] Parameters are not optional anymore (confirmed by pdflib.de) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166268 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdf/functions/pdf-add-bookmark.xml | 8 +++++--- reference/pdf/functions/pdf-findfont.xml | 5 +++-- reference/pdf/functions/pdf-get-value.xml | 5 +++-- reference/pdf/functions/pdf-open-file.xml | 8 +++++--- reference/pdf/functions/pdf-open-image-file.xml | 12 +++++++----- reference/pdf/functions/pdf-setcolor.xml | 10 ++++++---- reference/pdf/functions/pdf-show-boxed.xml | 5 +++-- reference/pdf/functions/pdf-stringwidth.xml | 8 +++++--- 8 files changed, 37 insertions(+), 24 deletions(-) diff --git a/reference/pdf/functions/pdf-add-bookmark.xml b/reference/pdf/functions/pdf-add-bookmark.xml index 6c15c318f2..aff8c95147 100644 --- a/reference/pdf/functions/pdf-add-bookmark.xml +++ b/reference/pdf/functions/pdf-add-bookmark.xml @@ -1,5 +1,5 @@ - + @@ -12,8 +12,8 @@ intpdf_add_bookmark resourcepdfdoc stringtext - intparent - intopen + intparent + intopen Add a nested bookmark under parent, or a new top-level @@ -21,6 +21,8 @@ which may be used as parent for subsequent nested bookmarks. If open = 1, child bookmarks will be folded out, and invisible if open = 0. + Parameters parent and open + were optional before PHP 5. diff --git a/reference/pdf/functions/pdf-findfont.xml b/reference/pdf/functions/pdf-findfont.xml index 39a9457ba2..8361fbd674 100644 --- a/reference/pdf/functions/pdf-findfont.xml +++ b/reference/pdf/functions/pdf-findfont.xml @@ -1,5 +1,5 @@ - + @@ -13,7 +13,7 @@ resourcepdfdoc stringfontname stringencoding - intembed + intembed Prepare a font for later use with pdf_setfont. @@ -23,6 +23,7 @@ macroman, winansi, host, a user-defined encoding name or the name of a CMap. + Parameter embed was optional before PHP 5. pdf_findfont returns a font handle or &false; diff --git a/reference/pdf/functions/pdf-get-value.xml b/reference/pdf/functions/pdf-get-value.xml index 12fa93d75e..1f250fb30f 100644 --- a/reference/pdf/functions/pdf-get-value.xml +++ b/reference/pdf/functions/pdf-get-value.xml @@ -1,5 +1,5 @@ - + @@ -12,10 +12,11 @@ floatpdf_get_value resourcepdfdoc stringkey - floatmodifier + floatmodifier Get the contents of some PDFlib parameter with float type. + Parameter modifier was optional before PHP 5. diff --git a/reference/pdf/functions/pdf-open-file.xml b/reference/pdf/functions/pdf-open-file.xml index 9e3f2a8050..7ebe252214 100644 --- a/reference/pdf/functions/pdf-open-file.xml +++ b/reference/pdf/functions/pdf-open-file.xml @@ -1,5 +1,5 @@ - + @@ -11,14 +11,16 @@ boolpdf_open_file resourcepdfdoc - stringfilename + stringfilename Create a new PDF file using the supplied file name. If filename is empty the PDF document will be generated in memory instead of on file. The result must be fetched by the client with the - pdf_get_buffer function. &return.success; + pdf_get_buffer function. + Parameter filename was optional before PHP 5. + &return.success; The following example shows how to create a pdf document in memory diff --git a/reference/pdf/functions/pdf-open-image-file.xml b/reference/pdf/functions/pdf-open-image-file.xml index 4f780bf05a..faf551d1c9 100644 --- a/reference/pdf/functions/pdf-open-image-file.xml +++ b/reference/pdf/functions/pdf-open-image-file.xml @@ -1,5 +1,5 @@ - + @@ -13,17 +13,19 @@ resourcepdfdoc stringimagetype stringfilename - stringstringparam - intintparam + stringstringparam + intintparam Open an image file. Supported types are jpeg, tiff, gif, and png. - stringparam is either , + stringparam is either empty, mask, masked, or page. - intparamis either 0, the image id + intparam is either 0, the image id of the applied mask, or the page. + Parameters stringparam and + intparam were optional before PHP 5. diff --git a/reference/pdf/functions/pdf-setcolor.xml b/reference/pdf/functions/pdf-setcolor.xml index 68277074e4..1bdb5743d1 100644 --- a/reference/pdf/functions/pdf-setcolor.xml +++ b/reference/pdf/functions/pdf-setcolor.xml @@ -1,5 +1,5 @@ - + @@ -14,9 +14,9 @@ stringtype stringcolorspace floatc1 - floatc2 - floatc3 - floatc4 + floatc2 + floatc3 + floatc4 Set the current color space and color. &return.success; @@ -32,6 +32,8 @@ space specified by colorspace. Except as otherwise noted, the color components are floating-point values that range from 0 to 1. + Parameters c2, c3 and + c4 were optional before PHP 5. For gray only c1 is used. diff --git a/reference/pdf/functions/pdf-show-boxed.xml b/reference/pdf/functions/pdf-show-boxed.xml index 9fc152cbc3..58e95f8b64 100644 --- a/reference/pdf/functions/pdf-show-boxed.xml +++ b/reference/pdf/functions/pdf-show-boxed.xml @@ -1,5 +1,5 @@ - + @@ -17,7 +17,7 @@ floatwidth floatheight stringmode - stringfeature + stringfeature Format text in the current font and size into the @@ -28,6 +28,7 @@ If width and height are 0, only a single line is placed at the point (left, top) in the requested mode. + Parameter feature was optional before PHP 5. Returns the number of characters that did not fit in the specified diff --git a/reference/pdf/functions/pdf-stringwidth.xml b/reference/pdf/functions/pdf-stringwidth.xml index a76632aac0..0c93a85412 100644 --- a/reference/pdf/functions/pdf-stringwidth.xml +++ b/reference/pdf/functions/pdf-stringwidth.xml @@ -1,5 +1,5 @@ - + @@ -12,8 +12,8 @@ floatpdf_stringwidth resourcepdfdoc stringtext - intfont - floatsize + intfont + floatsize Returns the width of text using the last @@ -23,6 +23,8 @@ calculated using that font and size instead. Please note that font is a font handle returned by pdf_findfont. + Parameters font and size + were optional before PHP 5.