1999-11-22 23:28:26 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2001-06-20 05:25:53 +08:00
|
|
|
| PHP version 4.0 |
|
1999-11-22 23:28:26 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2001-06-20 05:25:53 +08:00
|
|
|
| Copyright (c) 1997-2001 The PHP Group |
|
1999-11-22 23:28:26 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2001-06-20 05:25:53 +08:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-11-22 23:28:26 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Uwe Steinmann |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#ifndef PHP_CPDF_H
|
|
|
|
#define PHP_CPDF_H
|
1999-11-22 23:28:26 +08:00
|
|
|
|
|
|
|
#if HAVE_CPDFLIB
|
|
|
|
|
2001-03-19 02:32:58 +08:00
|
|
|
/* The macro T is defined in the IMAP headers and clashes with a function
|
|
|
|
declaration here. Get rid of it. */
|
|
|
|
|
|
|
|
#ifdef T
|
|
|
|
#undef T
|
|
|
|
#endif
|
|
|
|
|
1999-11-22 23:28:26 +08:00
|
|
|
#include <cpdflib.h>
|
|
|
|
|
1999-12-18 04:55:31 +08:00
|
|
|
extern zend_module_entry cpdf_module_entry;
|
1999-11-22 23:28:26 +08:00
|
|
|
#define cpdf_module_ptr &cpdf_module_entry
|
|
|
|
|
|
|
|
extern PHP_MINFO_FUNCTION(cpdf);
|
|
|
|
extern PHP_MINIT_FUNCTION(cpdf);
|
|
|
|
extern PHP_RINIT_FUNCTION(cpdf);
|
|
|
|
extern PHP_MSHUTDOWN_FUNCTION(cpdf);
|
2000-01-10 20:42:05 +08:00
|
|
|
PHP_FUNCTION(cpdf_global_set_document_limits);
|
1999-11-22 23:28:26 +08:00
|
|
|
PHP_FUNCTION(cpdf_set_creator);
|
|
|
|
PHP_FUNCTION(cpdf_set_title);
|
|
|
|
PHP_FUNCTION(cpdf_set_subject);
|
|
|
|
PHP_FUNCTION(cpdf_set_keywords);
|
|
|
|
PHP_FUNCTION(cpdf_set_viewer_preferences);
|
|
|
|
PHP_FUNCTION(cpdf_open);
|
|
|
|
PHP_FUNCTION(cpdf_close);
|
|
|
|
PHP_FUNCTION(cpdf_page_init);
|
|
|
|
PHP_FUNCTION(cpdf_finalize_page);
|
|
|
|
PHP_FUNCTION(cpdf_set_current_page);
|
|
|
|
PHP_FUNCTION(cpdf_begin_text);
|
|
|
|
PHP_FUNCTION(cpdf_end_text);
|
|
|
|
PHP_FUNCTION(cpdf_show);
|
|
|
|
PHP_FUNCTION(cpdf_show_xy);
|
|
|
|
PHP_FUNCTION(cpdf_continue_text);
|
|
|
|
PHP_FUNCTION(cpdf_text);
|
|
|
|
PHP_FUNCTION(cpdf_set_font);
|
2001-03-31 04:36:18 +08:00
|
|
|
PHP_FUNCTION(cpdf_set_font_directories);
|
|
|
|
PHP_FUNCTION(cpdf_set_font_map_file);
|
1999-11-22 23:28:26 +08:00
|
|
|
PHP_FUNCTION(cpdf_set_leading);
|
|
|
|
PHP_FUNCTION(cpdf_set_text_rendering);
|
|
|
|
PHP_FUNCTION(cpdf_set_horiz_scaling);
|
|
|
|
PHP_FUNCTION(cpdf_set_text_rise);
|
|
|
|
PHP_FUNCTION(cpdf_set_text_matrix);
|
|
|
|
PHP_FUNCTION(cpdf_set_text_pos);
|
|
|
|
PHP_FUNCTION(cpdf_rotate_text);
|
|
|
|
PHP_FUNCTION(cpdf_set_char_spacing);
|
|
|
|
PHP_FUNCTION(cpdf_set_word_spacing);
|
|
|
|
PHP_FUNCTION(cpdf_continue_text);
|
|
|
|
PHP_FUNCTION(cpdf_stringwidth);
|
|
|
|
PHP_FUNCTION(cpdf_save);
|
|
|
|
PHP_FUNCTION(cpdf_restore);
|
|
|
|
PHP_FUNCTION(cpdf_translate);
|
|
|
|
PHP_FUNCTION(cpdf_scale);
|
|
|
|
PHP_FUNCTION(cpdf_rotate);
|
|
|
|
PHP_FUNCTION(cpdf_setflat);
|
|
|
|
PHP_FUNCTION(cpdf_setlinejoin);
|
|
|
|
PHP_FUNCTION(cpdf_setlinecap);
|
|
|
|
PHP_FUNCTION(cpdf_setmiterlimit);
|
|
|
|
PHP_FUNCTION(cpdf_setlinewidth);
|
|
|
|
PHP_FUNCTION(cpdf_setdash);
|
|
|
|
PHP_FUNCTION(cpdf_moveto);
|
|
|
|
PHP_FUNCTION(cpdf_rmoveto);
|
|
|
|
PHP_FUNCTION(cpdf_curveto);
|
|
|
|
PHP_FUNCTION(cpdf_lineto);
|
|
|
|
PHP_FUNCTION(cpdf_rlineto);
|
|
|
|
PHP_FUNCTION(cpdf_circle);
|
|
|
|
PHP_FUNCTION(cpdf_arc);
|
|
|
|
PHP_FUNCTION(cpdf_rect);
|
|
|
|
PHP_FUNCTION(cpdf_newpath);
|
|
|
|
PHP_FUNCTION(cpdf_closepath);
|
|
|
|
PHP_FUNCTION(cpdf_closepath_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_fill);
|
|
|
|
PHP_FUNCTION(cpdf_fill_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_closepath_fill_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_endpath);
|
|
|
|
PHP_FUNCTION(cpdf_clip);
|
|
|
|
PHP_FUNCTION(cpdf_setgray_fill);
|
|
|
|
PHP_FUNCTION(cpdf_setgray_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_setgray);
|
|
|
|
PHP_FUNCTION(cpdf_setrgbcolor_fill);
|
|
|
|
PHP_FUNCTION(cpdf_setrgbcolor_stroke);
|
|
|
|
PHP_FUNCTION(cpdf_setrgbcolor);
|
|
|
|
PHP_FUNCTION(cpdf_add_outline);
|
|
|
|
PHP_FUNCTION(cpdf_set_page_animation);
|
|
|
|
PHP_FUNCTION(cpdf_finalize);
|
|
|
|
PHP_FUNCTION(cpdf_output_buffer);
|
|
|
|
PHP_FUNCTION(cpdf_save_to_file);
|
|
|
|
PHP_FUNCTION(cpdf_add_annotation);
|
|
|
|
PHP_FUNCTION(cpdf_import_jpeg);
|
|
|
|
#if HAVE_LIBGD13
|
|
|
|
PHP_FUNCTION(cpdf_place_inline_image);
|
|
|
|
#endif
|
|
|
|
PHP_FUNCTION(cpdf_set_action_url);
|
|
|
|
#else
|
|
|
|
#define cpdf_module_ptr NULL
|
|
|
|
#endif
|
|
|
|
#define phpext_cpdf_ptr cpdf_module_ptr
|
2000-02-26 11:20:55 +08:00
|
|
|
#endif /* _PHP_PDF_H */
|