#19927 [Opn->Asn]: Printer error after several pages print
| From: | arnaud@php.net | Date: | Mon, 28 Apr 2003 09:58:06 +0000 |
| Subject: | #19927 [Opn->Asn]: Printer error after several pages print | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15677@lists.php.net to get a copy of this message | ||
ID: 19927
Updated by: arnaud@php.net
Reported By: mlatuszek at ccc dot edu
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: Windows 98
PHP Version: 4.2.3
-Assigned To:
+Assigned To: fmk
New Comment:
assigning to maintainer.
Previous Comments:
------------------------------------------------------------------------
[2003-02-27 20:40:00] iliaa@php.net
The printer extension has been moved to PECL repository, changing the
bug category accordingly.
------------------------------------------------------------------------
[2003-01-06 04:06:35] paulo dot antunes at inesting dot pt
Hi all,
I've exactly the same problem as you in Win98/ME Operating System.
In Win2K it runs without any problem.
------------------------------------------------------------------------
[2002-11-12 17:41:03] d dot musil at netcrew dot de
same bug on win2000 server and apache2 (php 4.2.3).
restarting the apache2 helps for the next
30-50 pages.
This bug only appears by printing a higher amount of pages;
for single page printjobs everything works fine.
------------------------------------------------------------------------
[2002-10-16 00:28:47] mlatuszek at ccc dot edu
I print various letters and various forms every day using PHP.
However, when I want to print a mass mailing of 200 letters to
different people, php will error out after printing approximately 20
pages. It seems that the amount of pages that print is directly
proportionate to the amount of fill (verbage) placed on a page.
Warning: couldn't start a new page in
C:\apache\htdocs\print\print_td.php on line 20
Warning: couldn't end the page in C:\apache\htdocs\print\print_td.php
on line 87
Warning: couldn't start a new page in
C:\apache\htdocs\print\print_td.php on line 20
Warning: couldn't end the page in C:\apache\htdocs\print\print_td.php
on line 87
Warning: couldn't allocate new print job in
C:\apache\htdocs\print\print_td.php on line 19
Warning: couldn't end the page in C:\apache\htdocs\print\print_td.php
on line 87
Fatal error: couldn't terminate print job in
C:\apache\htdocs\print\print_td.php on line 88
Below is a snip-it of just printing out a heading over and over again
which seems to error the same way as my letters do....
I tried printing to a Novell que, and directly to an LPT1 and get the
same results.
#############################3
$p='printer name';
$copies = 100;
while($copies > 0) {
$handle = printer_open("$p");
printer_start_doc($handle);
printer_start_page($handle);
##################################################### FONT
$font = printer_create_font("Times New Roman", 200, 85,
PRINTER_FW_BOLD, false, false, false, 0);
printer_select_font($handle, $font);
printer_draw_text($handle, "XXXX College", 400, 130);
printer_delete_font($font);
$font = printer_create_font("Arial", 72, 35, PRINTER_FW_LIGHT, false,
false, false, 0);
printer_select_font($handle, $font);
printer_draw_text($handle, "XXXX W. Wilson Ave. Chicago, Illinois
60640", 400, 300);
printer_delete_font($font);
$font = printer_create_font("Arial", 72, 30, PRINTER_FW_NORMAL, false,
false, false, 0);
printer_select_font($handle, $font);
printer_draw_text($handle, "www.XXXcollege.net", 3800, 300);
printer_delete_font($font);
####################################################
##################################################### LINE DRAW
$pen = printer_create_pen(PRINTER_PEN_SOLID, 3, "000000");
printer_select_pen($handle, $pen);
printer_draw_line($handle, 30, 380, 5000, 380);
printer_delete_pen($pen);
####################################################
$font = printer_create_font("Arial", 72, 36, PRINTER_FW_MEDIUM, false,
false, false, 0);
printer_select_font($handle, $font);
printer_draw_text($handle, "Office of Financial Aid", 400, 400);
printer_draw_text($handle, "773 907- XXXX", 1590, 400);
printer_draw_text($handle, "XXX@ccc.edu", 3800, 400);
printer_delete_font($font);
#####################################################
######################################################### #NAME AND
ADDRESS AND BODY OF LETTER WOULD PRINT HERE
########################################### STUDENT ID
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
$copies = $copies - 1;
} // END WHILE COUNT
################################### END ROUTINE
Any consideration to my problem will be greatly appreciated.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19927&edit=1