<HTML ><HEAD ><TITLE >PDF functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="Referencia de las Funciones" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="overload" HREF="function.overload.html"><LINK REL="NEXT" TITLE="pdf_add_annotation" HREF="function.pdf-add-annotation.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.overload.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.pdf-add-annotation.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.pdf" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXVII. PDF functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN57898" ></A ><P > You can use the PDF functions in PHP to create PDF files if you have the PDF library by Thomas Merz (available at <A HREF="http://www.pdflib.com/pdflib/index.html" TARGET="_top" >http://www.pdflib.com/pdflib/index.html</A >; you will also need <A HREF="ftp://ftp.uu.net/graphics/jpeg/" TARGET="_top" >the JPEG library</A > and <A HREF="http://www.libtiff.org/" TARGET="_top" >the TIFF library</A > to compile this. These two libs also quite often make problems when configuring php. Follow the messages of configure to fix possible problems. If you use pdflib 2.01 check how the lib was installed. There should be file or link libpdf.so. Version 2.01 just creates a lib with the name libpdf2.01.so which cannot be found when linking the test programm in configure. You will have to create a symbolic link from libpdf.so to libpdf2.01.so.). </P ><P > Version 2.20 of pdflib has introduced more changes to its API and support for chinese and japanese fonts. This unfortunately causes some changes of the pdf module of php4 (not php3). If you use pdflib 2.20 handle the in memory generation of PDF documents with care. Until pdflib 3.0 is released it might be unstable. The encoding parameter of <A HREF="function.pdf-set-font.html" ><B CLASS="function" >pdf_set_font()</B ></A > has changed to a string. This means that instead of e.g. 4 you have to use 'winansi'. </P ><P > If you use pdflib 2.30 the <A HREF="function.pdf-set-text-matrix.html" ><B CLASS="function" >pdf_set_text_matrix()</B ></A > will have gone. It is not supported any more. In general it is a good advise to consult the release notes of the used version of pdflib for possible changes. </P ><P > Since version 3.0 of pdflib you should configure pdflib with the option <TT CLASS="literal" >--enable-shared-pdflib</TT >. </P ><P > Any version of PHP4 after March, 9th 2000 do not support versions of pdflib older than 3.0. PHP3 on the other hand should not be used with version newer than 2.01. </P ><P > 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. </P ><P > There is another PHP module for pdf document creation based on <A HREF="http://www.fastio.com/" TARGET="_top" >FastIO's</A >. ClibPDF. It has a slightly different API. Check the <A HREF="ref.cpdf.html" >ClibPDF functions</A > section for details. </P ><P > Currently all versions of pdflib are supported. It is recommended that you use the newest version since it has more features and fixes some problems which required a patch for the old version. Unfortunately, the changes of the pdflib API in 2.x compared to 0.6 have been so severe that even some PHP functions had to be altered. Here is a list of changes: </P ><P ></P ><UL ><LI ><P > The Info structure does not exist anymore. Therefore the function <B CLASS="function" >pdf_get_info()</B > is obsolete and the functions <A HREF="function.pdf-set-info-creator.html" ><B CLASS="function" >pdf_set_info_creator()</B ></A >, <A HREF="function.pdf-set-info-title.html" ><B CLASS="function" >pdf_set_info_title()</B ></A >, <A HREF="function.pdf-set-info-author.html" ><B CLASS="function" >pdf_set_info_author()</B ></A >, <A HREF="function.pdf-set-info-subject.html" ><B CLASS="function" >pdf_set_info_subject()</B ></A > and <A HREF="function.pdf-set-info-keywords.html" ><B CLASS="function" >pdf_set_info_keywords()</B ></A > do not take the info structure as the first parameter but the pdf document. This also means that the pdf document must be opened before these functions can be called. The above functions can and should also be replaced by <A HREF="function.pdf-set-info.html" ><B CLASS="function" >pdf_set_info()</B ></A > </P ></LI ><LI ><P > The way a new document is opened has changed. The function <A HREF="function.pdf-open.html" ><B CLASS="function" >pdf_open()</B ></A > takes only one parameter which is the file handle of a file opened with <A HREF="function.fopen.html" ><B CLASS="function" >fopen()</B ></A >. </P ></LI ></UL ><P > There were some more changes with the release 2.01 of pdflib which should be covered by PHP. Some functions are not required anymore (e.g. <B CLASS="function" >pdf_put_image()</B >). You will get a warning so don't be shocked.</P ><P > The pdf module introduces two new types of variables (if pdflib 2.x is used it is only one new type). They are called <TT CLASS="parameter" ><I >pdfdoc</I ></TT > and <TT CLASS="parameter" ><I >pdfinfo</I ></TT > (<TT CLASS="parameter" ><I >pdfinfo</I ></TT > is not existent if pdflib 2.x is used. <TT CLASS="parameter" ><I >pdfdoc</I ></TT > is a pointer to a pdf document and almost all functions need it as its first parameter. <TT CLASS="parameter" ><I >pdfinfo</I ></TT > contains meta data about the PDF document. It has to be set before <A HREF="function.pdf-open.html" ><B CLASS="function" >pdf_open()</B ></A > is called.</P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B >The following is only <TT CLASS="constant" ><B >TRUE</B ></TT > for pdflib 0.6. Read the pdflib manual for newer version</P ></BLOCKQUOTE ></DIV ><P > In order to output text into a PDF document you will need to provide the afm file for each font. Afm files contain font metrics for a Postscript font. By default these afm files are searched for in a directory named 'fonts' relative to the directory where the PHP script is located. (Again, this was <TT CLASS="constant" ><B >TRUE</B ></TT > for pdflib 0.6, newer versions do not not neccessarily need the afm files.)</P ><P > 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 example should help to get started. It uses the PHP functions for pdflib 0.6. It creates the file test.pdf with one page. The page contains the text "Times-Roman" in an outlined 30pt font. The text is also underlined.</P ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN57944" ></A ><P ><B >Ejemplo 1. Creating a PDF document with pdflib 0.6</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $fp = fopen("test.pdf", "w"); $info = PDF_get_info(); pdf_set_info_author($info, "Uwe Steinmann"); PDF_set_info_title($info, "Test for PHP wrapper of PDFlib 0.6"); PDF_set_info_author($info, "Name of Author"); pdf_set_info_creator($info, "See Author"); pdf_set_info_subject($info, "Testing"); $pdf = PDF_open($fp, $info); PDF_begin_page($pdf, 595, 842); PDF_add_outline($pdf, "Page 1"); pdf_set_font($pdf, "Times-Roman", 30, 4); pdf_set_text_rendering($pdf, 1); PDF_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); PDF_end_page($pdf); PDF_close($pdf); fclose($fp); echo "<A HREF=getpdf.php3>finished</A>"; ?></PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ><P > The PHP script getpdf.php3 just outputs the pdf document. <DIV CLASS="informalexample" ><A NAME="AEN57948" ></A ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $fp = fopen("test.pdf", "r"); header("Content-type: application/pdf"); fpassthru($fp); fclose($fp); ?></PRE ></TD ></TR ></TABLE ><P ></P ></DIV > Doing the same with pdflib 2.x looks like the following: <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN57950" ></A ><P ><B >Ejemplo 2. Creating a PDF document with pdflib 2.x</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $fp = fopen("test.pdf", "w"); $pdf = PDF_open($fp); pdf_set_info_author($pdf, "Uwe Steinmann"); PDF_set_info_title($pdf, "Test for PHP wrapper of PDFlib 2.0"); PDF_set_info_author($pdf, "Name of Author"); pdf_set_info_creator($pdf, "See Author"); pdf_set_info_subject($pdf, "Testing"); PDF_begin_page($pdf, 595, 842); PDF_add_outline($pdf, "Page 1"); pdf_set_font($pdf, "Times-Roman", 30, 4); pdf_set_text_rendering($pdf, 1); PDF_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); PDF_end_page($pdf); PDF_close($pdf); fclose($fp); echo "<A HREF=getpdf.php3>finished</A>"; ?></PRE ></TD ></TR ></TABLE ><P > The PHP script getpdf.php3 is the same as above.</P ></DIV ></TD ></TR ></TABLE > The pdflib distribution contains a more complex example which creates a serious of pages with an analog clock. This example converted into PHP using pdflib 2.x looks as the following (you can see the same example in the documentation for the <A HREF="ref.cpdf.html" >clibpdf module)</A >: <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN57955" ></A ><P ><B >Ejemplo 3. pdfclock example from pdflib 2.x distribution</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $pdffilename = "clock.pdf"; $radius = 200; $margin = 20; $pagecount = 40; $fp = fopen($pdffilename, "w"); $pdf = pdf_open($fp); pdf_set_info_creator($pdf, "pdf_clock.php3"); pdf_set_info_author($pdf, "Uwe Steinmann"); pdf_set_info_title($pdf, "Analog Clock"); while($pagecount-- > 0) { pdf_begin_page($pdf, 2 * ($radius + $margin), 2 * ($radius + $margin)); pdf_set_transition($pdf, 4); /* wipe */ pdf_set_duration($pdf, 0.5); pdf_translate($pdf, $radius + $margin, $radius + $margin); pdf_save($pdf); pdf_setrgbcolor($pdf, 0.0, 0.0, 1.0); /* minute strokes */ pdf_setlinewidth($pdf, 2.0); for ($alpha = 0; $alpha < 360; $alpha += 6) { pdf_rotate($pdf, 6.0); pdf_moveto($pdf, $radius, 0.0); pdf_lineto($pdf, $radius-$margin/3, 0.0); pdf_stroke($pdf); } pdf_restore($pdf); pdf_save($pdf); /* 5 minute strokes */ pdf_setlinewidth($pdf, 3.0); for ($alpha = 0; $alpha < 360; $alpha += 30) { pdf_rotate($pdf, 30.0); pdf_moveto($pdf, $radius, 0.0); pdf_lineto($pdf, $radius-$margin, 0.0); pdf_stroke($pdf); } $ltime = getdate(); /* draw hour hand */ pdf_save($pdf); pdf_rotate($pdf,-(($ltime['minutes']/60.0)+$ltime['hours']-3.0)*30.0); pdf_moveto($pdf, -$radius/10, -$radius/20); pdf_lineto($pdf, $radius/2, 0.0); pdf_lineto($pdf, -$radius/10, $radius/20); pdf_closepath($pdf); pdf_fill($pdf); pdf_restore($pdf); /* draw minute hand */ pdf_save($pdf); pdf_rotate($pdf,-(($ltime['seconds']/60.0)+$ltime['minutes']-15.0)*6.0); pdf_moveto($pdf, -$radius/10, -$radius/20); pdf_lineto($pdf, $radius * 0.8, 0.0); pdf_lineto($pdf, -$radius/10, $radius/20); pdf_closepath($pdf); pdf_fill($pdf); pdf_restore($pdf); /* draw second hand */ pdf_setrgbcolor($pdf, 1.0, 0.0, 0.0); pdf_setlinewidth($pdf, 2); pdf_save($pdf); pdf_rotate($pdf, -(($ltime['seconds'] - 15.0) * 6.0)); pdf_moveto($pdf, -$radius/5, 0.0); pdf_lineto($pdf, $radius, 0.0); pdf_stroke($pdf); pdf_restore($pdf); /* draw little circle at center */ pdf_circle($pdf, 0, 0, $radius/30); pdf_fill($pdf); pdf_restore($pdf); pdf_end_page($pdf); } $pdf = pdf_close($pdf); fclose($fp); echo "<A HREF=getpdf.php3?filename=".$pdffilename.">finished</A>"; ?></PRE ></TD ></TR ></TABLE ><P > The PHP script getpdf.php3 just outputs the pdf document. <TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $fp = fopen($filename, "r"); header("Content-type: application/pdf"); fpassthru($fp); fclose($fp); ?></PRE ></TD ></TR ></TABLE ></P ></DIV ></TD ></TR ></TABLE ></P ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Tabla de contenidos</B ></DT ><DT ><A HREF="function.pdf-add-annotation.html" >pdf_add_annotation</A > -- Adds annotation</DT ><DT ><A HREF="function.pdf-add-bookmark.html" >pdf_add_bookmark</A > -- Adds bookmark for current page</DT ><DT ><A HREF="function.pdf-add-launchlink.html" >pdf_add_launchlink</A > -- Add a launch annotation for current page</DT ><DT ><A HREF="function.pdf-add-locallink.html" >pdf_add_locallink</A > -- Add a link annotation for current page</DT ><DT ><A HREF="function.pdf-add-note.html" >pdf_add_note</A > -- Add a note annotation for current page</DT ><DT ><A HREF="function.pdf-add-outline.html" >PDF_add_outline</A > -- Adds bookmark for current page</DT ><DT ><A HREF="function.pdf-add-pdflink.html" >pdf_add_pdflink</A > -- Adds file link annotation for current page</DT ><DT ><A HREF="function.pdf-add-thumbnail.html" >pdf_add_thumbnail</A > -- Adds thumbnail for current page</DT ><DT ><A HREF="function.pdf-add-weblink.html" >pdf_add_weblink</A > -- Adds weblink for current page</DT ><DT ><A HREF="function.pdf-arc.html" >PDF_arc</A > -- Draws an arc</DT ><DT ><A HREF="function.pdf-arcn.html" >pdf_arcn</A > -- Draws an arc (clockwise)</DT ><DT ><A HREF="function.pdf-attach-file.html" >pdf_attach_file</A > -- Adds a file attachement for current page</DT ><DT ><A HREF="function.pdf-begin-page.html" >PDF_begin_page</A > -- Starts new page</DT ><DT ><A HREF="function.pdf-begin-pattern.html" >pdf_begin_pattern</A > -- Starts new pattern</DT ><DT ><A HREF="function.pdf-begin-template.html" >pdf_begin_template</A > -- Starts new template</DT ><DT ><A HREF="function.pdf-circle.html" >PDF_circle</A > -- Draws a circle</DT ><DT ><A HREF="function.pdf-clip.html" >PDF_clip</A > -- Clips to current path</DT ><DT ><A HREF="function.pdf-close-image.html" >PDF_close_image</A > -- Closes an image</DT ><DT ><A HREF="function.pdf-close-pdi-page.html" >pdf_close_pdi_page</A > -- Close the page handle </DT ><DT ><A HREF="function.pdf-close-pdi.html" >pdf_close_pdi</A > -- Close the input PDF document </DT ><DT ><A HREF="function.pdf-close.html" >PDF_close</A > -- Closes a pdf document</DT ><DT ><A HREF="function.pdf-closepath-fill-stroke.html" >PDF_closepath_fill_stroke</A > -- Closes, fills and strokes current path</DT ><DT ><A HREF="function.pdf-closepath-stroke.html" >PDF_closepath_stroke</A > -- Closes path and draws line along path</DT ><DT ><A HREF="function.pdf-closepath.html" >PDF_closepath</A > -- Closes path</DT ><DT ><A HREF="function.pdf-concat.html" >pdf_concat</A > -- Concatenate a matrix to the CTM</DT ><DT ><A HREF="function.pdf-continue-text.html" >PDF_continue_text</A > -- Outputs text in next line</DT ><DT ><A HREF="function.pdf-curveto.html" >PDF_curveto</A > -- Draws a curve</DT ><DT ><A HREF="function.pdf-delete.html" >pdf_delete</A > -- Deletes a PDF object</DT ><DT ><A HREF="function.pdf-end-page.html" >PDF_end_page</A > -- Ends a page</DT ><DT ><A HREF="function.pdf-end-pattern.html" >pdf_end_pattern</A > -- Finish pattern</DT ><DT ><A HREF="function.pdf-end-template.html" >pdf_end_template</A > -- Finish template</DT ><DT ><A HREF="function.pdf-endpath.html" >PDF_endpath</A > -- Ends current path</DT ><DT ><A HREF="function.pdf-fill-stroke.html" >PDF_fill_stroke</A > -- Fills and strokes current path</DT ><DT ><A HREF="function.pdf-fill.html" >PDF_fill</A > -- Fills current path</DT ><DT ><A HREF="function.pdf-findfont.html" >pdf_findfont</A > -- Prepare font for later use with <A HREF="function.pdf-setfont.html" ><B CLASS="function" >pdf_setfont()</B ></A >.</DT ><DT ><A HREF="function.pdf-get-buffer.html" >pdf_get_buffer</A > -- Fetch the buffer containig the generated PDF data.</DT ><DT ><A HREF="function.pdf-get-font.html" >pdf_get_font</A > -- Deprecated: font handling</DT ><DT ><A HREF="function.pdf-get-fontname.html" >pdf_get_fontname</A > -- Deprecated: font handling</DT ><DT ><A HREF="function.pdf-get-fontsize.html" >pdf_get_fontsize</A > -- Deprecated: font handling</DT ><DT ><A HREF="function.pdf-get-image-height.html" >pdf_get_image_height</A > -- Returns height of an image</DT ><DT ><A HREF="function.pdf-get-image-width.html" >pdf_get_image_width</A > -- Returns width of an image</DT ><DT ><A HREF="function.pdf-get-majorversion.html" >pdf_get_majorversion</A > -- Returns the major version number of the PDFlib </DT ><DT ><A HREF="function.pdf-get-minorversion.html" >pdf_get_minorversion</A > -- Returns the minor version number of the PDFlib </DT ><DT ><A HREF="function.pdf-get-parameter.html" >PDF_get_parameter</A > -- Gets certain parameters</DT ><DT ><A HREF="function.pdf-get-pdi-parameter.html" >pdf_get_pdi_parameter</A > -- Get some PDI string parameters</DT ><DT ><A HREF="function.pdf-get-pdi-value.html" >pdf_get_pdi_value</A > -- Gets some PDI numerical parameters</DT ><DT ><A HREF="function.pdf-get-value.html" >PDF_get_value</A > -- Gets certain numerical value</DT ><DT ><A HREF="function.pdf-initgraphics.html" >pdf_initgraphics</A > -- Resets graphic state</DT ><DT ><A HREF="function.pdf-lineto.html" >PDF_lineto</A > -- Draws a line</DT ><DT ><A HREF="function.pdf-makespotcolor.html" >pdf_makespotcolor</A > -- Makes a spotcolor</DT ><DT ><A HREF="function.pdf-moveto.html" >PDF_moveto</A > -- Sets current point</DT ><DT ><A HREF="function.pdf-new.html" >pdf_new</A > -- Creates a new pdf object</DT ><DT ><A HREF="function.pdf-open-ccitt.html" >pdf_open_CCITT</A > -- Opens a new image file with raw CCITT data</DT ><DT ><A HREF="function.pdf-open-file.html" >pdf_open_file</A > -- Opens a new pdf object</DT ><DT ><A HREF="function.pdf-open-gif.html" >PDF_open_gif</A > -- Opens a GIF image</DT ><DT ><A HREF="function.pdf-open-image-file.html" >pdf_open_image_file</A > -- Reads an image from a file</DT ><DT ><A HREF="function.pdf-open-image.html" >pdf_open_image</A > -- Versatile function for images</DT ><DT ><A HREF="function.pdf-open-jpeg.html" >PDF_open_jpeg</A > -- Opens a JPEG image</DT ><DT ><A HREF="function.pdf-open-memory-image.html" >PDF_open_memory_image</A > -- Opens an image created with PHP's image functions</DT ><DT ><A HREF="function.pdf-open-pdi-page.html" >pdf_open_pdi_page</A > -- Prepare a page </DT ><DT ><A HREF="function.pdf-open-pdi.html" >pdf_open_pdi</A > -- Opens a PDF file </DT ><DT ><A HREF="function.pdf-open-png.html" >PDF_open_png</A > -- Opens a PNG image </DT ><DT ><A HREF="function.pdf-open-tiff.html" >pdf_open_tiff</A > -- Deprecated: Opens a TIFF image</DT ><DT ><A HREF="function.pdf-open.html" >PDF_open</A > -- Opens a new pdf document</DT ><DT ><A HREF="function.pdf-place-image.html" >PDF_place_image</A > -- Places an image on the page</DT ><DT ><A HREF="function.pdf-place-pdi-page.html" >pdf_place_pdi_page</A > -- Places an image on the page</DT ><DT ><A HREF="function.pdf-rect.html" >PDF_rect</A > -- Draws a rectangle</DT ><DT ><A HREF="function.pdf-restore.html" >PDF_restore</A > -- Restores formerly saved environment</DT ><DT ><A HREF="function.pdf-rotate.html" >PDF_rotate</A > -- Sets rotation</DT ><DT ><A HREF="function.pdf-save.html" >PDF_save</A > -- Saves the current environment</DT ><DT ><A HREF="function.pdf-scale.html" >PDF_scale</A > -- Sets scaling</DT ><DT ><A HREF="function.pdf-set-border-color.html" >PDF_set_border_color</A > -- Sets color of border around links and annotations</DT ><DT ><A HREF="function.pdf-set-border-dash.html" >PDF_set_border_dash</A > -- Sets dash style of border around links and annotations</DT ><DT ><A HREF="function.pdf-set-border-style.html" >PDF_set_border_style</A > -- Sets style of border around links and annotations</DT ><DT ><A HREF="function.pdf-set-char-spacing.html" >PDF_set_char_spacing</A > -- Sets character spacing</DT ><DT ><A HREF="function.pdf-set-duration.html" >PDF_set_duration</A > -- Sets duration between pages</DT ><DT ><A HREF="function.pdf-set-font.html" >PDF_set_font</A > -- Selects a font face and size</DT ><DT ><A HREF="function.pdf-set-horiz-scaling.html" >PDF_set_horiz_scaling</A > -- Sets horizontal scaling of text</DT ><DT ><A HREF="function.pdf-set-info-author.html" >pdf_set_info_author</A > -- Fills the author field of the document </DT ><DT ><A HREF="function.pdf-set-info-creator.html" >pdf_set_info_creator</A > -- Fills the creator field of the document </DT ><DT ><A HREF="function.pdf-set-info-keywords.html" >pdf_set_info_keywords</A > -- Fills the keywords field of the document </DT ><DT ><A HREF="function.pdf-set-info-subject.html" >pdf_set_info_subject</A > -- Fills the subject field of the document </DT ><DT ><A HREF="function.pdf-set-info-title.html" >pdf_set_info_title</A > -- Fills the title field of the document </DT ><DT ><A HREF="function.pdf-set-info.html" >PDF_set_info</A > -- Fills a field of the document information</DT ><DT ><A HREF="function.pdf-set-leading.html" >PDF_set_leading</A > -- Sets distance between text lines</DT ><DT ><A HREF="function.pdf-set-parameter.html" >PDF_set_parameter</A > -- Sets certain parameters</DT ><DT ><A HREF="function.pdf-set-text-matrix.html" >PDF_set_text_matrix</A > -- Sets the text matrix</DT ><DT ><A HREF="function.pdf-set-text-pos.html" >PDF_set_text_pos</A > -- Sets text position</DT ><DT ><A HREF="function.pdf-set-text-rendering.html" >PDF_set_text_rendering</A > -- Determines how text is rendered</DT ><DT ><A HREF="function.pdf-set-text-rise.html" >PDF_set_text_rise</A > -- Sets the text rise</DT ><DT ><A HREF="function.pdf-set-value.html" >PDF_set_value</A > -- Sets certain numerical value</DT ><DT ><A HREF="function.pdf-set-word-spacing.html" >PDF_set_word_spacing</A > -- Sets spacing between words</DT ><DT ><A HREF="function.pdf-setcolor.html" >pdf_setcolor</A > -- Sets fill and stroke color</DT ><DT ><A HREF="function.pdf-setdash.html" >PDF_setdash</A > -- Sets dash pattern</DT ><DT ><A HREF="function.pdf-setflat.html" >PDF_setflat</A > -- Sets flatness</DT ><DT ><A HREF="function.pdf-setfont.html" >pdf_setfont</A > -- Set the current font</DT ><DT ><A HREF="function.pdf-setgray-fill.html" >PDF_setgray_fill</A > -- Sets filling color to gray value</DT ><DT ><A HREF="function.pdf-setgray-stroke.html" >PDF_setgray_stroke</A > -- Sets drawing color to gray value</DT ><DT ><A HREF="function.pdf-setgray.html" >PDF_setgray</A > -- Sets drawing and filling color to gray value</DT ><DT ><A HREF="function.pdf-setlinecap.html" >PDF_setlinecap</A > -- Sets linecap parameter</DT ><DT ><A HREF="function.pdf-setlinejoin.html" >PDF_setlinejoin</A > -- Sets linejoin parameter</DT ><DT ><A HREF="function.pdf-setlinewidth.html" >PDF_setlinewidth</A > -- Sets line width</DT ><DT ><A HREF="function.pdf-setmatrix.html" >pdf_setmatrix</A > -- Sets current transformation matrix</DT ><DT ><A HREF="function.pdf-setmiterlimit.html" >PDF_setmiterlimit</A > -- Sets miter limit</DT ><DT ><A HREF="function.pdf-setpolydash.html" >pdf_setpolydash</A > -- Sets complicated dash pattern</DT ><DT ><A HREF="function.pdf-setrgbcolor-fill.html" >PDF_setrgbcolor_fill</A > -- Sets filling color to rgb color value</DT ><DT ><A HREF="function.pdf-setrgbcolor-stroke.html" >PDF_setrgbcolor_stroke</A > -- Sets drawing color to rgb color value</DT ><DT ><A HREF="function.pdf-setrgbcolor.html" >PDF_setrgbcolor</A > -- Sets drawing and filling color to rgb color value</DT ><DT ><A HREF="function.pdf-show-boxed.html" >PDF_show_boxed</A > -- Output text in a box</DT ><DT ><A HREF="function.pdf-show-xy.html" >PDF_show_xy</A > -- Output text at given position</DT ><DT ><A HREF="function.pdf-show.html" >PDF_show</A > -- Output text at current position</DT ><DT ><A HREF="function.pdf-skew.html" >PDF_skew</A > -- Skews the coordinate system</DT ><DT ><A HREF="function.pdf-stringwidth.html" >PDF_stringwidth</A > -- Returns width of text using current font</DT ><DT ><A HREF="function.pdf-stroke.html" >PDF_stroke</A > -- Draws line along path</DT ><DT ><A HREF="function.pdf-translate.html" >PDF_translate</A > -- Sets origin of coordinate system</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.overload.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.pdf-add-annotation.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >overload</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pdf_add_annotation</TD ></TR ></TABLE ></DIV ></BODY ></HTML >