php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50487 printer_set_option does not work
Submitted: 2009-12-16 04:22 UTC Modified: 2009-12-16 08:25 UTC
From: imyhchou at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.11 OS: WinXP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: imyhchou at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-16 04:22 UTC] imyhchou at gmail dot com
Description:
------------
I cannot use printer_set_option() to specify the orientation of the paper.

Reproduce code:
---------------
---
From manual page: function.printer-set-option#Parameters
---
<?php 
$ptr=printer_open("HP LaserJet 6P");
printer_start_doc($ptr);
printer_set_option($ptr,PRINTER_ORIENTATION,PRINTER_ORIENTATION_LANDSCAPE);
printer_start_page($ptr);
printer_write($ptr,"The letter is sidelong.");
printer_close($ptr); 
?>

Expected result:
----------------
I can specify the orientation of the paper to be sidelong.

Actual result:
--------------
It doesn't change.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-16 08:25 UTC] jani@php.net
Report bugs in PECL extensions at 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