Runtime Configuration
This extension has no configuration directives defined in
php.ini.
Confusion with old PDFlib versions
Starting with PHP 4.0.5, the PHP extension for PDFlib is
officially supported by PDFlib GmbH. This means that all
the functions described in the PDFlib manual (V3.00 or greater)
are supported by PHP 4 with exactly the same meaning and
the same parameters. Only the return values may differ from
the PDFlib manual, because the PHP convention of returning
FALSE was adopted. For compatibility reasons, this binding
for PDFlib still supports the old functions, but they should
be replaced by their new versions. PDFlib GmbH will not
support any problems arising from the use of these deprecated
functions.
Table 1. Deprecated functions and their replacements
Old function Replacement
pdf_put_image() Not needed anymore.
pdf_execute_image() Not needed anymore.
pdf_get_annotation() pdf_get_bookmark() using the same parameters.
pdf_get_font() pdf_get_value() passing "font"
as the second parameter.
pdf_get_fontsize() pdf_get_value() passing "fontsize"
as the second parameter.
pdf_get_fontname() pdf_get_parameter() passing "fontname"
as the second parameter.
pdf_set_info_creator() pdf_set_info() passing "Creator"
as the second parameter.
pdf_set_info_title() pdf_set_info() passing "Title"
as the second parameter.
pdf_set_info_subject() pdf_set_info() passing "Subject"
as the second parameter.
pdf_set_info_author() pdf_set_info() passing "Author"
as the second parameter.
pdf_set_info_keywords() pdf_set_info() passing "Keywords"
as the second parameter.
pdf_set_leading() pdf_set_value() passing "leading"
as the second parameter.
pdf_set_text_rendering() pdf_set_value() passing "textrendering"
as the second parameter.
pdf_set_text_rise() pdf_set_value() passing "textrise"
as the second parameter.
pdf_set_horiz_scaling() pdf_set_value() passing "horizscaling"
as the second parameter.
pdf_set_text_matrix() Not available anymore
pdf_set_char_spacing() pdf_set_value() passing "charspacing"
as the second parameter.
pdf_set_word_spacing() pdf_set_value() passing "wordspacing"
as the second parameter.
pdf_set_transition() pdf_set_parameter() passing "transition"
as the second parameter.
pdf_open() pdf_new() plus an subsequent call of pdf_open_file()
pdf_set_font() pdf_findfont() plus an subsequent call of
pdf_setfont()
pdf_set_duration() pdf_set_value() passing "duration"
as the second parameter.
pdf_open_gif() pdf_open_image_file() passing "gif"
as the second parameter.
pdf_open_jpeg() pdf_open_image_file() passing "jpeg"
as the second parameter.
pdf_open_tiff() pdf_open_image_file() passing "tiff"
as the second parameter.
pdf_open_png() pdf_open_image_file() passing "png"
as the second parameter.
pdf_get_image_width() pdf_get_value() passing "imagewidth"
as the second parameter and the image as the third parameter.
pdf_get_image_height() pdf_get_value() passing "imageheight"
as the second parameter and the image as the third parameter.
|