1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-26 00:12:06 +01:00
Files
archived-doc-es/reference/fdf/functions/fdf-create.xml
2010-04-23 02:53:01 +00:00

90 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: lboshell Status: ready -->
<refentry xml:id="function.fdf-create" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>fdf_create</refname>
<refpurpose>Crear un nuevo documento FDF</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>fdf_create</methodname>
<void/>
</methodsynopsis>
<para>
Crea un nuevo documento FDF.
</para>
<para>
Esta función es requerida si se desea poblar campos de entrada en un
documento PDF con datos.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Devuelve un gestor de documento FDF, o &false; en caso de error.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Poblar un documento PDF</title>
<programlisting role="php">
<![CDATA[
<?php
$salida_fdf = fdf_create();
fdf_set_value($salida_fdf, "volume", $volumen, 0);
fdf_set_file($salida_fdf, "http:/prueba_fdf/etiqueta_resultado.pdf");
fdf_save($salida_fdf, "salida_prueba.fdf");
fdf_close($salida_fdf);
Header("Content-type: application/vnd.fdf");
$aa = fopen("salida_prueba.fdf", "r");
fpassthru($aa);
unlink("salida_prueba.fdf");
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>fdf_close</function></member>
<member><function>fdf_save</function></member>
<member><function>fdf_open</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->