[doc-en] master: fdf: fix XML by converting para to simpara tags via script (#5141)

From: Date: Sun, 18 Jan 2026 22:04:02 +0000
Subject: [doc-en] master: fdf: fix XML by converting para to simpara tags via script (#5141)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22997@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Committer: GitHub (web-flow) Pusher: Girgias Date: 2026-01-18T22:04:00Z Commit: https://github.com/php/doc-en/commit/f86fd7b1ce74d1ea3a6a2e3e40757590b14a3e7e Raw diff: https://github.com/php/doc-en/commit/f86fd7b1ce74d1ea3a6a2e3e40757590b14a3e7e.diff fdf: fix XML by converting para to simpara tags via script (#5141) Changed paths: M reference/fdf/configure.xml M reference/fdf/functions/fdf-add-doc-javascript.xml M reference/fdf/functions/fdf-close.xml M reference/fdf/functions/fdf-create.xml M reference/fdf/functions/fdf-errno.xml M reference/fdf/functions/fdf-error.xml M reference/fdf/functions/fdf-get-ap.xml M reference/fdf/functions/fdf-get-attachment.xml M reference/fdf/functions/fdf-get-encoding.xml M reference/fdf/functions/fdf-get-file.xml M reference/fdf/functions/fdf-get-status.xml M reference/fdf/functions/fdf-get-value.xml M reference/fdf/functions/fdf-get-version.xml M reference/fdf/functions/fdf-header.xml M reference/fdf/functions/fdf-next-field-name.xml M reference/fdf/functions/fdf-open-string.xml M reference/fdf/functions/fdf-open.xml M reference/fdf/functions/fdf-save-string.xml M reference/fdf/functions/fdf-save.xml M reference/fdf/functions/fdf-set-ap.xml M reference/fdf/functions/fdf-set-encoding.xml M reference/fdf/functions/fdf-set-file.xml M reference/fdf/functions/fdf-set-flags.xml M reference/fdf/functions/fdf-set-javascript-action.xml M reference/fdf/functions/fdf-set-opt.xml M reference/fdf/functions/fdf-set-status.xml M reference/fdf/functions/fdf-set-submit-form-action.xml M reference/fdf/functions/fdf-set-target-frame.xml M reference/fdf/functions/fdf-set-value.xml M reference/fdf/functions/fdf-set-version.xml M reference/fdf/setup.xml Diff: diff --git a/reference/fdf/configure.xml b/reference/fdf/configure.xml index ae724f9f32a7..308336a88091 100644 --- a/reference/fdf/configure.xml +++ b/reference/fdf/configure.xml @@ -1,38 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<section xml:id="fdf.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="fdf.installation"> &reftitle.install; - <para> + <simpara> &pecl.info.dead; <link xlink:href="&url.pecl.vcs;fdf">&url.pecl.vcs;fdf</link>. - </para> - <para> + </simpara> + <simpara> This extension is no longer bundled with PHP. - </para> + </simpara> <note> <simpara> If you run into problems configuring PHP with fdftk support, check - whether the header file <filename>fdftk.h</filename> and the library - <filename>libfdftk.so</filename> are at the right place. + whether the header file <filename>fdftk.h</filename> and the library + <filename>libfdftk.so</filename> are at the right place. The <command>configure</command> script supports both the directory structure of the - FDF SDK distribution and the usual <filename>DIR/include</filename> / - <filename>DIR/lib</filename> layout, so you can point it either - directly to the unpacked distribution directory or put the header - file and the appropriate library for your platform into e.g. - <filename>/usr/local/include</filename> and - <filename>/usr/local/lib</filename> and configure with + FDF SDK distribution and the usual <filename>DIR/include</filename> / + <filename>DIR/lib</filename> layout, so you can point it either + directly to the unpacked distribution directory or put the header + file and the appropriate library for your platform into e.g. + <filename>/usr/local/include</filename> and + <filename>/usr/local/lib</filename> and configure with <option role="configure">--with-fdftk=/usr/local</option>. </simpara> </note> <note> <title>Note to Win32 Users</title> - <para> + <simpara> &ext.windows.path.dll; <filename>fdftk.dll</filename> - </para> + </simpara> </note> </section> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/fdf/functions/fdf-add-doc-javascript.xml b/reference/fdf/functions/fdf-add-doc-javascript.xml index 3e7d25bf6565..823a5f1f735a 100644 --- a/reference/fdf/functions/fdf-add-doc-javascript.xml +++ b/reference/fdf/functions/fdf-add-doc-javascript.xml @@ -14,10 +14,10 @@ <methodparam><type>string</type><parameter>script_name</parameter></methodparam> <methodparam><type>string</type><parameter>script_code</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Adds a script to the FDF, which Acrobat then adds to the doc-level scripts of a document, once the FDF is imported into it. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,27 +26,27 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>script_name</parameter></term> <listitem> - <para> + <simpara> The script name. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>script_code</parameter></term> <listitem> - <para> + <simpara> The script code. It is strongly suggested to use <literal>\r</literal> for linebreaks within the script code. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -54,9 +54,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-close.xml b/reference/fdf/functions/fdf-close.xml index 313d9b816282..e96e6ad88822 100644 --- a/reference/fdf/functions/fdf-close.xml +++ b/reference/fdf/functions/fdf-close.xml @@ -12,9 +12,9 @@ <type>void</type><methodname>fdf_close</methodname> <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Closes the FDF document. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -23,10 +23,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -34,9 +34,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.void; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-create.xml b/reference/fdf/functions/fdf-create.xml index 1691789721fc..c0d9347cee7d 100644 --- a/reference/fdf/functions/fdf-create.xml +++ b/reference/fdf/functions/fdf-create.xml @@ -12,13 +12,13 @@ <type>resource</type><methodname>fdf_create</methodname> <void/> </methodsynopsis> - <para> + <simpara> Creates a new FDF document. - </para> - <para> + </simpara> + <simpara> This function is needed if one would like to populate input fields in a PDF document with data. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -28,9 +28,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns a FDF document handle, or &false; on error. - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-errno.xml b/reference/fdf/functions/fdf-errno.xml index 1f12c5b4414c..19354af21bf9 100644 --- a/reference/fdf/functions/fdf-errno.xml +++ b/reference/fdf/functions/fdf-errno.xml @@ -12,13 +12,13 @@ <type>int</type><methodname>fdf_errno</methodname> <void/> </methodsynopsis> - <para> + <simpara> Gets the error code set by the last FDF function call. - </para> - <para> + </simpara> + <simpara> A textual description of the error may be obtained using with <function>fdf_error</function>. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -28,9 +28,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the error code as an integer, or zero if there was no errors. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-error.xml b/reference/fdf/functions/fdf-error.xml index 28741fa95c80..fd94f600fe6a 100644 --- a/reference/fdf/functions/fdf-error.xml +++ b/reference/fdf/functions/fdf-error.xml @@ -12,10 +12,10 @@ <type>string</type><methodname>fdf_error</methodname> <methodparam choice="opt"><type>int</type><parameter>error_code</parameter><initializer>-1</initializer></methodparam> </methodsynopsis> - <para> + <simpara> Gets a textual description for the FDF error code given in <parameter>error_code</parameter>. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -24,11 +24,11 @@ <varlistentry> <term><parameter>error_code</parameter></term> <listitem> - <para> + <simpara> An error code obtained with <function>fdf_errno</function>. If not provided, this function uses the internal error code set by the last operation. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -36,10 +36,10 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the error message as a string, or the string <literal>no error</literal> if nothing went wrong. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-get-ap.xml b/reference/fdf/functions/fdf-get-ap.xml index c423634125f8..e8f2b8679141 100644 --- a/reference/fdf/functions/fdf-get-ap.xml +++ b/reference/fdf/functions/fdf-get-ap.xml @@ -15,10 +15,10 @@ <methodparam><type>int</type><parameter>face</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Gets the appearance of a <parameter>field</parameter> (i.e. the value of the /AP key) and stores it in a file. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -27,34 +27,34 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>field</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>face</parameter></term> <listitem> - <para> + <simpara> The possible values are <constant>FDFNormalAP</constant>, <constant>FDFRolloverAP</constant> and <constant>FDFDownAP</constant>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> - <para> + <simpara> The appearance will be stored in this parameter. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -62,9 +62,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> </refentry> diff --git a/reference/fdf/functions/fdf-get-attachment.xml b/reference/fdf/functions/fdf-get-attachment.xml index eb64b332d9bb..f0c81b5a09a1 100644 --- a/reference/fdf/functions/fdf-get-attachment.xml +++ b/reference/fdf/functions/fdf-get-attachment.xml @@ -14,11 +14,11 @@ <methodparam><type>string</type><parameter>fieldname</parameter></methodparam> <methodparam><type>string</type><parameter>savepath</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Extracts a file uploaded by means of the "file selection" field <parameter>fieldname</parameter> and stores it under <parameter>savepath</parameter>. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -27,34 +27,34 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>savepath</parameter></term> <listitem> - <para> + <simpara> May be the name of a plain file or an existing directory in which the file is to be created under its original name. Any existing file under the same name will be overwritten. - </para> + </simpara> <note> - <para> + <simpara> There seems to be no other way to find out the original filename but to store the file using a directory as <parameter>savepath</parameter> and check for the basename it was stored under. - </para> + </simpara> </note> </listitem> </varlistentry> diff --git a/reference/fdf/functions/fdf-get-encoding.xml b/reference/fdf/functions/fdf-get-encoding.xml index 7011eb473a64..fe44fe24a9ba 100644 --- a/reference/fdf/functions/fdf-get-encoding.xml +++ b/reference/fdf/functions/fdf-get-encoding.xml @@ -12,9 +12,9 @@ <type>string</type><methodname>fdf_get_encoding</methodname> <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Gets the value of the <literal>/Encoding</literal> key. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -23,10 +23,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -34,10 +34,10 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the encoding as a string. An empty string is returned if the default <literal>PDFDocEncoding/Unicode</literal> scheme is used. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-get-file.xml b/reference/fdf/functions/fdf-get-file.xml index 14634d74d83f..0b1e83ce1390 100644 --- a/reference/fdf/functions/fdf-get-file.xml +++ b/reference/fdf/functions/fdf-get-file.xml @@ -12,9 +12,9 @@ <type>string</type><methodname>fdf_get_file</methodname> <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Gets the value of the <literal>/F</literal> key. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -23,10 +23,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -34,9 +34,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the key value, as a string. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-get-status.xml b/reference/fdf/functions/fdf-get-status.xml index dcc855819b7b..bb3664b5466e 100644 --- a/reference/fdf/functions/fdf-get-status.xml +++ b/reference/fdf/functions/fdf-get-status.xml @@ -12,9 +12,9 @@ <type>string</type><methodname>fdf_get_status</methodname> <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Gets the value of the <literal>/STATUS</literal> key. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -23,10 +23,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -34,9 +34,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the key value, as a string. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-get-value.xml b/reference/fdf/functions/fdf-get-value.xml index a420b96645ee..8d9854d8b7c7 100644 --- a/reference/fdf/functions/fdf-get-value.xml +++ b/reference/fdf/functions/fdf-get-value.xml @@ -14,9 +14,9 @@ <methodparam><type>string</type><parameter>fieldname</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>which</parameter><initializer>-1</initializer></methodparam> </methodsynopsis> - <para> + <simpara> Gets the value for the requested field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -25,28 +25,28 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>which</parameter></term> <listitem> - <para> + <simpara> Elements of an array field can be retrieved by passing this optional parameter, starting at zero. For non-array fields, this parameter will be ignored. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -54,9 +54,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the field value. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-get-version.xml b/reference/fdf/functions/fdf-get-version.xml index 56268fed7ffc..411fb2601c56 100644 --- a/reference/fdf/functions/fdf-get-version.xml +++ b/reference/fdf/functions/fdf-get-version.xml @@ -12,10 +12,10 @@ <type>string</type><methodname>fdf_get_version</methodname> <methodparam choice="opt"><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Return the FDF version for the given document, or the toolkit API version number if no parameter is given. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -24,10 +24,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -35,12 +35,12 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the version as a string. For the current FDF toolkit 5.0 the API version number is <literal>5.0</literal> and the document version number is either <literal>1.2</literal>, <literal>1.3</literal> or <literal>1.4</literal>. - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-header.xml b/reference/fdf/functions/fdf-header.xml index 8b83c600dd85..5b0908c49c35 100644 --- a/reference/fdf/functions/fdf-header.xml +++ b/reference/fdf/functions/fdf-header.xml @@ -1,22 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.fdf-header" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fdf-header"> <refnamediv> <refname>fdf_header</refname> <refpurpose>Sets FDF-specific output headers</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>fdf_header</methodname> <void/> </methodsynopsis> - <para> + <simpara> This is a convenience function to set appropriate HTTP headers for FDF - output. It sets the <literal>Content-type:</literal> to + output. It sets the <literal>Content-type:</literal> to <literal>application/vnd.fdf</literal>. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,13 +26,12 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.void; - </para> + </simpara> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/fdf/functions/fdf-next-field-name.xml b/reference/fdf/functions/fdf-next-field-name.xml index 873411198e01..8fc131fbe3de 100644 --- a/reference/fdf/functions/fdf-next-field-name.xml +++ b/reference/fdf/functions/fdf-next-field-name.xml @@ -13,10 +13,10 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>fieldname</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Gets the name of the field after the given field. This name can be used with several functions. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -25,19 +25,19 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. If not given, the first field will be assumed. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -45,9 +45,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the field name as a string. - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-open-string.xml b/reference/fdf/functions/fdf-open-string.xml index cf76ef0ecfdf..fabfa0a3681d 100644 --- a/reference/fdf/functions/fdf-open-string.xml +++ b/reference/fdf/functions/fdf-open-string.xml @@ -12,14 +12,14 @@ <type>resource</type><methodname>fdf_open_string</methodname> <methodparam><type>string</type><parameter>fdf_data</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Reads form data from a string. - </para> - <para> + </simpara> + <simpara> You can use <function>fdf_open_string</function> together with <varname>$HTTP_FDF_DATA</varname> to process FDF form input from a remote client. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -28,11 +28,11 @@ <varlistentry> <term><parameter>fdf_data</parameter></term> <listitem> - <para> + <simpara> The data as returned from a PDF form or created using <function>fdf_create</function> and <function>fdf_save_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -40,9 +40,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns a FDF document handle, or &false; on error. - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-open.xml b/reference/fdf/functions/fdf-open.xml index c3d3b713affe..53b2571ca46d 100644 --- a/reference/fdf/functions/fdf-open.xml +++ b/reference/fdf/functions/fdf-open.xml @@ -12,13 +12,13 @@ <type>resource</type><methodname>fdf_open</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Opens a file with form data. - </para> - <para> + </simpara> + <simpara> You can also use <function>fdf_open_string</function> to process the results of a PDF form POST request. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -27,11 +27,11 @@ <varlistentry> <term><parameter>filename</parameter></term> <listitem> - <para> + <simpara> Path to the FDF file. This file must contain the data as returned from a PDF form or created using <function>fdf_create</function> and <function>fdf_save</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -39,9 +39,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns a FDF document handle, or &false; on error. - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-save-string.xml b/reference/fdf/functions/fdf-save-string.xml index f3dd3b02fca1..f5cdeb19db86 100644 --- a/reference/fdf/functions/fdf-save-string.xml +++ b/reference/fdf/functions/fdf-save-string.xml @@ -12,9 +12,9 @@ <type>string</type><methodname>fdf_save_string</methodname> <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Returns the FDF document as a string. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -23,10 +23,10 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -34,9 +34,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the document as a string, or &false; on error. - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-save.xml b/reference/fdf/functions/fdf-save.xml index 57498db8f0cb..a8f298ea5068 100644 --- a/reference/fdf/functions/fdf-save.xml +++ b/reference/fdf/functions/fdf-save.xml @@ -13,9 +13,9 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Saves a FDF document. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -24,20 +24,20 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> - <para> + <simpara> If provided, the resulting FDF will be written in this parameter. Otherwise, this function will write the FDF to the default PHP output stream. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -45,9 +45,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-ap.xml b/reference/fdf/functions/fdf-set-ap.xml index 4110df42ef2d..028ab5bfc96e 100644 --- a/reference/fdf/functions/fdf-set-ap.xml +++ b/reference/fdf/functions/fdf-set-ap.xml @@ -16,10 +16,10 @@ <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>int</type><parameter>page_number</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the appearance of a field (i.e. the value of the <literal>/AP</literal> key). - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -28,41 +28,41 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>field_name</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>face</parameter></term> <listitem> - <para> + <simpara> The possible values <constant>FDFNormalAP</constant>, <constant>FDFRolloverAP</constant> and <constant>FDFDownAP</constant>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>page_number</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -70,9 +70,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> </refentry> diff --git a/reference/fdf/functions/fdf-set-encoding.xml b/reference/fdf/functions/fdf-set-encoding.xml index 32efbf7ddfcd..02b23a6c629f 100644 --- a/reference/fdf/functions/fdf-set-encoding.xml +++ b/reference/fdf/functions/fdf-set-encoding.xml @@ -13,9 +13,9 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the character encoding for the FDF document. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -24,24 +24,24 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>encoding</parameter></term> <listitem> - <para> + <simpara> The encoding name. The following values are supported: "<literal>Shift-JIS</literal>", "<literal>UHC</literal>", "<literal>GBK</literal>" and "<literal>BigFive</literal>". - </para> - <para> + </simpara> + <simpara> An empty string resets the encoding to the default <literal>PDFDocEncoding/Unicode</literal> scheme. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -49,9 +49,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> </refentry> diff --git a/reference/fdf/functions/fdf-set-file.xml b/reference/fdf/functions/fdf-set-file.xml index 5001624eec4f..5fb4f4b5d640 100644 --- a/reference/fdf/functions/fdf-set-file.xml +++ b/reference/fdf/functions/fdf-set-file.xml @@ -14,10 +14,10 @@ <methodparam><type>string</type><parameter>url</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>target_frame</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Selects a different PDF document to display the form results in then the form it originated from. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,28 +26,28 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>url</parameter></term> <listitem> - <para> + <simpara> Should be given as an absolute URL. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>target_frame</parameter></term> <listitem> - <para> + <simpara> Use this parameter to specify the frame in which the document will be displayed. You can also set the default value for this parameter using <function>fdf_set_target_frame</function>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -55,9 +55,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="examples"> diff --git a/reference/fdf/functions/fdf-set-flags.xml b/reference/fdf/functions/fdf-set-flags.xml index ecf68b8b484f..5f3dff99690e 100644 --- a/reference/fdf/functions/fdf-set-flags.xml +++ b/reference/fdf/functions/fdf-set-flags.xml @@ -15,9 +15,9 @@ <methodparam><type>int</type><parameter>whichFlags</parameter></methodparam> <methodparam><type>int</type><parameter>newFlags</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets certain flags of the given field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,32 +26,32 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>whichFlags</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>newFlags</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -59,9 +59,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-javascript-action.xml b/reference/fdf/functions/fdf-set-javascript-action.xml index b556f7564834..5835231d2285 100644 --- a/reference/fdf/functions/fdf-set-javascript-action.xml +++ b/reference/fdf/functions/fdf-set-javascript-action.xml @@ -15,9 +15,9 @@ <methodparam><type>int</type><parameter>trigger</parameter></methodparam> <methodparam><type>string</type><parameter>script</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets a javascript action for the given field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,32 +26,32 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>trigger</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>script</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -59,9 +59,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-opt.xml b/reference/fdf/functions/fdf-set-opt.xml index 247a2378b4b1..2cbeb1e6c127 100644 --- a/reference/fdf/functions/fdf-set-opt.xml +++ b/reference/fdf/functions/fdf-set-opt.xml @@ -16,9 +16,9 @@ <methodparam><type>string</type><parameter>str1</parameter></methodparam> <methodparam><type>string</type><parameter>str2</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets options of the given field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -27,39 +27,39 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>element</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>str1</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>str2</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -67,9 +67,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-status.xml b/reference/fdf/functions/fdf-set-status.xml index 980960f9daa9..aff9ae49346e 100644 --- a/reference/fdf/functions/fdf-set-status.xml +++ b/reference/fdf/functions/fdf-set-status.xml @@ -13,11 +13,11 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam><type>string</type><parameter>status</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the value of the <literal>/STATUS</literal> key. When a client receives a FDF with a status set it will present the value in an alert box. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,17 +26,17 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>status</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -44,9 +44,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-submit-form-action.xml b/reference/fdf/functions/fdf-set-submit-form-action.xml index 4ccbe0df77c5..2d23c88c329b 100644 --- a/reference/fdf/functions/fdf-set-submit-form-action.xml +++ b/reference/fdf/functions/fdf-set-submit-form-action.xml @@ -16,9 +16,9 @@ <methodparam><type>string</type><parameter>script</parameter></methodparam> <methodparam><type>int</type><parameter>flags</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets a submit form action for the given field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -27,39 +27,39 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>trigger</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>script</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>flags</parameter></term> <listitem> - <para> - </para> + <simpara> + </simpara> </listitem> </varlistentry> </variablelist> @@ -67,9 +67,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-target-frame.xml b/reference/fdf/functions/fdf-set-target-frame.xml index cc2829aa720b..b7d5380bb8f5 100644 --- a/reference/fdf/functions/fdf-set-target-frame.xml +++ b/reference/fdf/functions/fdf-set-target-frame.xml @@ -13,10 +13,10 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam><type>string</type><parameter>frame_name</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the target frame to display a result PDF defined with <function>fdf_save_file</function> in. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -25,18 +25,18 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>frame_name</parameter></term> <listitem> - <para> + <simpara> The frame name, as a string. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -44,9 +44,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-value.xml b/reference/fdf/functions/fdf-set-value.xml index 10fe5238bc78..cafea957282e 100644 --- a/reference/fdf/functions/fdf-set-value.xml +++ b/reference/fdf/functions/fdf-set-value.xml @@ -15,9 +15,9 @@ <methodparam><type>mixed</type><parameter>value</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>isName</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the <parameter>value</parameter> for the given field. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -26,43 +26,43 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>fieldname</parameter></term> <listitem> - <para> + <simpara> Name of the FDF field, as a string. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para> + <simpara> This parameter will be stored as a string unless it is an array. In this case all array elements will be stored as a value array. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>isName</parameter></term> <listitem> <note> - <para> + <simpara> In older versions of the FDF toolkit last parameter determined if the field value was to be converted to a PDF Name (= 1) or set to a PDF String (= 0). - </para> - <para> + </simpara> + <simpara> The value is no longer used in the current toolkit version 5.0. For compatibility reasons it is still supported as an optional parameter, but ignored internally. - </para> + </simpara> </note> </listitem> </varlistentry> @@ -71,9 +71,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/functions/fdf-set-version.xml b/reference/fdf/functions/fdf-set-version.xml index c6776738530f..2dc2cb04a95f 100644 --- a/reference/fdf/functions/fdf-set-version.xml +++ b/reference/fdf/functions/fdf-set-version.xml @@ -13,13 +13,13 @@ <methodparam><type>resource</type><parameter>fdf_document</parameter></methodparam> <methodparam><type>string</type><parameter>version</parameter></methodparam> </methodsynopsis> - <para> + <simpara> Sets the FDF <parameter>version</parameter> for the given document. - </para> - <para> + </simpara> + <simpara> Some features supported by this extension are only available in newer FDF versions. - </para> + </simpara> </refsect1> <refsect1 role="parameters"> @@ -28,20 +28,20 @@ <varlistentry> <term><parameter>fdf_document</parameter></term> <listitem> - <para> + <simpara> The FDF document handle, returned by <function>fdf_create</function>, <function>fdf_open</function> or <function>fdf_open_string</function>. - </para> + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>version</parameter></term> <listitem> - <para> + <simpara> The version number. For the current FDF toolkit 5.0, this may be either <literal>1.2</literal>, <literal>1.3</literal> or <literal>1.4</literal>. - </para> + </simpara> </listitem> </varlistentry> </variablelist> @@ -49,9 +49,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> &return.success; - </para> + </simpara> </refsect1> <refsect1 role="seealso"> diff --git a/reference/fdf/setup.xml b/reference/fdf/setup.xml index 042134844b6c..59b85146a57e 100644 --- a/reference/fdf/setup.xml +++ b/reference/fdf/setup.xml @@ -1,19 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> - -<chapter xml:id="fdf.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="fdf.setup"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="fdf.requirements"> &reftitle.required; - <para> + <simpara> You need the FDF toolkit SDK available from <link xlink:href="&spec.pdf.fdf;">&spec.pdf.fdf;</link>. As of PHP 4.3.0 you need at least SDK version 5.0. The FDF toolkit library is available in binary form only, platforms supported by Adobe are Win32, Linux, Solaris and AIX. - </para> + </simpara> </section> <!-- }}} --> @@ -24,18 +23,17 @@ <!-- {{{ Resources --> <section xml:id="fdf.resources"> &reftitle.resources; - <para> + <simpara> Most fdf functions require a <parameter>fdf</parameter> resource as their first parameter. A <parameter>fdf</parameter> resource is a handle to an opened fdf file. <parameter>fdf</parameter> resources may be obtained using <function>fdf_create</function>, <function>fdf_open</function> and <function>fdf_open_string</function>. - </para> + </simpara> </section> <!-- }}} --> </chapter> - <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -56,4 +54,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -

« previous php.doc.cvs (#22997) next »