php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28123 Printer function
Submitted: 2004-04-23 15:09 UTC Modified: 2004-04-23 17:41 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nikp at ticino dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.6 OS: W2000Server
Private report: No CVE-ID: None
 [2004-04-23 15:09 UTC] nikp at ticino dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-23 17:41 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The printer extension is located in PECL repository. Please 
report your bug on http://pecl.php.net/bugs/ 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC