
Index: phpdoc/en/functions/pdf.xml
diff -u phpdoc/en/functions/pdf.xml:1.48 phpdoc/en/functions/pdf.xml:1.49
--- phpdoc/en/functions/pdf.xml:1.48 Thu May 17 15:40:32 2001
+++ phpdoc/en/functions/pdf.xml Sun May 20 19:21:09 2001
@@ -76,141 +76,141 @@
- PDF_put_image
+ pdf_put_image
Not needed anymore.
- PDF_execute_image
+ pdf_execute_image
Not needed anymore.
- PDF_get_annotation
- PDF_get_bookmark using the same
+ pdf_get_annotation
+ pdf_get_bookmark using the same
parameters.
- PDF_get_font
- PDF_get_value passing
+ pdf_get_font
+ pdf_get_value passing
"font" as the second parameter.
- PDF_get_fontsize
- PDF_get_value passing
+ pdf_get_fontsize
+ pdf_get_value passing
"fontsize" as the second parameter.
- PDF_get_fontname
- PDF_get_parameter passing
+ pdf_get_fontname
+ pdf_get_parameter passing
"fontname" as the second parameter.
- PDF_set_info_creator
- PDF_set_info passing
+ pdf_set_info_creator
+ pdf_set_info passing
"Creator" as the second parameter.
- PDF_set_info_title
- PDF_set_info passing
+ pdf_set_info_title
+ pdf_set_info passing
"Title" as the second parameter.
- PDF_set_info_subject
- PDF_set_info passing
+ pdf_set_info_subject
+ pdf_set_info passing
"Subject" as the second parameter.
- PDF_set_info_author
- PDF_set_info passing
+ pdf_set_info_author
+ pdf_set_info passing
"Author" as the second parameter.
- PDF_set_info_keywords
- PDF_set_info passing
+ pdf_set_info_keywords
+ pdf_set_info passing
"Keywords" as the second parameter.
- PDF_set_leading
- PDF_set_value passing
+ pdf_set_leading
+ pdf_set_value passing
"leading" as the second parameter.
- PDF_set_text_rendering
- PDF_set_value passing
+ pdf_set_text_rendering
+ pdf_set_value passing
"textrendering" as the second parameter.
- PDF_set_text_rise
- PDF_set_value passing
+ pdf_set_text_rise
+ pdf_set_value passing
"textrise" as the second parameter.
- PDF_set_horiz_scaling
- PDF_set_value passing
+ pdf_set_horiz_scaling
+ pdf_set_value passing
"horizscaling" as the second parameter.
- PDF_set_text_matrix
+ pdf_set_text_matrix
Not available anymore
- PDF_set_char_spacing
- PDF_set_value passing
+ pdf_set_char_spacing
+ pdf_set_value passing
"charspacing" as the second parameter.
- PDF_set_word_spacing
- PDF_set_value passing
+ pdf_set_word_spacing
+ pdf_set_value passing
"wordspacing" as the second parameter.
- PDF_set_transition
- PDF_set_parameter passing
+ 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_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_font
+ pdf_findfont plus an subsequent call
+ of pdf_setfont
- PDF_set_duration
- PDF_set_value passing
+ pdf_set_duration
+ pdf_set_value passing
"duration" as the second parameter.
- PDF_open_gif
- PDF_open_image_file passing
+ pdf_open_gif
+ pdf_open_image_file passing
"gif" as the second parameter.
- PDF_open_jpeg
- PDF_open_image_file passing
+ pdf_open_jpeg
+ pdf_open_image_file passing
"jpeg" as the second parameter.
- PDF_open_tiff
- PDF_open_image_file passing
+ pdf_open_tiff
+ pdf_open_image_file passing
"tiff" as the second parameter.
- PDF_open_png
- PDF_open_image_file passing
+ pdf_open_png
+ pdf_open_image_file passing
"png" as the second parameter.
- PDF_get_image_width
- PDF_get_value passing
+ 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
+ pdf_get_image_height
+ pdf_get_value passing
"imageheight" as the second parameter and the
image as the third parameter.
@@ -255,23 +255,23 @@
Creating a PDF document with PDFlib
<?php
-$pdf = PDF_new();
-PDF_open_file($pdf, "test.pdf");
-PDF_set_info($pdf, "Author", "Uwe Steinmann");
-PDF_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0");
-PDF_set_info($pdf, "Creator", "See Author");
-PDF_set_info($pdf, "Subject", "Testing");
-PDF_begin_page($pdf, 595, 842);
-PDF_add_outline($pdf, "Page 1");
-PDF_set_font($pdf, "Times-Roman", 30, "host");
-PDF_set_value($pdf, "textrendering", 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);
-PDF_delete($pdf);
+$pdf = pdf_new();
+pdf_open_file($pdf, "test.pdf");
+pdf_set_info($pdf, "Author", "Uwe Steinmann");
+pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0");
+pdf_set_info($pdf, "Creator", "See Author");
+pdf_set_info($pdf, "Subject", "Testing");
+pdf_begin_page($pdf, 595, 842);
+pdf_add_outline($pdf, "Page 1");
+pdf_set_font($pdf, "Times-Roman", 30, "host");
+pdf_set_value($pdf, "textrendering", 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);
+pdf_delete($pdf);
echo "<A HREF=getpdf.php>finished</A>";
?>
@@ -308,97 +308,97 @@
$margin = 20;
$pagecount = 10;
-$pdf = PDF_new();
+$pdf = pdf_new();
-if (!PDF_open_file($pdf, "")) {
+if (!pdf_open_file($pdf, "")) {
print error;
exit;
};
-PDF_set_parameter($pdf, "warning", "true");
+pdf_set_parameter($pdf, "warning", "true");
-PDF_set_info($pdf, "Creator", "pdf_clock.php");
-PDF_set_info($pdf, "Author", "Uwe Steinmann");
-PDF_set_info($pdf, "Title", "Analog Clock");
+pdf_set_info($pdf, "Creator", "pdf_clock.php");
+pdf_set_info($pdf, "Author", "Uwe Steinmann");
+pdf_set_info($pdf, "Title", "Analog Clock");
while($pagecount-- > 0) {
- PDF_begin_page($pdf, 2 * ($radius + $margin), 2 * ($radius + $margin));
+ pdf_begin_page($pdf, 2 * ($radius + $margin), 2 * ($radius + $margin));
- PDF_set_parameter($pdf, "transition", "wipe");
- PDF_set_value($pdf, "duration", 0.5);
+ pdf_set_parameter($pdf, "transition", "wipe");
+ pdf_set_value($pdf, "duration", 0.5);
- PDF_translate($pdf, $radius + $margin, $radius + $margin);
- PDF_save($pdf);
- PDF_setrgbcolor($pdf, 0.0, 0.0, 1.0);
+ 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);
+ 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_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);
+ pdf_restore($pdf);
+ pdf_save($pdf);
/* 5 minute strokes */
- PDF_setlinewidth($pdf, 3.0);
+ 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);
+ 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);
+ 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);
+ 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);
+ 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_circle($pdf, 0, 0, $radius/30);
+ pdf_fill($pdf);
- PDF_restore($pdf);
+ pdf_restore($pdf);
- PDF_end_page($pdf);
+ pdf_end_page($pdf);
# to see some difference
sleep(1);
}
-PDF_close($pdf);
+pdf_close($pdf);
-$buf = PDF_get_buffer($pdf);
+$buf = pdf_get_buffer($pdf);
$len = strlen($buf);
header("Content-type: application/pdf");
@@ -406,7 +406,7 @@
header("Content-Disposition: inline; filename=foo.pdf");
print $buf;
-PDF_delete($pdf);
+pdf_delete($pdf);
?>
@@ -416,31 +416,31 @@
- PDF_add_annotation
+ pdf_add_annotation
Deprecated: Adds annotation
Description
- PDF_add_outline is replaced by
- PDF_add_note
+ pdf_add_outline is replaced by
+ pdf_add_note
- See also PDF_add_note.
+ See also pdf_add_note.
- PDF_add_bookmark
+ pdf_add_bookmark
Adds bookmark for current page
Description
- int PDF_add_bookmark
+ int pdf_add_bookmark
int pdf object
string text
int parent
@@ -458,14 +458,14 @@
- PDF_add_launchlink
+ pdf_add_launchlink
Add a launch annotation for current page
Description
- int PDF_add_launchlink
+ int pdf_add_launchlink
int pdf object
double llx
double lly
@@ -482,14 +482,14 @@
- PDF_add_locallink
+ pdf_add_locallink
Add a link annotation for current page
Description
- int PDF_add_locallink
+ int pdf_add_locallink
int pdf object
double llx
double lly
@@ -507,14 +507,14 @@
- PDF_add_note
+ pdf_add_note
Add a note annotation for current page
Description
- int PDF_add_note
+ int pdf_add_note
int pdf object
double llx
double lly
@@ -535,7 +535,7 @@
- PDF_add_outline
+ pdf_add_outline
Deprecated: Adds bookmark for current page
@@ -544,21 +544,21 @@
Deprecated.
- See PDF_add_bookmark.
+ See pdf_add_bookmark.
- PDF_add_pdflink
+ pdf_add_pdflink
Adds file link annotation for current page
Description
- int PDF_add_pdflink
+ int pdf_add_pdflink
int pdf object
double llx
double lly
@@ -577,14 +577,14 @@
- PDF_add_thumbnail
+ pdf_add_thumbnail
Adds thumbnail for current page
Description
- int PDF_add_thumbnail
+ int pdf_add_thumbnail
int pdf object
int image
@@ -597,14 +597,14 @@
- PDF_add_weblink
+ pdf_add_weblink
Adds weblink for current page
Description
- int PDF_add_weblink
+ int pdf_add_weblink
int pdf object
double llx
double lly
@@ -621,14 +621,14 @@
- PDF_arc
+ pdf_arc
Draws an arc
Description
- void PDF_arc
+ void pdf_arc
int pdf object
double x
double y
@@ -645,14 +645,14 @@
- PDF_arcn
+ pdf_arcn
Draws an arc
Description
- void PDF_arc
+ void pdf_arc
int pdf object
double x
double y
@@ -669,14 +669,14 @@
- PDF_attach_file
+ pdf_attach_file
Adds a file attachement for current page
Description
- int PDF_attach_file
+ int pdf_attach_file
int pdf object
double llx
double lly
@@ -698,14 +698,14 @@
- PDF_begin_page
+ pdf_begin_page
Starts new page
Description
- void PDF_begin_page
+ void pdf_begin_page
int pdf object
double width
double height
@@ -719,14 +719,14 @@
- PDF_begin_pattern
+ pdf_begin_pattern
Starts new pattern
Description
- void PDF_begin_pattern
+ void pdf_begin_pattern
int pdf object
double width
double height
@@ -743,14 +743,14 @@
- PDF_begin_template
+ pdf_begin_template
Starts new template
Description
- void PDF_begin_template
+ void pdf_begin_template
int pdf object
double width
double height
@@ -764,14 +764,14 @@
- PDF_circle
+ pdf_circle
Draws a circle
Description
- void PDF_circle
+ void pdf_circle
int pdf object
double x
double y
@@ -786,14 +786,14 @@
- PDF_clip
+ pdf_clip
Clips to current path
Description
- void PDF_clip
+ void pdf_clip
int pdf object
@@ -805,14 +805,14 @@
- PDF_close
+ pdf_close
Closes a pdf object
Description
- void PDF_close
+ void pdf_close
int pdf object
@@ -824,14 +824,14 @@
- PDF_closepath
+ pdf_closepath
Closes path
Description
- void PDF_closepath
+ void pdf_closepath
int pdf object
@@ -843,14 +843,14 @@
- PDF_closepath_fill_stroke
+ pdf_closepath_fill_stroke
Closes, fills and strokes current path
Description
- void PDF_closepath_fill_stroke
+ void pdf_closepath_fill_stroke
int pdf object
@@ -862,14 +862,14 @@
- PDF_closepath_stroke
+ pdf_closepath_stroke
Closes path and draws line along path
Description
- void PDF_closepath_stroke
+ void pdf_closepath_stroke
int pdf object
@@ -881,27 +881,27 @@
- PDF_close_image
+ pdf_close_image
Closes an image
Description
- void PDF_close_image
+ void pdf_close_image
int image
Close an image retrieved with one of the
- PDF_open_image*() functions.
+ pdf_open_image*() functions.
- PDF_close_pdi
+ pdf_close_pdi
Close the input PDF document
@@ -910,7 +910,7 @@
Description
- void PDF_close_pdi
+ void pdf_close_pdi
int pdf object
int dochandle
@@ -923,7 +923,7 @@
- PDF_close_pdi_page
+ pdf_close_pdi_page
Close the page handle
@@ -932,7 +932,7 @@
Description
- void PDF_close_pdi_page
+ void pdf_close_pdi_page
int pdf object
int pagehandle
@@ -945,14 +945,14 @@
- PDF_concat
+ pdf_concat
Concatenate a matrix to the CTM
Description
- void PDF_concat
+ void pdf_concat
int pdf object
double a
double b
@@ -970,14 +970,14 @@
- PDF_continue_text
+ pdf_continue_text
Outputs text in next line
Description
- void PDF_continue_text
+ void pdf_continue_text
int pdf object
string text
@@ -991,14 +991,14 @@
- PDF_curveto
+ pdf_curveto
Draws a curve
Description
- void PDF_curveto
+ void pdf_curveto
int pdf object
double x1
double y1
@@ -1016,14 +1016,14 @@
- PDF_delete
+ pdf_delete
Deletes a PDF object
Description
- void PDF_delete
+ void pdf_delete
int pdf object
@@ -1035,14 +1035,14 @@
- PDF_end_page
+ pdf_end_page
Ends a page
Description
- void PDF_end_page
+ void pdf_end_page
int pdf object
@@ -1054,7 +1054,7 @@
- PDF_endpath
+ pdf_endpath
Deprecated: Ends current path
@@ -1067,14 +1067,14 @@
- PDF_end_pattern
+ pdf_end_pattern
Finish pattern
Description
- void PDF_end_pattern
+ void pdf_end_pattern
int pdf object
@@ -1086,14 +1086,14 @@
- PDF_end_template
+ pdf_end_template
Finish template
Description
- void PDF_end_template
+ void pdf_end_template
int pdf object
@@ -1105,14 +1105,14 @@
- PDF_fill
+ pdf_fill
Fills current path
Description
- void PDF_fill_stroke
+ void pdf_fill_stroke
int pdf object
@@ -1124,14 +1124,14 @@
- PDF_fill_stroke
+ pdf_fill_stroke
Fills and strokes current path
Description
- void PDF_fill_stroke
+ void pdf_fill_stroke
int pdf object
@@ -1143,14 +1143,14 @@
- PDF_findfont
- Prepare font for later use with PDF_setfont.
+ pdf_findfont
+ Prepare font for later use with pdf_setfont.
Description
- int PDF_findfont
+ int pdf_findfont
int pdf object
string fontname
string encoding^
@@ -1158,19 +1158,19 @@
- Prepare a font for later use with PDF_setfont.
+ Prepare a font for later use with pdf_setfont.
The metrics will be loaded, and if embed is nonzero, the font file
will be checked, but not yet used. Encoding is one of "builtin",
"macroman", "winansi", "host", or a user-defined encoding name,
or the name of a CMap.
- PDF_findfont returns a font handle or false
+ pdf_findfont returns a font handle or false
on error.
- PDF_findfont example
+ pdf_findfont example
<php
@@ -1188,14 +1188,14 @@
- PDF_get_buffer
+ pdf_get_buffer
Fetch the buffer containig the generated PDF data.
Description
- string PDF_get_buffer
+ string pdf_get_buffer
int pdf object
@@ -1208,7 +1208,7 @@
- PDF_get_font
+ pdf_get_font
Deprecated: font handling
@@ -1217,14 +1217,14 @@
Deprecated.
- See PDF_get_value.
+ See pdf_get_value.
- PDF_get_fontname
+ pdf_get_fontname
Deprecated: font handling
@@ -1233,14 +1233,14 @@
Deprecated.
- See PDF_get_parameter.
+ See pdf_get_parameter.
- PDF_get_fontsize
+ pdf_get_fontsize
Deprecated: font handling
@@ -1249,63 +1249,63 @@
Deprecated.
- See PDF_get_value.
+ See pdf_get_value.
- PDF_get_image_height
+ pdf_get_image_height
Returns height of an image
Description
- string PDF_get_image_height
+ string pdf_get_image_height
int pdf object
int image
- PDF_get_image_height is deprecated,
- use PDF_get_value instead.
+ pdf_get_image_height is deprecated,
+ use pdf_get_value instead.
- PDF_get_image_width
+ pdf_get_image_width
Returns width of an image
Description
- string PDF_get_image_width
+ string pdf_get_image_width
int pdf object
int image
- The PDF_get_image_width is deprecated,
- use PDF_get_value instead.
+ The pdf_get_image_width is deprecated,
+ use pdf_get_value instead.
- PDF_get_parameter
+ pdf_get_parameter
Gets certain parameters
Description
- string PDF_get_parameter
+ string pdf_get_parameter
int pdf object
string key
double modifier
@@ -1319,14 +1319,14 @@
- PDF_get_pdi_parameter
+ pdf_get_pdi_parameter
Get some PDI string parameters
Description
- string PDF_get_pdi_parameter
+ string pdf_get_pdi_parameter
int pdf object
string key
int doc
@@ -1342,14 +1342,14 @@
- PDF_get_pdi_value
+ pdf_get_pdi_value
Gets some PDI numerical parameters
Description
- string PDF_get_pdi_value
+ string pdf_get_pdi_value
int pdf object
string key
int doc
@@ -1365,14 +1365,14 @@
- PDF_get_value
+ pdf_get_value
Gets certain numerical value
Description
- double PDF_get_value
+ double pdf_get_value
int pdf object
string key
double modifier
@@ -1386,14 +1386,14 @@
- PDF_initgraphics
+ pdf_initgraphics
Resets graphic state
Description
- void PDF_initgraphics
+ void pdf_initgraphics
int pdf object
@@ -1405,14 +1405,14 @@
- PDF_lineto
+ pdf_lineto
Draws a line
Description
- void PDF_lineto
+ void pdf_lineto
int pdf object
double x
double y
@@ -1427,14 +1427,14 @@
- PDF_makespotcolor
+ pdf_makespotcolor
Makes a spotcolor
Description
- void PDF_makespotcolor
+ void pdf_makespotcolor
int pdf object
string spotname
@@ -1447,14 +1447,14 @@
- PDF_moveto
+ pdf_moveto
Sets current point
Description
- void PDF_moveto
+ void pdf_moveto
int pdf object
double x
double y
@@ -1468,14 +1468,14 @@
- PDF_new
+ pdf_new
Creates a new pdf object
Description
- int PDF_new
+ int pdf_new
@@ -1488,33 +1488,33 @@
- PDF_open
+ pdf_open
Deprecated: Open a new pdf object
Description
- PDF_open is deprecated, use
- PDF_new plus PDF_open_file
+ pdf_open is deprecated, use
+ pdf_new plus pdf_open_file
instead.
- See also PDF_new,
- PDF_open_file.
+ See also pdf_new,
+ pdf_open_file.
- PDF_open_CCITT
+ pdf_open_CCITT
Opens a new image file with raw CCITT data
Description
- int PDF_open
+ int pdf_open
int pdf object
string filename
int width
@@ -1532,14 +1532,14 @@
- PDF_open_file
+ pdf_open_file
Opens a new pdf object
Description
- int PDF_open_file
+ int pdf_open_file
int pdf object
string filename
@@ -1549,7 +1549,7 @@
If filename is empty the PDF document
will be generated in memory instead of on file. The result
must be fetched by the client with the
- PDF_get_buffer function.
+ pdf_get_buffer function.
The following example shows how to create a pdf document in memory
@@ -1586,7 +1586,7 @@
- PDF_open_gif
+ pdf_open_gif
Deprecated: Opens a GIF image
@@ -1595,21 +1595,21 @@
Deprecated.
- See PDF_open_image,
+ See pdf_open_image,
- PDF_open_image
+ pdf_open_image
Versatile function for images
Description
- int PDF_open_image
+ int pdf_open_image
int PDF-document
string imagetype
string source
@@ -1633,14 +1633,14 @@
- PDF_open_image_file
+ pdf_open_image_file
Reads an image from a file
Description
- int PDF_open_image_file
+ int pdf_open_image_file
int PDF-document
string imagetype
string filename
@@ -1660,7 +1660,7 @@
- PDF_open_jpeg
+ pdf_open_jpeg
Deprecated: Opens a JPEG image
@@ -1669,27 +1669,27 @@
Deprecated.
- See also PDF_open_image,
+ See also pdf_open_image,
- PDF_open_memory_image
+ pdf_open_memory_image
Opens an image created with PHP's image functions
Description
- int PDF_open_memory_image
+ int pdf_open_memory_image
int pdf object
int image
- The PDF_open_memory_image function takes
+ The pdf_open_memory_image function takes
an image created with the PHP's image functions and makes it available
for the pdf object. The function returns a pdf
image identifier.
@@ -1701,23 +1701,23 @@
$im = ImageCreate(100, 100);
$col = ImageColorAllocate($im, 80, 45, 190);
ImageFill($im, 10, 10, $col);
-$pim = PDF_open_memory_image($pdf, $im);
+$pim = pdf_open_memory_image($pdf, $im);
ImageDestroy($im);
-PDF_place_image($pdf, $pim, 100, 100, 1);
-PDF_close_image($pdf, $pim);
+pdf_place_image($pdf, $pim, 100, 100, 1);
+pdf_close_image($pdf, $pim);
?>
- See also PDF_close_image,
- PDF_place_image.
+ See also pdf_close_image,
+ pdf_place_image.
- PDF_open_pdi
+ pdf_open_pdi
Opens a PDF file
@@ -1726,7 +1726,7 @@
Description
- void PDF_open_pdi
+ void pdf_open_pdi
int pdf object
string filename
string stringparam
@@ -1741,7 +1741,7 @@
- PDF_open_pdi_page
+ pdf_open_pdi_page
Prepare a page
@@ -1750,7 +1750,7 @@
Description
- void PDF_open_pd_pagei
+ void pdf_open_pd_pagei
int pdf object
int dochandle
int pagenumber
@@ -1758,14 +1758,14 @@
- Prepare a page for later use with PDF_place_image
+ Prepare a page for later use with pdf_place_image
- PDF_open_png
+ pdf_open_png
Deprecated: Opens a PNG image
@@ -1776,21 +1776,21 @@
Deprecated.
- See PDF_open_image.
+ See pdf_open_image.
- PDF_open_tiff
+ pdf_open_tiff
Deprecated: Opens a TIFF image
Description
- int PDF_open_tiff
+ int pdf_open_tiff
int PDF-document
string filename
@@ -1799,21 +1799,21 @@
Deprecated.
- See also PDF_open_image,
+ See also pdf_open_image,
- PDF_place_image
+ pdf_place_image
Places an image on the page
Description
- void PDF_place_image
+ void pdf_place_image
int pdf object
int image
double x
@@ -1830,14 +1830,14 @@
- PDF_place_pdi_page
+ pdf_place_pdi_page
Places an image on the page
Description
- void PDF_place_pdi_page
+ void pdf_place_pdi_page
int pdf object
int page
double x
@@ -1855,14 +1855,14 @@
- PDF_rect
+ pdf_rect
Draws a rectangle
Description
- void PDF_rect
+ void pdf_rect
int pdf object
double x
double y
@@ -1878,14 +1878,14 @@
- PDF_restore
+ pdf_restore
Restores formerly saved environment
Description
- void PDF_restore
+ void pdf_restore
int pdf object
@@ -1897,14 +1897,14 @@
- PDF_rotate
+ pdf_rotate
Sets rotation
Description
- void PDF_rotate
+ void pdf_rotate
int pdf object
double phi
@@ -1917,14 +1917,14 @@
- PDF_save
+ pdf_save
Saves the current environment
Description
- void PDF_save
+ void pdf_save
int pdf object
@@ -1936,14 +1936,14 @@
- PDF_scale
+ pdf_scale
Sets scaling
Description
- void PDF_scale
+ void pdf_scale
int pdf object
double x-scale
double y-scale
@@ -1957,14 +1957,14 @@
- PDF_setcolor
+ pdf_setcolor
Sets fill and stroke color to CMYK values
Description
- void PDF_setcolor
+ void pdf_setcolor
int pdf object
string type
string colorspace
@@ -1983,14 +1983,14 @@
- PDF_setdash
+ pdf_setdash
Sets dash pattern
Description
- void PDF_setdash
+ void pdf_setdash
int pdf object
double w
double b
@@ -2004,14 +2004,14 @@
- PDF_setflat
+ pdf_setflat
Sets flatness
Description
- void PDF_setflat
+ void pdf_setflat
int pdf object
double flatness
@@ -2024,14 +2024,14 @@
- PDF_setfont
+ pdf_setfont
Set the current font
Description
- void PDF_setfont
+ void pdf_setfont
int pdf object
int font
double size
@@ -2040,24 +2040,24 @@
Set the current font in the given size, using a
font handle returned by
- PDF_findfont
+ pdf_findfont
- See Also: PDF_findfont.
+ See Also: pdf_findfont.
- PDF_setgray
+ pdf_setgray
Sets drawing and filling color to gray value
Description
- void PDF_setgray
+ void pdf_setgray
int pdf object
double gray
@@ -2067,7 +2067,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2075,14 +2075,14 @@
- PDF_setgray_fill
+ pdf_setgray_fill
Sets filling color to gray value
Description
- void PDF_setgray_fill
+ void pdf_setgray_fill
int pdf object
double gray
@@ -2092,7 +2092,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2100,14 +2100,14 @@
- PDF_setgray_stroke
+ pdf_setgray_stroke
Sets drawing color to gray value
Description
- void PDF_setgray_stroke
+ void pdf_setgray_stroke
int pdf object
double gray
@@ -2117,7 +2117,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2125,14 +2125,14 @@
- PDF_setlinecap
+ pdf_setlinecap
Sets linecap parameter
Description
- void PDF_setlinecap
+ void pdf_setlinecap
int pdf object
int linecap
@@ -2145,14 +2145,14 @@
- PDF_setlinejoin
+ pdf_setlinejoin
Sets linejoin parameter
Description
- void PDF_setlinejoin
+ void pdf_setlinejoin
int pdf object
long linejoin
@@ -2165,14 +2165,14 @@
- PDF_setlinewidth
+ pdf_setlinewidth
Sets line width
Description
- void PDF_setlinewidth
+ void pdf_setlinewidth
int pdf object
double width
@@ -2185,14 +2185,14 @@
- PDF_setmatrix
+ pdf_setmatrix
Sets current transformation matrix
Description
- void PDF_setmatrix
+ void pdf_setmatrix
int pdf object
double a
double b
@@ -2210,14 +2210,14 @@
- PDF_setmiterlimit
+ pdf_setmiterlimit
Sets miter limit
Description
- void PDF_setmiterlimit
+ void pdf_setmiterlimit
int pdf object
double miter
@@ -2230,14 +2230,14 @@
- PDF_setpolydash
+ pdf_setpolydash
Sets complicated dash pattern
Description
- void PDF_setpolydash
+ void pdf_setpolydash
int pdf object
double *dasharray
@@ -2250,14 +2250,14 @@
- PDF_setrgbcolor
+ pdf_setrgbcolor
Sets drawing and filling color to rgb color value
Description
- void PDF_setrgbcolor
+ void pdf_setrgbcolor
int pdf object
double red value
double green value
@@ -2269,7 +2269,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2277,14 +2277,14 @@
- PDF_setrgbcolor_fill
+ pdf_setrgbcolor_fill
Sets filling color to rgb color value
Description
- void PDF_setrgbcolor_fill
+ void pdf_setrgbcolor_fill
int pdf object
double red value
double green value
@@ -2296,7 +2296,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2304,14 +2304,14 @@
- PDF_setrgbcolor_stroke
+ pdf_setrgbcolor_stroke
Sets drawing color to rgb color value
Description
- void PDF_setrgbcolor_stroke
+ void pdf_setrgbcolor_stroke
int pdf object
double red value
double green value
@@ -2323,7 +2323,7 @@
- PDFlib V4.0: Deprecated, use PDF_setcolor instead.
+ PDFlib V4.0: Deprecated, use pdf_setcolor instead.
@@ -2331,14 +2331,14 @@
- PDF_set_border_color
+ pdf_set_border_color
Sets color of border around links and annotations
Description
- void PDF_set_border_color
+ void pdf_set_border_color
int pdf object
double red
double green
@@ -2353,14 +2353,14 @@
- PDF_set_border_dash
+ pdf_set_border_dash
Sets dash style of border around links and annotations
Description
- void PDF_set_border_dash
+ void pdf_set_border_dash
int pdf object
double black
double white
@@ -2368,21 +2368,21 @@
Set the border dash style for all kinds of annotations.
- See PDF_setdash.
+ See pdf_setdash.
- PDF_set_border_style
+ pdf_set_border_style
Sets style of border around links and annotations
Description
- void PDF_set_border_style
+ void pdf_set_border_style
int pdf object
string style
double width
@@ -2397,7 +2397,7 @@
- PDF_set_char_spacing
+ pdf_set_char_spacing
Deprecated: Sets character spacing
@@ -2406,14 +2406,14 @@
Deprecated.
- See also PDF_set_value,
+ See also pdf_set_value,
- PDF_set_duration
+ pdf_set_duration
Deprecated: Sets duration between pages
@@ -2422,39 +2422,39 @@
Deprecated.
- See PDF_set_value.
+ See pdf_set_value.
- PDF_set_font
+ pdf_set_font
Deprecated: Selects a font face and size
Description
- Deprecated. You should use PDF_findfont plus
- PDF_setfont instead.
+ Deprecated. You should use pdf_findfont plus
+ pdf_setfont instead.
- See PDF_findfont,
- PDF_setfont.
+ See pdf_findfont,
+ pdf_setfont.
- PDF_set_horiz_scaling
+ pdf_set_horiz_scaling
Sets horizontal scaling of text
Description
- void PDF_set_horiz_scaling
+ void pdf_set_horiz_scaling
int pdf object
double scale
@@ -2463,21 +2463,21 @@
Deprecated.
- See also PDF_set_value,
+ See also pdf_set_value,
- PDF_set_info
+ pdf_set_info
Fills a field of the document information
Description
- void PDF_set_info
+ void pdf_set_info
int pdf object
string key
string value
@@ -2493,7 +2493,7 @@
- PDF_set_leading
+ pdf_set_leading
Deprecated: Sets distance between text lines
@@ -2502,21 +2502,21 @@
Deprecated.
- See also PDF_set_value,
+ See also pdf_set_value,
- PDF_set_parameter
+ pdf_set_parameter
Sets certain parameters
Description
- void PDF_set_parameter
+ void pdf_set_parameter
int pdf object
string key
string value
@@ -2530,14 +2530,14 @@
- PDF_set_text_pos
+ pdf_set_text_pos
Sets text position
Description
- void PDF_set_text_pos
+ void pdf_set_text_pos
int pdf object
double x
double y
@@ -2551,7 +2551,7 @@
- PDF_set_text_rendering
+ pdf_set_text_rendering
Deprecated: Determines how text is rendered
@@ -2560,14 +2560,14 @@
Deprecated.
- See PDF_set_value,
+ See pdf_set_value,
- PDF_set_text_rise
+ pdf_set_text_rise
Deprecated: Sets the text rise
@@ -2576,34 +2576,34 @@
Deprecated.
- See PDF_set_value,
+ See pdf_set_value,
- PDF_set_text_matrix
+ pdf_set_text_matrix
Deprecated: Sets the text matrix
Description
- See PDF_set_paramter.
+ See pdf_set_paramter.
- PDF_set_value
+ pdf_set_value
Sets certain numerical value
Description
- void PDF_set_value
+ void pdf_set_value
int pdf object
string key
double value
@@ -2617,7 +2617,7 @@
- PDF_set_word_spacing
+ pdf_set_word_spacing
Depriciated: Sets spacing between words
@@ -2626,21 +2626,21 @@
Deprecated.
- See also PDF_set_value,
+ See also pdf_set_value,
- PDF_show
+ pdf_show
Output text at current position
Description
- void PDF_show
+ void pdf_show
int pdf object
string text
@@ -2653,14 +2653,14 @@
- PDF_show_boxed
+ pdf_show_boxed
Output text in a box
Description
- int PDF_show_boxed
+ int pdf_show_boxed
int pdf object
string text
double left
@@ -2683,14 +2683,14 @@
- PDF_show_xy
+ pdf_show_xy
Output text at given position
Description
- void PDF_show_xy
+ void pdf_show_xy
int pdf object
string text
double x
@@ -2705,14 +2705,14 @@
- PDF_skew
+ pdf_skew
Skews the coordinate system
Description
- void PDF_skew
+ void pdf_skew
int pdf object
double alpha
double beta
@@ -2727,14 +2727,14 @@
- PDF_stringwidth
+ pdf_stringwidth
Returns width of text using current font
Description
- double PDF_stringwidth
+ double pdf_stringwidth
int pdf object
string text
string text
@@ -2749,14 +2749,14 @@
- PDF_stroke
+ pdf_stroke
Draws line along path
Description
- void PDF_stroke
+ void pdf_stroke
int pdf object
@@ -2768,14 +2768,14 @@
- PDF_translate
+ pdf_translate
Sets origin of coordinate system
Description
- void PDF_translate
+ void pdf_translate
int pdf object
double tx
double ty