From:             nikp at ticino dot com
Operating system: W2000Server
PHP version:      4.3.6
PHP Bug Type:     Unknown/Other Function
Bug description:  Printer function

Description:
------------
Hallo,
I have developed a Intranet php application for the document press on a
local printer, these documents are in a particular format  W=297 x L=1000
milimeter. The problem happens at the moment of the press, the press
maximum is  width of 210 milimeter that is of one A4 standard (210x297
milimeter). I have tried this code with various local printer(plotter,
laser, inkjet...) and various drivers settings but the result is always
the same one, it prints to the maximum 210mm and the rest does not come
printed.
It seems that parameters CUSTOM do not come accepted.
Other documents in A4/A5 format are printed correctly. 
Thanks! 
NIK

Reproduce code:
---------------
...
$handle = printer_open("HPDesignJet500"); //Plotter A0
        printer_set_option($handle, PRINTER_PAPER_FORMAT,
PRINTER_FORMAT_CUSTOM);
        printer_set_option($handle, PRINTER_PAPER_LENGTH, 1000);
        printer_set_option($handle, PRINTER_PAPER_WIDTH,  297);
        printer_start_doc($handle, $this->array_quadro["cod_disegno"] );
        printer_start_page($handle);

ecc ...

Expected result:
----------------
prints document 297x1000 milimeter

Actual result:
--------------
prints document 297x210 milimeter

-- 
Edit bug report at http://bugs.php.net/?id=28123&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28123&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28123&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28123&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28123&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28123&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28123&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28123&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28123&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28123&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28123&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28123&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28123&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28123&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28123&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28123&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28123&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28123&r=float

Reply via email to