diff --git a/functions/pdf.xml b/functions/pdf.xml index 89b879b0bb..cc05e94e20 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -398,38 +398,6 @@ fclose($fp); - - - pdf_get_info - Returns an empty info structure for a pdf document - - - Description - - - info pdf_get_info - string filename - - - - The pdf_get_info function returns an - empty info structure for the pdf document. It should be filled - with appropriate information like the author, subject etc. of - the document. - - - This functions is not available if pdflib 2.x support is activated. - - - - See also pdf_set_info_creator, - pdf_set_info_author, - pdf_set_info_keywords, - pdf_set_info_title, - pdf_set_info_subject. - - - pdf_set_info @@ -493,31 +461,23 @@ pdf_close($pdfdoc); int pdf_open int file - int info The pdf_open function opens a new pdf document. The corresponding file has to be opened with fopen and the file descriptor passed - as argument file. info - is the info structure that has to be created with - pdf_get_info. The info structure will be deleted - within this function. - + as argument file. + If you do not pass any parameters, the document will be created in memory + and outputed page by page either to stdout or to the web browser. The return value is needed as the first parameter in all other functions writing to the pdf document. - - This function does not allow the second parameter if pdflib 2.0 support - is activated. - - + See also fopen, - pdf_get_info, pdf_close. @@ -538,21 +498,7 @@ pdf_close($pdfdoc); The pdf_close function closes the pdf document. - - Due to an unclean implementation of the pdflib 0.6 the - internal closing of the document also closes the file. This should - not be done because pdflib did not open the file, but expects an - already open file when pdf_open is called. - Consequently it shouldn't close the file. In order to fix this - just take out line 190 of the file p_basic.c in the pdflib 0.6 - source distribution until the next release of pdflib will fix - this. - - - - This function works properly without any patches to pdflib if - pdflib 2.0 support is activated. - + See also pdf_open, @@ -581,7 +527,7 @@ pdf_close($pdfdoc); page with height height and width width. In order to create a valid document you must call this function and - pdf_end_page. + pdf_end_page at least once. See also pdf_end_page. @@ -628,11 +574,12 @@ pdf_close($pdfdoc); The pdf_show function outputs the - string text at the current position + string text at the current text position using the current font. See also pdf_show_xy, + pdf_show_boxed, pdf_set_text_pos, pdf_set_font. @@ -702,7 +649,8 @@ pdf_close($pdfdoc); (x-coor, y-coor). - See also pdf_show. + See also pdf_show, + pdf_show_boxed.