diff --git a/functions/printer.xml b/functions/printer.xml
index 002bda5f4d..a58acc7ad5 100644
--- a/functions/printer.xml
+++ b/functions/printer.xml
@@ -19,7 +19,7 @@
mixed printer_open
- [string devicename]
+ string devicename
@@ -29,8 +29,9 @@
If no parameter was given it tries to open a
- connection to the default printer (if not specified in php.ini as
- printer.default_printer, php tries to detect it).
+ connection to the default printer (if not specified in
+ php.ini as
+ printer.default_printer, php tries to detect it).
printer_open also starts a device context.
@@ -153,8 +154,8 @@ printer_close($handle);
array printer_list
int enumtype
- [string name
- [int level]]
+ string name
+ int level
@@ -583,7 +584,7 @@ printer_close($handle);
bool printer_start_doc
resource handle
- [string document]
+ string document
@@ -608,7 +609,6 @@ printer_close($handle);
-
printer_end_doc
@@ -625,15 +625,14 @@ printer_close($handle);
- The function creates a new document in the printer spooler. A document
- can contain multiple pages, it's used to schedule the print job in the
- spooler. For an example see printer_start_doc.
+ Closes a new document in the printer spooler. The document
+ is now ready for printing. For an example see
+ printer_start_doc.
handle must be a valid handle to a printer.
-
printer_start_page
@@ -1058,9 +1057,20 @@ printer_close($handle);
- italic can be &true; or &false;, and sets whether the font should be italic.
- underline can be &true; or &false;, and sets whether the font should be underlined.
- strikeout can be &true; or &false;, and sets whether the font should be striked out.
+
+
+ italic can be &true; or &false;,
+ and sets whether the font should be italic.
+
+
+ underline can be &true; or &false;,
+ and sets whether the font should be underlined.
+
+
+ strikeout can be &true; or &false;,
+ and sets whether the font should be striked out.
+
+
orientation specifies a rotation.
For an example see printer_select_font.
@@ -1437,7 +1447,7 @@ $handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
-$pen = printer_create_pen(PRINTER_PEN_SOLID, 30, 000000");
+$pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "000000");
printer_select_pen($handle, $pen);
printer_draw_line($handle, 1, 10, 1000, 10);